net.sourceforge.stripes.util.bean
Class NodeEvaluation

java.lang.Object
  extended by net.sourceforge.stripes.util.bean.NodeEvaluation

public class NodeEvaluation
extends Object

Represents a Node in an expression which has been evaluated against a specific bean in order to determine additional type information etc. NodeEvaluation is to Node, what PropertyExpressionEvaluation is to PropertyExpression.

Since:
Stripes 1.4
Author:
Tim Fennell

Constructor Summary
NodeEvaluation(PropertyExpressionEvaluation expressionEvaluation, Node node)
          Constructs a new NodeEvaluation for the specified part of an expression evaluation.
 
Method Summary
 PropertyExpressionEvaluation getExpressionEvaluation()
          Gets the PropertyExpressionEvaluation that this NodeEvaluation is a part of.
 Class<?> getKeyType()
          Gets the class object which represents the key type determined during evaluation of the expression against the provided bean.
 NodeEvaluation getNext()
          Gets the next NodeEvaluation in the chain, or null if this is the terminal node.
 Node getNode()
          Gets the Node that is represented in the evaluation by this NodeEvaluation.
 NodeEvaluation getPrevious()
          Gets the previous NodeEvaluation in the chain, or null if this is the first node.
 NodeType getType()
          Gets the type of the node (bean property, list item etc.).
 Type getValueType()
          Gets the Type object which represents the type returned by evaluating up to this node.
 void setExpressionEvaluation(PropertyExpressionEvaluation expressionEvaluation)
          Sets the PropertyExpressionEvaluation that this NodeEvaluation is a part of.
 void setKeyType(Class<?> keyType)
          Gets the class object which represents the key type for this node if applicable.
 void setNext(NodeEvaluation next)
          Sets the next NodeEvaluation in the chain.
 void setNode(Node node)
          Sets the Node that is represented in the evaluation by this NodeEvaluation.
 void setPrevious(NodeEvaluation previous)
          Sets the previous NodeEvaluation in the chain.
 void setType(NodeType type)
          Gets the type of the node (bean property, list item etc.).
 void setValueType(Type valueType)
          Sets the Type object which represents the type returned by evaluating up to this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeEvaluation

public NodeEvaluation(PropertyExpressionEvaluation expressionEvaluation,
                      Node node)
Constructs a new NodeEvaluation for the specified part of an expression evaluation.

Parameters:
expressionEvaluation - the parent expression evaluation
node - the node that this evaluation is a mirror for
Method Detail

getExpressionEvaluation

public PropertyExpressionEvaluation getExpressionEvaluation()
Gets the PropertyExpressionEvaluation that this NodeEvaluation is a part of.


setExpressionEvaluation

public void setExpressionEvaluation(PropertyExpressionEvaluation expressionEvaluation)
Sets the PropertyExpressionEvaluation that this NodeEvaluation is a part of.


getNode

public Node getNode()
Gets the Node that is represented in the evaluation by this NodeEvaluation.


setNode

public void setNode(Node node)
Sets the Node that is represented in the evaluation by this NodeEvaluation.


getType

public NodeType getType()
Gets the type of the node (bean property, list item etc.).


setType

public void setType(NodeType type)
Gets the type of the node (bean property, list item etc.).


getValueType

public Type getValueType()
Gets the Type object which represents the type returned by evaluating up to this node.


setValueType

public void setValueType(Type valueType)
Sets the Type object which represents the type returned by evaluating up to this node.


getKeyType

public Class<?> getKeyType()
Gets the class object which represents the key type determined during evaluation of the expression against the provided bean. Only usually relevant for Map entries, when it stores the Class specified by the generic signature of the Map.

Returns:
a Class object or null

setKeyType

public void setKeyType(Class<?> keyType)
Gets the class object which represents the key type for this node if applicable.


getNext

public NodeEvaluation getNext()
Gets the next NodeEvaluation in the chain, or null if this is the terminal node.


setNext

public void setNext(NodeEvaluation next)
Sets the next NodeEvaluation in the chain.


getPrevious

public NodeEvaluation getPrevious()
Gets the previous NodeEvaluation in the chain, or null if this is the first node.


setPrevious

public void setPrevious(NodeEvaluation previous)
Sets the previous NodeEvaluation in the chain.



? Copyright 2005-2006, Stripes Development Team.