| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SpelNode
Represents a node in the Ast for a parsed expression.
| Method Summary | |
|---|---|
 SpelNode | 
getChild(int index)
Helper method that returns a SpelNode rather than an Antlr Tree node.  | 
 int | 
getChildCount()
 | 
 int | 
getEndPosition()
 | 
 Class<?> | 
getObjectClass(Object obj)
Determine the class of the object passed in, unless it is already a class object.  | 
 int | 
getStartPosition()
 | 
 TypedValue | 
getTypedValue(ExpressionState expressionState)
Evaluate the expression node in the context of the supplied expression state and return the typed value.  | 
 Object | 
getValue(ExpressionState expressionState)
Evaluate the expression node in the context of the supplied expression state and return the value.  | 
 boolean | 
isWritable(ExpressionState expressionState)
Determine if this expression node will support a setValue() call.  | 
 void | 
setValue(ExpressionState expressionState,
         Object newValue)
Evaluate the expression to a node and then set the new value on that node.  | 
 String | 
toStringAST()
 | 
| Method Detail | 
|---|
Object getValue(ExpressionState expressionState)
                throws EvaluationException
expressionState - the current expression state (includes the context)
EvaluationException
TypedValue getTypedValue(ExpressionState expressionState)
                         throws EvaluationException
expressionState - the current expression state (includes the context)
EvaluationException
boolean isWritable(ExpressionState expressionState)
                   throws EvaluationException
expressionState - the current expression state (includes the context)
EvaluationException - if something went wrong trying to determine if the node supports writing
void setValue(ExpressionState expressionState,
              Object newValue)
              throws EvaluationException
expressionState - the current expression state (includes the context)newValue - the new value
EvaluationException - if any problem occurs evaluating the expression or setting the new valueString toStringAST()
int getChildCount()
SpelNode getChild(int index)
Class<?> getObjectClass(Object obj)
o - the object that the caller wants the class of
int getStartPosition()
int getEndPosition()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||