public final class ForeachExpression extends Expression
| Constructor and Description |
|---|
ForeachExpression(ASTInfo info,
Type iteratorType,
String iterator,
Expression collection,
Expression body) |
| Modifier and Type | Method and Description |
|---|---|
<T,E extends Throwable> |
accept(ExpressionVisitor<T,E> visitor)
Accepts visitor.
|
protected Object |
basicInterpret(Interpreter interpreter,
InterpreterStackTrace stackTrace)
Interpret expression.
|
Expression |
getBody()
Returns the body expression.
|
Expression |
getCollection()
Returns the collection expression.
|
ASTNode |
getDoKeywordRange() |
ASTNode |
getEndKeywordRange() |
ASTNode |
getForeachKeywordRange() |
ASTNode |
getIdentifierRange()
Returns the range of the identifier.
|
ASTNode |
getInKeywordRange() |
String |
getIterator()
Returns the iterator (identifier) name.
|
Type |
getIteratorType()
Returns the iterator type.
|
ASTNode |
getTypeRange()
Returns the range of the type.
|
createANTLRParser, doInterpret, evalCondition, evaluateToExpressions, executeCompiled, getCompiled, getDebugLine, getIdentifierAst, getParseTimeConstant, getPrimaryRange, getPropertySelectorRange, getRange, getResultExpression, getResultExpressions, getType, interpret, interpretInCurrentNamespace, isCreatingNonModuleContextObjects, isParseTimeConstant, requiresNewNamespace, setCompiled, showInFullText, showInSurroundingText, showInText, toExpressionsgetFullText, getLine, getNodeText, getText, toStringcontains, getBeginIndex, getEndIndex, getLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFullText, getLine, getNodeText, getTextcontains, getBeginIndex, getEndIndex, getLengthpublic ForeachExpression(ASTInfo info, Type iteratorType, String iterator, Expression collection, Expression body)
info - iteratorType - iterator - collection - body - public Type getIteratorType()
public String getIterator()
public Expression getCollection()
public Expression getBody()
public <T,E extends Throwable> T accept(ExpressionVisitor<T,E> visitor) throws E extends Throwable
Expressionaccept in class ExpressionEE extends Throwableprotected Object basicInterpret(Interpreter interpreter, InterpreterStackTrace stackTrace) throws ErrorException
ExpressionbasicInterpret in class ExpressionErrorExceptionpublic ASTNode getForeachKeywordRange()
public ASTNode getTypeRange()
public ASTNode getIdentifierRange()
public ASTNode getInKeywordRange()
public ASTNode getDoKeywordRange()
public ASTNode getEndKeywordRange()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.