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, nextChildIspublic PropertyOrFieldReference(boolean nullSafe,
String propertyOrFieldName,
int pos)
public boolean isNullSafe()
public String getName()
public ValueRef getValueRef(ExpressionState state) throws EvaluationException
getValueRef in class SpelNodeImplEvaluationExceptionpublic TypedValue getValueInternal(ExpressionState state) throws EvaluationException
getValueInternal in class SpelNodeImplEvaluationExceptionpublic void setValue(ExpressionState state, Object newValue) throws SpelEvaluationException
SpelNodesetValue in interface SpelNodesetValue in class SpelNodeImplstate - the current expression state (includes the context)newValue - the new valueSpelEvaluationExceptionpublic boolean isWritable(ExpressionState state) throws SpelEvaluationException
SpelNodeisWritable in interface SpelNodeisWritable in class SpelNodeImplstate - the current expression state (includes the context)SpelEvaluationExceptionpublic String toStringAST()
toStringAST in interface SpelNodetoStringAST in class SpelNodeImplpublic boolean isWritableProperty(String name, TypedValue contextObject, EvaluationContext eContext) throws SpelEvaluationException
SpelEvaluationException