Package | Description |
---|---|
net.sourceforge.stripes.util.bean |
This package contains classes which implement a limited subset of an expression
language for dealing with an extended JavaBean property syntax.
|
Modifier and Type | Method and Description |
---|---|
NodeEvaluation |
NodeEvaluation.getNext()
Gets the next NodeEvaluation in the chain, or null if this is the terminal node.
|
NodeEvaluation |
NodeEvaluation.getPrevious()
Gets the previous NodeEvaluation in the chain, or null if this is the first node.
|
NodeEvaluation |
PropertyExpressionEvaluation.getRootNode()
Fetches the root (first) node in the evaluation, which can be used to traverse
through the nodes in series.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Class<?> |
PropertyExpressionEvaluation.convertToClass(java.lang.reflect.Type type,
NodeEvaluation evaluation)
Attempts to convert the
Type object into a Class object. |
protected java.lang.Object |
MapPropertyAccessor.getKey(NodeEvaluation evaluation)
Attempts to convert the key to from the expression node to the correct type
as determined by reflection (using generics to find the Map key type).
|
protected java.lang.reflect.Type |
PropertyExpressionEvaluation.getTypeVariableValue(NodeEvaluation evaluation,
java.lang.reflect.TypeVariable<?> typeVar)
Scans backwards in the expression for the last node which contained a JavaBean type
and attempts to use the type arguments to that class to find a match for the
TypeParameter provided.
|
protected java.lang.reflect.Type |
PropertyExpressionEvaluation.getTypeViaInstances(NodeEvaluation end)
Determines the type of the supplied node and sets appropriate information on the node.
|
java.lang.Object |
ListPropertyAccessor.getValue(NodeEvaluation evaluation,
java.util.List<?> list)
Fetches the value stored at the index specified by the current node.
|
java.lang.Object |
MapPropertyAccessor.getValue(NodeEvaluation evaluation,
java.util.Map<?,?> map)
Gets the value stored in the Map under the key specified by the current node.
|
java.lang.Object |
ArrayPropertyAccessor.getValue(NodeEvaluation evaluation,
java.lang.Object target)
Gets the index specified by the current node from the target array.
|
java.lang.Object |
JavaBeanPropertyAccessor.getValue(NodeEvaluation evaluation,
java.lang.Object bean)
Fetches the specified property value from the bean if it exists.
|
java.lang.Object |
PropertyAccessor.getValue(NodeEvaluation evaluation,
T target)
Gets the value specified by the NodeEvaluation in the target object.
|
void |
NodeEvaluation.setNext(NodeEvaluation next)
Sets the next NodeEvaluation in the chain.
|
void |
NodeEvaluation.setPrevious(NodeEvaluation previous)
Sets the previous NodeEvaluation in the chain.
|
void |
ListPropertyAccessor.setValue(NodeEvaluation evaluation,
java.util.List list,
java.lang.Object value)
Sets the value at the index specified by the current node to the supplied value.
|
void |
MapPropertyAccessor.setValue(NodeEvaluation evaluation,
java.util.Map map,
java.lang.Object value)
Sets the value stored in the Map under the key specified by the current node.
|
void |
ArrayPropertyAccessor.setValue(NodeEvaluation evaluation,
java.lang.Object target,
java.lang.Object value)
Sets the value at the index specified by the current node to the supplied value.
|
void |
JavaBeanPropertyAccessor.setValue(NodeEvaluation evaluation,
java.lang.Object bean,
java.lang.Object value)
Sets the specified property value to the supplied value.
|
void |
PropertyAccessor.setValue(NodeEvaluation evaluation,
T target,
java.lang.Object value)
Gets the value specified by the NodeEvaluation in the target object.
|
? Copyright 2005-2006, Stripes Development Team.