public abstract class MethodExpression extends Expression
Constructor and Description |
---|
MethodExpression() |
Modifier and Type | Method and Description |
---|---|
abstract MethodInfo |
getMethodInfo(ELContext context)
Returns information about the referenced method.
|
abstract java.lang.Object |
invoke(ELContext context,
java.lang.Object[] params)
If the expression is a string literal, returns its value coerced to
the expected return type of the method signature.
|
equals, getExpressionString, hashCode, isLiteralText
public abstract MethodInfo getMethodInfo(ELContext context) throws java.lang.NullPointerException, PropertyNotFoundException, MethodNotFoundException, ELException
context
- the evaluation contextjava.lang.NullPointerException
PropertyNotFoundException
MethodNotFoundException
ELException
public abstract java.lang.Object invoke(ELContext context, java.lang.Object[] params) throws java.lang.NullPointerException, PropertyNotFoundException, MethodNotFoundException, ELException
context
- the evaluation contextparams
- the parameters to pass the method or nulljava.lang.NullPointerException
PropertyNotFoundException
MethodNotFoundException
ELException