public final class ForExpression extends Expression
Constructor and Description |
---|
ForExpression(ASTInfo info,
Expression init,
Expression condition,
Expression update,
Expression body)
Constructs a new "for" expression.
|
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() |
Expression |
getCondition() |
Expression |
getInit() |
Expression |
getUpdate() |
boolean |
requiresNewNamespace() |
createANTLRParser, doInterpret, evalCondition, evaluateToExpressions, executeCompiled, getCompiled, getDebugLine, getIdentifierAst, getParseTimeConstant, getPrimaryRange, getPropertySelectorRange, getRange, getResultExpression, getResultExpressions, getType, interpret, interpretInCurrentNamespace, isCreatingNonModuleContextObjects, isParseTimeConstant, setCompiled, showInFullText, showInSurroundingText, showInText, toExpressions
getFullText, getLine, getNodeText, getText, toString
contains, getBeginIndex, getEndIndex, getLength
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFullText, getLine, getNodeText, getText
contains, getBeginIndex, getEndIndex, getLength
public ForExpression(ASTInfo info, Expression init, Expression condition, Expression update, Expression body)
info
- init
- condition
- update
- body
- public boolean requiresNewNamespace()
requiresNewNamespace
in class Expression
true
if the interpretation requires a new namespacepublic Expression getInit()
public Expression getCondition()
public Expression getUpdate()
public Expression getBody()
public <T,E extends Throwable> T accept(ExpressionVisitor<T,E> visitor) throws E extends Throwable
Expression
accept
in class Expression
E
E extends Throwable
protected Object basicInterpret(Interpreter interpreter, InterpreterStackTrace stackTrace) throws ErrorException
Expression
basicInterpret
in class Expression
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.