| java.lang.Object org.zkoss.zkmax.xel.util.ExpressionFragment
ExpressionFragment | public class ExpressionFragment implements java.io.Serializable(Code) | | Represents an expression fragment of an expression.
When
ExpressionFragment.parse is called, a list of fragments is returned.
Each of them is either a Sring instnce or a
ExpressionFragment instance.
For example, "ab${x + y}cd${z}" is broken into the following
segments, when
ExpressionFragment.parse is called:
String("ab"), ExpressionFragment("x+y"), String("cd") and
ExpressionFragment("z").
It is used to implement
org.zkoss.xel.ExpressionFactory based on an evaluator that doesn't support the syntax of ${expr}.
The users of XEL expressions rarely needs to use this class.
author: tomyeh since: 3.0.0 |
Method Summary | |
public boolean | equals(Object o) | public String | getExpression() Returns the expression. | public int | hashCode() | final public static List | parse(String expr) Parses an expression into a list of fragments.
Each of them is either a Sring instnce or a
ExpressionFragment instance.
For example, "ab${x + y}cd${z}" is broken into the following
segments, when
ExpressionFragment.parse is called:
String("ab"), ExpressionFragment("x+y"), String("cd") and
ExpressionFragment("z").
Parameters: expr - the expression that may or may not contain one ormultiple ${expr}. | public String | toString() |
getExpression | public String getExpression()(Code) | | Returns the expression.
|
hashCode | public int hashCode()(Code) | | |
parse | final public static List parse(String expr)(Code) | | Parses an expression into a list of fragments.
Each of them is either a Sring instnce or a
ExpressionFragment instance.
For example, "ab${x + y}cd${z}" is broken into the following
segments, when
ExpressionFragment.parse is called:
String("ab"), ExpressionFragment("x+y"), String("cd") and
ExpressionFragment("z").
Parameters: expr - the expression that may or may not contain one ormultiple ${expr}. It cannot be null. |
|
|