public class MethodExpressionLiteral extends MethodExpression implements java.io.Externalizable
Constructor and Description |
---|
MethodExpressionLiteral() |
MethodExpressionLiteral(java.lang.String expr,
java.lang.Class<?> expectedType,
java.lang.Class<?>[] paramTypes) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getExpressionString() |
MethodInfo |
getMethodInfo(ELContext context) |
int |
hashCode() |
java.lang.Object |
invoke(ELContext context,
java.lang.Object[] params) |
boolean |
isLiteralText() |
void |
readExternal(java.io.ObjectInput in) |
void |
writeExternal(java.io.ObjectOutput out) |
isParametersProvided, isParmetersProvided
public MethodExpressionLiteral()
public MethodExpressionLiteral(java.lang.String expr, java.lang.Class<?> expectedType, java.lang.Class<?>[] paramTypes)
public MethodInfo getMethodInfo(ELContext context) throws ELException
getMethodInfo
in class MethodExpression
context
- The EL context for this evaluationPropertyNotFoundException
- If a property/variable resolution failed because no match
was found or a match was found but was not readableMethodNotFoundException
- If no matching method can be foundELException
- Wraps any exception throw whilst resolving the propertypublic java.lang.Object invoke(ELContext context, java.lang.Object[] params) throws ELException
invoke
in class MethodExpression
context
- The EL context for this evaluationparams
- The parameters with which to invoke this method expressionPropertyNotFoundException
- If a property/variable resolution failed because no match
was found or a match was found but was not readableMethodNotFoundException
- If no matching method can be foundELException
- Wraps any exception throw whilst resolving the property or
coercion of the result to the expected return type failspublic java.lang.String getExpressionString()
getExpressionString
in class Expression
public boolean equals(java.lang.Object obj)
equals
in class Expression
public int hashCode()
hashCode
in class Expression
public boolean isLiteralText()
isLiteralText
in class Expression
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.