public class PropertyOrFieldReference extends SpelNodeImpl
children, pos
Constructor and Description |
---|
PropertyOrFieldReference(boolean nullSafe,
String propertyOrFieldName,
int pos) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
TypedValue |
getValueInternal(ExpressionState state) |
ValueRef |
getValueRef(ExpressionState state) |
boolean |
isNullSafe() |
boolean |
isWritable(ExpressionState state)
Determine if this expression node will support a setValue() call.
|
boolean |
isWritableProperty(String name,
TypedValue contextObject,
EvaluationContext eContext) |
void |
setValue(ExpressionState state,
Object newValue)
Evaluate the expression to a node and then set the new value on that node.
|
String |
toStringAST() |
getChild, getChildCount, getEndPosition, getObjectClass, getPreviousChild, getStartPosition, getTypedValue, getValue, getValue, nextChildIs
public PropertyOrFieldReference(boolean nullSafe, String propertyOrFieldName, int pos)
public boolean isNullSafe()
public String getName()
public ValueRef getValueRef(ExpressionState state) throws EvaluationException
getValueRef
in class SpelNodeImpl
EvaluationException
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException
getValueInternal
in class SpelNodeImpl
EvaluationException
public void setValue(ExpressionState state, Object newValue) throws SpelEvaluationException
SpelNode
setValue
in interface SpelNode
setValue
in class SpelNodeImpl
state
- the current expression state (includes the context)newValue
- the new valueSpelEvaluationException
public boolean isWritable(ExpressionState state) throws SpelEvaluationException
SpelNode
isWritable
in interface SpelNode
isWritable
in class SpelNodeImpl
state
- the current expression state (includes the context)SpelEvaluationException
public String toStringAST()
toStringAST
in interface SpelNode
toStringAST
in class SpelNodeImpl
public boolean isWritableProperty(String name, TypedValue contextObject, EvaluationContext eContext) throws SpelEvaluationException
SpelEvaluationException