Package jakarta.el
Class MethodReference
java.lang.Object
jakarta.el.MethodReference
Provides information about the method to which a method expression resolves.
Two MethodReference instances are considered equal if the reference the same
method on the same base object.
-
Constructor Summary
ConstructorDescriptionMethodReference
(Object base, MethodInfo methodInfo, Annotation[] annotations, Object[] evaluatedParameters) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Obtain the annotations on the method to which the associated expression resolves.getBase()
Obtain the base object on which the method will be invoked.Object[]
Obtain the evaluated parameter values that will be passed to the method to which the associated expression resolves.int
hashCode()
-
Constructor Details
-
MethodReference
public MethodReference(Object base, MethodInfo methodInfo, Annotation[] annotations, Object[] evaluatedParameters)
-
-
Method Details
-
getBase
Obtain the base object on which the method will be invoked.- Returns:
- The base object on which the method will be invoked or
null
for literal method expressions.
-
getMethodInfo
- Returns:
- The
MethodInfo
for theMethodExpression
for which thisMethodReference
has been generated.
-
getAnnotations
Obtain the annotations on the method to which the associated expression resolves.- Returns:
- The annotations on the method to which the associated expression resolves. If the are no annotations, then an empty array is returned.
-
getEvaluatedParameters
Obtain the evaluated parameter values that will be passed to the method to which the associated expression resolves.- Returns:
- The evaluated parameters.
-
hashCode
public int hashCode() -
equals
-