| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private MethodExpression | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the o)Object to test for equality.Implements abstract jakarta. Determines whether the specified object is equal to this |
| public String | getExpressionString()
Implements abstract jakarta. Returns the original String used to create this |
| public MethodInfo | getMethodInfo(ELContext
The context of this evaluation context)Implements abstract jakarta. Evaluates the expression relative to the provided context, and returns information about the actual referenced method. |
| public int | hashCode()
Implements abstract jakarta. Returns the hash code for this |
| public Object | invoke(ELContext
The context of this evaluation. context, Object[] The parameters to pass to the method, or params)null if no parameters.Implements abstract jakarta. If a String literal is specified as the expression, returns the String literal coerced to the expected return type of the method signature. |
| public boolean | isLiteralText()
Implements abstract jakarta. Returns whether this expression was created from only literal text. |
| public void | readExternal(ObjectInput
the stream to read data from in order to restore the object in)Implements java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
| public String | |
| public void | writeExternal(ObjectOutput
the stream to write the object to out)Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
| attr | back to summary |
|---|---|
| private String attr | |
| orig | back to summary |
|---|---|
| private MethodExpression orig | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| TagMethodExpression | back to summary |
|---|---|
| public TagMethodExpression() | |
| TagMethodExpression | back to summary |
|---|---|
| public TagMethodExpression(TagAttribute attr, MethodExpression orig) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) 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,
| |
| 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 | |
| getMethodInfo | back to summary |
|---|---|
| public MethodInfo getMethodInfo(ELContext context) Implements abstract jakarta. Doc from jakarta. Evaluates the expression relative to the provided context, and returns information about the actual referenced method.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract jakarta. Doc from jakarta. Returns the hash code for this
See the note in the
| |
| invoke | back to summary |
|---|---|
| public Object invoke(ELContext context, Object[] params) Implements abstract jakarta. Doc from jakarta. If a String literal is specified as the expression, returns the String literal coerced to the expected return type of
the method signature. An | |
| 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
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Implements java. Doc from java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
| |
| 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- | |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Implements java. Doc from java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
| |