|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.util.bean.PropertyExpression
public class PropertyExpression
An expression representing a property, nested property or indexed property of a JavaBean, or
a combination of all three. Capable of parsing String property expressions into a series of
Node
s representing each sub-property or indexed property. Expression nodes can be
separated with periods, or square-bracket indexing. Items inside square brackets can be
single or double quoted, or bare int/long/float/double/boolean literals in the same manner they
appear in Java source code (e.g. 123.6F for a float).
Method Summary | |
---|---|
static PropertyExpression |
getExpression(String expression)
Factory method for retrieving PropertyExpression objects for expression strings. |
Node |
getRootNode()
Fetches the root or first node in this expression. |
String |
getSource()
Fetches the original 'source' of the expression - the String value that was parsed to create the PropertyExpression object. |
protected void |
parse(String expression)
Performs the internal parsing of the expression and stores the results in a chain of nodes internally. |
String |
toString()
Returns the String expression that was parsed to create this PropertyExpression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Node getRootNode()
public String getSource()
public static PropertyExpression getExpression(String expression) throws ParseException
expression
- the expression to fetch a PropertyExpression for
ParseException
protected void parse(String expression) throws ParseException
expression
- the String expression to be parsed
ParseException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |