|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zkmax.xel.util.ExpressionFragment
public class ExpressionFragment
Represents an expression fragment of an expression.
When parse(java.lang.String)
is called, a list of fragments is returned.
Each of them is either a Sring instnce or a ExpressionFragment
instance.
Available in ZK EE
For example, "ab${x + y}cd${z}" is broken into the following
segments, when parse(java.lang.String)
is called:
String("ab"), ExpressionFragment("x+y"), String("cd") and
ExpressionFragment("z").
It is used to implement ExpressionFactory
based on an evaluator that doesn't support the syntax of ${expr}.
The users of XEL expressions rarely needs to use this class.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getExpression()
Returns the expression. |
int |
hashCode()
|
static java.util.List<java.lang.Object> |
parse(java.lang.String expr)
Parses an expression into a list of fragments. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static final java.util.List<java.lang.Object> parse(java.lang.String expr)
ExpressionFragment
instance.
For example, "ab${x + y}cd${z}" is broken into the following
segments, when parse(java.lang.String)
is called:
String("ab"), ExpressionFragment("x+y"), String("cd") and
ExpressionFragment("z").
expr
- the expression that may or may not contain one or
multiple ${expr}. It cannot be null.public java.lang.String getExpression()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |