|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.asm.commons.Method
public class Method
A named method descriptor.
Constructor Summary | |
---|---|
Method(String name,
String desc)
Creates a new Method . |
|
Method(String name,
Type returnType,
Type[] argumentTypes)
Creates a new Method . |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
Type[] |
getArgumentTypes()
Returns the argument types of the method described by this object. |
String |
getDescriptor()
Returns the descriptor of the method described by this object. |
static Method |
getMethod(String method)
Returns a Method corresponding to the given Java method
declaration. |
String |
getName()
Returns the name of the method described by this object. |
Type |
getReturnType()
Returns the return type of the method described by this object. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Method(String name, String desc)
Method
.
name
- the method's name.desc
- the method's descriptor.public Method(String name, Type returnType, Type[] argumentTypes)
Method
.
name
- the method's name.returnType
- the method's return type.argumentTypes
- the method's argument types.Method Detail |
---|
public static Method getMethod(String method) throws IllegalArgumentException
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", ...).
Method
corresponding to the given Java method
declaration.
IllegalArgumentException
- if method
could not get
parsed.public String getName()
public String getDescriptor()
public Type getReturnType()
public Type[] getArgumentTypes()
public String toString()
public boolean equals(Object o)
public int hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |