public final class PropertyExpression extends AssignableExpression
| Constructor and Description |
|---|
PropertyExpression(ASTInfo info,
Expression recordExpression,
RecordType recordType,
java.lang.String property,
boolean safe)
Creates new instance of
PropertyExpression. |
PropertyExpression(ASTInfo info,
Expression recordExpression,
RecordType recordType,
java.lang.String property,
Type propertyType,
boolean safe)
Creates new instance of
PropertyExpression. |
| 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 |
getOperatorRange() |
java.lang.String |
getProperty()
Returns the property to access.
|
ASTNode |
getPropertyRange()
Returns the range of the property identifier.
|
Expression |
getRecordExpression()
Returns the record expression.
|
RecordType |
getRecordType()
Returns the associated record type.
|
protected java.lang.Object |
interpretCompoundAssignment(Operation operation,
Expression arg,
Interpreter interpreter,
InterpreterStackTrace stackTrace) |
boolean |
isSafe()
Returns the value of safe flag.
|
void |
setValue(java.lang.Object value,
Namespace namespace,
InterpreterStackTrace stackTrace,
ExpressionOrigin origin)
Assign a value into the assignable (e.g.
|
createANTLRParser, doInterpret, evalCondition, evaluateToExpressions, executeCompiled, getCompiled, getDebugLine, getIdentifierAst, getParseTimeConstant, getPrimaryRange, getPropertySelectorRange, getRange, getResultExpression, getResultExpressions, 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 PropertyExpression(ASTInfo info, Expression recordExpression, RecordType recordType, java.lang.String property, boolean safe)
PropertyExpression.info - recordExpression - recordType - property - safe - when true, property expression returns
null if the left side is nulljava.lang.NullPointerException - if recordExpression or property is null or recordType is nullpublic PropertyExpression(ASTInfo info, Expression recordExpression, RecordType recordType, java.lang.String property, Type propertyType, boolean safe)
PropertyExpression.info - recordExpression - recordType - property - propertyType - safe - public Expression getRecordExpression()
public RecordType getRecordType()
public java.lang.String getProperty()
public boolean isSafe()
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.Throwableprotected java.lang.Object basicInterpret(Interpreter interpreter, InterpreterStackTrace stackTrace) throws ErrorException
ExpressionbasicInterpret in class ExpressionErrorExceptionpublic void setValue(java.lang.Object value,
Namespace namespace,
InterpreterStackTrace stackTrace,
ExpressionOrigin origin)
throws ErrorException
AssignableExpressionsetValue in class AssignableExpressionErrorExceptionprotected java.lang.Object interpretCompoundAssignment(Operation operation, Expression arg, Interpreter interpreter, InterpreterStackTrace stackTrace) throws ErrorException
interpretCompoundAssignment in class AssignableExpressionErrorExceptionpublic ASTNode getPropertyRange()
public ASTNode getOperatorRange()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.