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