public final class WhenStatement extends java.lang.Object implements IStatement
| Property Name | Property Description |
condition | This condition controls the execution of the body. |
body | This is the statement that is conditionally executed. |
location | This is the source-location information regarding this construct. |
This file was auto-generated on (Sun May 31 11:54:11 EDT 2015).
| Constructor and Description |
|---|
WhenStatement() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(IAstVisitor visitor)
This method welcomes a visitor that wants to visit this object.
|
WhenStatement |
copy()
This method creates a shallow copy of this object.
|
static WhenStatement |
create(IExpression condition,
IStatement body,
SourceLocation location)
This method creates a new instance of this class.
|
IStatement |
getBody()
Getter.
|
IExpression |
getCondition()
Getter.
|
SourceLocation |
getLocation()
Getter.
|
WhenStatement |
setBody(IStatement value)
Setter.
|
WhenStatement |
setCondition(IExpression value)
Setter.
|
WhenStatement |
setLocation(SourceLocation value)
Setter.
|
java.util.Map<java.lang.String,java.lang.Object> |
toMap()
This method creates a map representation of this struct.
|
java.lang.String |
toString() |
public WhenStatement setCondition(IExpression value)
value - is the new value of property condition.condition set to value.public IExpression getCondition()
condition.public WhenStatement setBody(IStatement value)
value - is the new value of property body.body set to value.public IStatement getBody()
body.public WhenStatement setLocation(SourceLocation value)
setLocation in interface IConstructvalue - is the new value of property location.location set to value.public SourceLocation getLocation()
getLocation in interface IConstructlocation.public static WhenStatement create(IExpression condition, IStatement body, SourceLocation location)
condition - is the value for property condition.body - is the value for property body.location - is the value for property location.public void accept(IAstVisitor visitor)
accept in interface IConstructvisitor - is the visitor that is visiting this object.public WhenStatement copy()
copy in interface IConstructpublic java.util.Map<java.lang.String,java.lang.Object> toMap()
Each key is the name of a field. Each value is the result of calling the key field's getter.
public java.lang.String toString()
toString in class java.lang.Object