public class MethodExpressionLiteral extends MethodExpression implements Externalizable
Constructor and Description |
---|
MethodExpressionLiteral() |
MethodExpressionLiteral(String expr,
Class<?> expectedType,
Class<?>[] paramTypes) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getExpressionString() |
MethodInfo |
getMethodInfo(ELContext context) |
int |
hashCode() |
Object |
invoke(ELContext context,
Object[] params) |
boolean |
isLiteralText() |
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
isParametersProvided, isParmetersProvided
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 Object invoke(ELContext context, 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 String getExpressionString()
getExpressionString
in class Expression
public boolean equals(Object obj)
equals
in class Expression
public int hashCode()
hashCode
in class Expression
public boolean isLiteralText()
isLiteralText
in class Expression
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.