${..}
or #{..}.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Method and Description |
|---|---|
| public ELText | Returns: an ELText instancethe ExpressionFactory to use factory, ELContext the ELContext to use ctx)Return an instance of |
| private static int | |
| public boolean | Returns: true if the String is literal (doesn't contain#{..} or ${..})If it's literal text |
| public static boolean | |
| public static ELText | |
| public static ELText | |
| public static ELText | |
| public static ELText | Returns: ELText that can be re-applied laterExpressionFactory to use fact, ELContext ELContext to validate against ctx, String String to parse in, String the alias alias)Factory method for creating a validated ELText instance. |
| public String | |
| public String | |
| public void | |
| public void |
| literal | back to summary |
|---|---|
| protected final String literal | |
| ELText | back to summary |
|---|---|
| public ELText(String literal) | |
| apply | back to summary |
|---|---|
| public ELText apply(ExpressionFactory factory, ELContext ctx) Return an instance of
| |
| findVarLength | back to summary |
|---|---|
| private static int findVarLength(char[] ca, int s) throws ELException | |
| isLiteral | back to summary |
|---|---|
| public boolean isLiteral() If it's literal text
| |
| isLiteral | back to summary |
|---|---|
| public static boolean isLiteral(String in) Parses the passed string to determine if it's literal or not
| |
| parse | back to summary |
|---|---|
| public static ELText parse(String in) throws ELException Factory method for creating an unvalidated ELText instance. Note All expressions in the passed String are treated as
| |
| parse | back to summary |
|---|---|
| public static ELText parse(String in, String alias) throws ELException | |
| parse | back to summary |
|---|---|
| public static ELText parse(ExpressionFactory fact, ELContext ctx, String in) throws ELException | |
| parse | back to summary |
|---|---|
| public static ELText parse(ExpressionFactory fact, ELContext ctx, String in, String alias) throws ELException Factory method for creating a validated ELText instance. When an Expression is hit, it will use the ExpressionFactory to create a ValueExpression instance, resolving any functions at that time. Variables and properties will not be evaluated.
| |
| toString | back to summary |
|---|---|
| public String toString(ELContext ctx) throws ELException Evaluates the ELText to a String
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| write | back to summary |
|---|---|
| public void write(Writer out, ELContext ctx) throws ELException, IOException Allow this instance to write to the passed Writer, given the ELContext state
| |
| writeText | back to summary |
|---|---|
| public void writeText(ResponseWriter out, ELContext ctx) throws ELException, IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private final ELText[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ELText | apply(ExpressionFactory
the ExpressionFactory to use factory, ELContext the ELContext to use ctx)Overrides com. Return an instance of |
| public boolean | |
| public String | toString(ELContext
current ELContext state ctx)Overrides com. Evaluates the ELText to a String |
| public String | toString()
Overrides com. Returns a string representation of the object. |
| public void | write(Writer
Writer to write to out, ELContext current ELContext state ctx)Overrides com. Allow this instance to write to the passed Writer, given the ELContext state |
| public void |
| txt | back to summary |
|---|---|
| private final ELText[] txt | |
| ELTextComposite | back to summary |
|---|---|
| public ELTextComposite(ELText[] txt) | |
| apply | back to summary |
|---|---|
| public ELText apply(ExpressionFactory factory, ELContext ctx) Overrides com. Doc from com. Return an instance of
| |
| isLiteral | back to summary |
|---|---|
| public boolean isLiteral() Overrides com. Doc from com. If it's literal text
| |
| toString | back to summary |
|---|---|
| public String toString(ELContext ctx) Overrides com. Doc from com. Evaluates the ELText to a String | |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| write | back to summary |
|---|---|
| public void write(Writer out, ELContext ctx) throws ELException, IOException Overrides com. Doc from com. Allow this instance to write to the passed Writer, given the ELContext state
| |
| writeText | back to summary |
|---|---|
| public void writeText(ResponseWriter out, ELContext ctx) throws ELException, IOException Overrides com.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ValueExpression |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ELText | apply(ExpressionFactory
the ExpressionFactory to use factory, ELContext the ELContext to use ctx)Overrides com. Return an instance of |
| public boolean | |
| public String | toString(ELContext
current ELContext state ctx)Overrides com. Evaluates the ELText to a String |
| public void | write(Writer
Writer to write to out, ELContext current ELContext state ctx)Overrides com. Allow this instance to write to the passed Writer, given the ELContext state |
| public void |
| ve | back to summary |
|---|---|
| private final ValueExpression ve | |
| ELTextVariable | back to summary |
|---|---|
| public ELTextVariable(ValueExpression ve) | |
| apply | back to summary |
|---|---|
| public ELText apply(ExpressionFactory factory, ELContext ctx) Overrides com. Doc from com. Return an instance of
| |
| isLiteral | back to summary |
|---|---|
| public boolean isLiteral() Overrides com. Doc from com. If it's literal text
| |
| toString | back to summary |
|---|---|
| public String toString(ELContext ctx) throws ELException Overrides com. Doc from com. Evaluates the ELText to a String
| |
| write | back to summary |
|---|---|
| public void write(Writer out, ELContext ctx) throws ELException, IOException Overrides com. Doc from com. Allow this instance to write to the passed Writer, given the ELContext state
| |
| writeText | back to summary |
|---|---|
| public void writeText(ResponseWriter out, ELContext ctx) throws ELException, IOException Overrides com.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the obj)Object to test for equality.Implements abstract jakarta. Determines whether the specified object is equal to this |
| public Class | getExpectedType()
Implements abstract jakarta. Returns the type the result of the expression will be coerced to after evaluation. |
| public String | getExpressionString()
Implements abstract jakarta. Returns the original String used to create this |
| public Class | getType(ELContext
The context of this evaluation. context)Implements abstract jakarta. Evaluates the expression relative to the provided context, and returns the most general type that is acceptable for
an object to be passed as the |
| public <T> T | getValue(ELContext
The context of this evaluation. context)Implements abstract jakarta. Evaluates the expression relative to the provided context, and returns the resulting value. |
| public int | hashCode()
Implements abstract jakarta. Returns the hash code for this |
| public boolean | isLiteralText()
Implements abstract jakarta. Returns whether this expression was created from only literal text. |
| public boolean | isReadOnly(ELContext
The context of this evaluation. context)Implements abstract jakarta. Evaluates the expression relative to the provided context, and returns |
| public void | setValue(ELContext
The context of this evaluation. context, Object The new value to be set. value)Implements abstract jakarta. Evaluates the expression relative to the provided context, and sets the result to the provided value. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| text | back to summary |
|---|---|
| private final String text | |
| LiteralValueExpression | back to summary |
|---|---|
| public LiteralValueExpression(String text) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Implements abstract jakarta. Doc from jakarta. Determines whether the specified object is equal to this
The result is
Note that two expressions can be equal if their expression Strings are different. For example,
| |
| getExpectedType | back to summary |
|---|---|
| public Class Implements abstract jakarta. Doc from jakarta. Returns the type the result of the expression will be coerced to after evaluation. | |
| getExpressionString | back to summary |
|---|---|
| public String getExpressionString() Implements abstract jakarta. Doc from jakarta. Returns the original String used to create this This is used for debugging purposes but also for the purposes of comparison (e.g. to ensure the expression in a configuration file has not changed).
This method does not provide sufficient information to re-create an expression. Two different expressions can have
exactly the same expression string but different function mappings. Serialization should be used to save and restore
the state of an | |
| getType | back to summary |
|---|---|
| public Class Implements abstract jakarta. Doc from jakarta. Evaluates the expression relative to the provided context, and returns the most general type that is acceptable for
an object to be passed as the
This is not always the same as | |
| getValue | back to summary |
|---|---|
| public <T> T getValue(ELContext context) Implements abstract jakarta. Doc from jakarta. Evaluates the expression relative to the provided context, and returns the resulting value.
The resulting value is automatically coerced to the type returned by | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract jakarta. Doc from jakarta. Returns the hash code for this
See the note in the
| |
| isLiteralText | back to summary |
|---|---|
| public boolean isLiteralText() Implements abstract jakarta. Doc from jakarta. Returns whether this expression was created from only literal text.
This method must return
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly(ELContext context) Implements abstract jakarta. Doc from jakarta. Evaluates the expression relative to the provided context, and returns | |
| setValue | back to summary |
|---|---|
| public void setValue(ELContext context, Object value) Implements abstract jakarta. Doc from jakarta. Evaluates the expression relative to the provided context, and sets the result to the provided value. | |