public final class ConditionalExpression extends Expression
| Constructor and Description |
|---|
ConditionalExpression(ASTInfo info,
Expression ifExpression,
Expression thenExpression,
Expression elseExpression,
Type returnType)
Constructs a new conditional expression.
|
ConditionalExpression(ASTInfo info,
java.util.List<Expression> ifExpressions,
java.util.List<Expression> thenExpressions,
Expression elseExpression,
Type returnType)
Constructs a new conditional expression.
|
| Modifier and Type | Method and Description |
|---|---|
<T,E extends java.lang.Throwable> |
accept(ExpressionVisitor<T,E> visitor)
Accepts visitor.
|
protected java.lang.Object |
basicInterpret(Interpreter interpreter,
InterpreterStackTrace stackTrace)
Interpret expression.
|
Expression |
getElseExpression()
Returns the "else" expression.
|
ASTNode |
getElseKeywordRange() |
ASTNode |
getEndKeywordRange() |
java.util.List<Expression> |
getIfExpressions()
Returns the list of "if" expressions.
|
ASTNode |
getIfKeywordRange(int index) |
java.util.List<Expression> |
getResultExpressions()
Returns the result expression.
|
java.util.List<Expression> |
getThenExpressions()
Returns the list of "then" expressions.
|
ASTNode |
getThenKeywordRange(int index) |
boolean |
isTernaryIf() |
createANTLRParser, doInterpret, evalCondition, evaluateToExpressions, executeCompiled, getCompiled, getDebugLine, getIdentifierAst, getParseTimeConstant, getPrimaryRange, getPropertySelectorRange, getRange, getResultExpression, 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 ConditionalExpression(ASTInfo info, Expression ifExpression, Expression thenExpression, Expression elseExpression, Type returnType)
info - ifExpression - thenExpression - elseExpression - returnType - public ConditionalExpression(ASTInfo info, java.util.List<Expression> ifExpressions, java.util.List<Expression> thenExpressions, Expression elseExpression, Type returnType)
info - ifExpressions - thenExpressions - elseExpression - returnType - public <T,E extends java.lang.Throwable> T accept(ExpressionVisitor<T,E> visitor) throws E extends java.lang.Throwable
Expressionaccept in class ExpressionEE extends java.lang.Throwablepublic java.util.List<Expression> getIfExpressions()
public java.util.List<Expression> getThenExpressions()
public Expression getElseExpression()
protected java.lang.Object basicInterpret(Interpreter interpreter, InterpreterStackTrace stackTrace) throws ErrorException
ExpressionbasicInterpret in class ExpressionErrorExceptionpublic java.util.List<Expression> getResultExpressions()
ExpressiongetResultExpressions in class Expressionpublic boolean isTernaryIf()
public ASTNode getIfKeywordRange(int index)
public ASTNode getThenKeywordRange(int index)
public ASTNode getElseKeywordRange()
public ASTNode getEndKeywordRange()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.