Class Overview
Represents a variable reference, eg. #someVar. Note this is different to a *local* variable like $someVar
Public Constructors
public
VariableReference
(String variableName, int pos)
Public Methods
public
boolean
isWritable
(ExpressionState expressionState)
Determine if this expression node will support a setValue() call.
Parameters
expressionState
| the current expression state (includes the context) |
Returns
- true if the expression node will allow setValue()
Evaluate the expression to a node and then set the new value on that node. For example, if the expression
evaluates to a property reference then the property will be set to the new value.
Parameters
state
| the current expression state (includes the context) |
value
| the new value |