public class MethodInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.ClassLoader |
classloader
Cached classloader.
|
protected java.lang.String |
classname
Cached class.
|
protected java.lang.reflect.Method |
method
Cached method.
|
protected java.lang.String |
name
The method name.
|
protected ClassInfo[] |
parametertypes
The parameter classes.
|
protected ClassInfo |
returntype
Cached return type.
|
Constructor and Description |
---|
MethodInfo()
Create a new method info.
|
MethodInfo(java.lang.reflect.Method m)
Create a new method info.
|
MethodInfo(java.lang.String name,
java.lang.Class<?>[] parametertypes)
Create a new method info.
|
MethodInfo(java.lang.String name,
ClassInfo[] parametertypes)
Create a new method info.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Test if an object is equal to this.
|
java.lang.String |
getClassName()
Gets the class name for retrieving the method.
|
java.lang.reflect.Method |
getMethod(java.lang.ClassLoader cl) |
java.lang.String |
getName()
Get the name.
|
java.lang.String |
getNameWithParameters()
Get the name with parameters, e.g.
|
ClassInfo[] |
getParameterTypeInfos()
Get the parametertypes.
|
java.lang.Class<?>[] |
getParameterTypes()
Deprecated.
|
java.lang.Class<?>[] |
getParameterTypes(java.lang.ClassLoader cl)
Get the parametertypes as classes.
|
ClassInfo |
getReturnTypeInfo()
Get the return type.
|
int |
hashCode()
Get the hashcode.
|
void |
setClassName(java.lang.String classname)
Sets the class name for retrieving the method.
|
void |
setName(java.lang.String name)
Set the name.
|
void |
setParameterTypeInfos(ClassInfo[] parametertypes)
Set the parametertypes.
|
void |
setParameterTypes(java.lang.Class<?>[] parametertypes)
Get the parametertypes as classes.
|
java.lang.String |
toString()
Get the string representation.
|
protected java.lang.String name
protected ClassInfo[] parametertypes
protected ClassInfo returntype
protected java.lang.String classname
protected java.lang.reflect.Method method
protected java.lang.ClassLoader classloader
public MethodInfo()
public MethodInfo(java.lang.reflect.Method m)
public MethodInfo(java.lang.String name, java.lang.Class<?>[] parametertypes)
public MethodInfo(java.lang.String name, ClassInfo[] parametertypes)
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.@Deprecated public java.lang.Class<?>[] getParameterTypes()
public java.lang.Class<?>[] getParameterTypes(java.lang.ClassLoader cl)
public void setParameterTypes(java.lang.Class<?>[] parametertypes)
public ClassInfo[] getParameterTypeInfos()
public void setParameterTypeInfos(ClassInfo[] parametertypes)
parametertypes
- The parametertypes to set.public ClassInfo getReturnTypeInfo()
public void setClassName(java.lang.String classname)
classname
- Name of the class.public java.lang.String getClassName()
public java.lang.reflect.Method getMethod(java.lang.ClassLoader cl)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getNameWithParameters()