Package jakarta.el
Class MethodInfo
- java.lang.Object
-
- jakarta.el.MethodInfo
-
public class MethodInfo extends java.lang.Object
Holds information about a method that aMethodExpression
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
Constructors Constructor Description MethodInfo(java.lang.String name, java.lang.Class<?> returnType, java.lang.Class<?>[] paramTypes)
Creates a new instance ofMethodInfo
with the given information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getName()
Returns the name of the methodjava.lang.Class<?>[]
getParamTypes()
Returns the parameter types of the methodjava.lang.Class<?>
getReturnType()
Returns the return type of the methodint
hashCode()
-
-
-
Constructor Detail
-
MethodInfo
public MethodInfo(java.lang.String name, java.lang.Class<?> returnType, java.lang.Class<?>[] paramTypes)
Creates a new instance ofMethodInfo
with 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 Detail
-
getName
public java.lang.String getName()
Returns the name of the method- Returns:
- the name of the method
-
getReturnType
public java.lang.Class<?> getReturnType()
Returns the return type of the method- Returns:
- the return type of the method
-
getParamTypes
public java.lang.Class<?>[] getParamTypes()
Returns the parameter types of the method- Returns:
- the parameter types of the method
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-