Package jakarta.el
Class MethodInfo
java.lang.Object
jakarta.el.MethodInfo
Holds information about a method that a
MethodExpression evaluated to.
Two MethodInfo instances are considered to be equal if they reference methods
with the same name, return types and parameter types.- Since:
- Jakarta Server Pages 2.1
-
Constructor Summary
ConstructorsConstructorDescriptionMethodInfo(String name, Class<?> returnType, Class<?>[] paramTypes) Creates a new instance ofMethodInfowith the given information. -
Method Summary
-
Constructor Details
-
MethodInfo
Creates a new instance ofMethodInfowith the given information.- Parameters:
name- The name of the methodreturnType- The return type of the methodparamTypes- The types of each of the method's parameters
-
-
Method Details
-
getName
Returns the name of the method- Returns:
- the name of the method
-
getReturnType
Returns the return type of the method- Returns:
- the return type of the method
-
getParamTypes
Returns the parameter types of the method- Returns:
- the parameter types of the method
-
hashCode
public int hashCode() -
equals
-