public final class DefExpression extends Expression
Constructor and Description |
---|
DefExpression(ASTInfo info,
Type type,
java.lang.String identifier,
boolean isFinal) |
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.
|
java.lang.String |
getIdentifier()
Returns the identifier.
|
ASTNode |
getIdentifierRange()
Returns the range of the identifier.
|
ASTNode |
getKeywordRange()
Returns the range of the keyword (def or final).
|
ASTNode |
getTypeRange()
Returns the range of the type.
|
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 java.lang.String getIdentifier()
public boolean requiresNewNamespace()
requiresNewNamespace
in class Expression
true
if the interpretation requires a new namespacepublic <T,E extends java.lang.Throwable> T accept(ExpressionVisitor<T,E> visitor) throws E extends java.lang.Throwable
Expression
accept
in class Expression
E
E extends java.lang.Throwable
protected java.lang.Object basicInterpret(Interpreter interpreter, InterpreterStackTrace stackTrace)
Expression
basicInterpret
in class Expression
public ASTNode getKeywordRange()
public ASTNode getTypeRange()
public ASTNode getIdentifierRange()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.