public class WeldMethodExpression extends ForwardingMethodExpression
Constructor and Description |
---|
WeldMethodExpression(MethodExpression delegate) |
Modifier and Type | Method and Description |
---|---|
protected MethodExpression |
delegate() |
MethodInfo |
getMethodInfo(ELContext context)
Evaluates the expression relative to the provided context, and
returns information about the actual referenced method.
|
Object |
invoke(ELContext context,
Object[] params)
If a String literal is specified as the expression, returns the
String literal coerced to the expected return type of the method
signature.
|
equals, getExpressionString, hashCode, isLiteralText, isParametersProvided, isParmetersProvided, toString
public WeldMethodExpression(MethodExpression delegate)
protected MethodExpression delegate()
delegate
in class ForwardingMethodExpression
public Object invoke(ELContext context, Object[] params)
MethodExpression
ELException
is thrown if
expectedReturnType
is void or if the coercion of the String literal
to the expectedReturnType
yields an error (see Section "1.18 Type
Conversion" of the EL specification).
If not a String literal, evaluates the expression
relative to the provided context, invokes the method that was
found using the supplied parameters, and returns the result of
the method invocation.
Any parameters passed to this method is ignored if isLiteralText()
or isParmetersProvided() is true.invoke
in class ForwardingMethodExpression
context
- The context of this evaluation.params
- The parameters to pass to the method, or
null
if no parameters.null
if
the method has a void
return type).public MethodInfo getMethodInfo(ELContext context)
MethodExpression
getMethodInfo
in class ForwardingMethodExpression
context
- The context of this evaluationMethodInfo
containing information
about the method the expression evaluated to.Copyright © 2013 Seam Framework. All Rights Reserved.