public final class CastExpression extends Expression
| Constructor and Description |
|---|
CastExpression(ASTInfo info,
Expression expression,
Type type) |
| 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.
|
ASTNode |
getAsKeywordRange()
Returns the range of the 'as' keyword.
|
Expression |
getExpression()
Returns the casted expression.
|
Expression |
getResultExpression()
Returns the result expression.
|
java.util.List<Expression> |
getResultExpressions()
Returns the result expression.
|
ASTNode |
getTypeRange()
Returns the range of the type.
|
createANTLRParser, doInterpret, evalCondition, evaluateToExpressions, executeCompiled, getCompiled, getDebugLine, getIdentifierAst, getParseTimeConstant, getPrimaryRange, getPropertySelectorRange, getRange, 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 CastExpression(ASTInfo info, Expression expression, Type type)
info - expression - type - public Expression getExpression()
public Expression getResultExpression()
Expressionthis.getResultExpression in class Expressionthis)public java.util.List<Expression> getResultExpressions()
ExpressiongetResultExpressions in class Expressionpublic <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.Throwableprotected java.lang.Object basicInterpret(Interpreter interpreter, InterpreterStackTrace stackTrace) throws ErrorException
ExpressionbasicInterpret in class ExpressionErrorExceptionpublic ASTNode getAsKeywordRange()
public ASTNode getTypeRange()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.