public class MethodInfo
extends java.lang.Object
MethodExpression
evaluated to.
Two MethodInfo instances are considered to be equal if they reference methods
with the same name, return types and parameter types.Constructor and Description |
---|
MethodInfo(java.lang.String name,
java.lang.Class<?> returnType,
java.lang.Class<?>[] paramTypes)
Creates a new instance of
MethodInfo with the given information. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Returns the name of the method
|
java.lang.Class<?>[] |
getParamTypes()
Returns the parameter types of the method
|
java.lang.Class<?> |
getReturnType()
Returns the return type of the method
|
int |
hashCode() |
public MethodInfo(java.lang.String name, java.lang.Class<?> returnType, java.lang.Class<?>[] paramTypes)
MethodInfo
with the given information.name
- The name of the methodreturnType
- The return type of the methodparamTypes
- The types of each of the method's parameterspublic java.lang.String getName()
public java.lang.Class<?> getReturnType()
public java.lang.Class<?>[] getParamTypes()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object