public final class DefExpression extends Expression
Constructor and Description |
---|
DefExpression(ASTInfo info,
Type type,
String identifier,
boolean isFinal) |
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.
|
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 String getIdentifier()
public boolean requiresNewNamespace()
requiresNewNamespace
in class Expression
true
if the interpretation requires a new namespacepublic <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)
Expression
basicInterpret
in class Expression
public ASTNode getKeywordRange()
public ASTNode getTypeRange()
public ASTNode getIdentifierRange()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.