| Modifier and Type | Field and Description |
|---|---|
| private Class | |
| private String | |
| private Class |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the obj)Object to test for equality.Implements abstract javax. Expression.
|
| public String | getExpressionString()
Implements abstract javax. Expression,
unmodified.
|
| public MethodInfo | getMethodInfo(ELContext
The context of this evaluation context)Implements abstract javax. |
| public int | hashCode()
Implements abstract javax. Expression.
|
| 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 javax. |
| public boolean | isLiteralText()
Implements abstract javax. |
| public void | readExternal(ObjectInput
the stream to read data from in order to restore the object in)Implements java. |
| public void | writeExternal(ObjectOutput
the stream to write the object to out)Implements java. |
| expectedType | back to summary |
|---|---|
| private Class<?> expectedType | |
| expr | back to summary |
|---|---|
| private String expr | |
| paramTypes | back to summary |
|---|---|
| private Class<?>[] paramTypes | |
| MethodExpressionLiteral | back to summary |
|---|---|
| public MethodExpressionLiteral() | |
| MethodExpressionLiteral | back to summary |
|---|---|
| public MethodExpressionLiteral(String expr, Class<?> expectedType, Class<?>[] paramTypes) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Implements abstract javax. Doc from javax. 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 javax. Doc from javax. 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) throws ELException Implements abstract javax. Doc from javax. 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 javax. Doc from javax. Returns the hash code for this See the note in the
| |
| invoke | back to summary |
|---|---|
| public Object invoke(ELContext context, Object[] params) throws ELException Implements abstract javax. Doc from javax. 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 javax. Doc from javax. 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.
| |
| 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.
| |