org.objectweb.asm.commons
Class Method
A named method descriptor.
- Juozas Baliuka
- Chris Nokleberg
- Eric Bruneton
Method
public Method(String name,
String desc)
name
- the method's name.desc
- the method's descriptor.
Method
public Method(String name,
Type returnType,
Type[] argumentTypes)
name
- the method's name.returnType
- the method's return type.argumentTypes
- the method's argument types.
equals
public boolean equals(Object o)
getArgumentTypes
public Type[] getArgumentTypes()
Returns the argument types of the method described by this object.
- the argument types of the method described by this object.
getDescriptor
public String getDescriptor()
Returns the descriptor of the method described by this object.
- the descriptor of the method described by this object.
getMethod
public static Method getMethod(String method)
throws IllegalArgumentException
Returns a
Method
corresponding to the given Java method
declaration.
method
- a Java method declaration, without argument names, of the
form "returnType name (argumentType1, ... argumentTypeN)", where
the types are in plain Java (e.g. "int", "float",
"java.util.List", ...).
- a
Method
corresponding to the given Java method
declaration.
getName
public String getName()
Returns the name of the method described by this object.
- the name of the method described by this object.
getReturnType
public Type getReturnType()
Returns the return type of the method described by this object.
- the return type of the method described by this object.
hashCode
public int hashCode()
toString
public String toString()