public final class ListComprehensionExpression extends java.lang.Object implements IExpression
| Property Name | Property Description |
modifier | This is the expression that transforms the value produced by the iterator. |
variable | This is the variable that will store values produced by the iterator. |
type | This is the static-type of the variable. |
iterable | This expression produces the iterable that will be iterated over. |
condition | (optional) This expression is used to determine whether an element should be skipped or not. |
location | This is the source-location information regarding this construct. |
This file was auto-generated on (Sun May 31 11:54:12 EDT 2015).
| Constructor and Description |
|---|
ListComprehensionExpression() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(IAstVisitor visitor)
This method welcomes a visitor that wants to visit this object.
|
ListComprehensionExpression |
copy()
This method creates a shallow copy of this object.
|
static ListComprehensionExpression |
create(IExpression modifier,
Variable variable,
TypeSpecifier type,
IExpression iterable,
IExpression condition,
SourceLocation location)
This method creates a new instance of this class.
|
IExpression |
getCondition()
Getter.
|
IExpression |
getIterable()
Getter.
|
SourceLocation |
getLocation()
Getter.
|
IExpression |
getModifier()
Getter.
|
TypeSpecifier |
getType()
Getter.
|
Variable |
getVariable()
Getter.
|
ListComprehensionExpression |
setCondition(IExpression value)
Setter.
|
ListComprehensionExpression |
setIterable(IExpression value)
Setter.
|
ListComprehensionExpression |
setLocation(SourceLocation value)
Setter.
|
ListComprehensionExpression |
setModifier(IExpression value)
Setter.
|
ListComprehensionExpression |
setType(TypeSpecifier value)
Setter.
|
ListComprehensionExpression |
setVariable(Variable 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 ListComprehensionExpression setModifier(IExpression value)
value - is the new value of property modifier.modifier set to value.public IExpression getModifier()
modifier.public ListComprehensionExpression setVariable(Variable value)
value - is the new value of property variable.variable set to value.public Variable getVariable()
variable.public ListComprehensionExpression setType(TypeSpecifier value)
value - is the new value of property type.type set to value.public TypeSpecifier getType()
type.public ListComprehensionExpression setIterable(IExpression value)
value - is the new value of property iterable.iterable set to value.public IExpression getIterable()
iterable.public ListComprehensionExpression setCondition(IExpression value)
value - is the new value of property condition.condition set to value.public IExpression getCondition()
condition.public ListComprehensionExpression 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 ListComprehensionExpression create(IExpression modifier, Variable variable, TypeSpecifier type, IExpression iterable, IExpression condition, SourceLocation location)
modifier - is the value for property modifier.variable - is the value for property variable.type - is the value for property type.iterable - is the value for property iterable.condition - is the value for property condition.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 ListComprehensionExpression 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