toggle menu
shake
0.1.0
common
switch theme
search in API
com.shakelang.shake.shakespeare
/
com.shakelang.shake.shakespeare.spec.code
/
IfSpec
If
Spec
class
IfSpec
(
val
condition
:
ValueSpec
,
val
body
:
CodeSpec
,
val
elseBody
:
CodeSpec
?
)
:
StatementSpec
(
source
)
Members
Constructors
If
Spec
Link copied to clipboard
constructor
(
condition
:
ValueSpec
,
body
:
CodeSpec
,
elseBody
:
CodeSpec
?
)
Types
Companion
Link copied to clipboard
object
Companion
If
Spec
Builder
Link copied to clipboard
open
class
IfSpecBuilder
Properties
body
Link copied to clipboard
val
body
:
CodeSpec
condition
Link copied to clipboard
val
condition
:
ValueSpec
else
Body
Link copied to clipboard
val
elseBody
:
CodeSpec
?
Functions
generate
Link copied to clipboard
open
override
fun
generate
(
ctx
:
GenerationContext
)
:
String