|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bm.ejb3metadata.annotations.JMethod
public class JMethod
This class defines a Method object. It is not based on reflection but allows to build a JMethod based on java.lang.reflect.Method
Constructor Summary | |
---|---|
JMethod(int access,
java.lang.String name,
java.lang.String descriptor,
java.lang.String signature,
java.lang.String[] exceptions)
Constructor. |
|
JMethod(java.lang.reflect.Method m)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
int |
getAccess()
the access mode (see org.ejb3unit.asm.Opcodes ). |
java.lang.String |
getDescriptor()
method descriptor. |
java.lang.String[] |
getExceptions()
method exceptions. |
java.lang.String |
getName()
method name. |
java.lang.String |
getSignature()
method signature. |
int |
hashCode()
a hash code value for the object. |
java.lang.String |
toString()
string representation. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JMethod(int access, java.lang.String name, java.lang.String descriptor, java.lang.String signature, java.lang.String[] exceptions)
access
- the access mode (see org.ejb3unit.asm.Opcodes
)name
- the method's name.descriptor
- the method's descriptor (see
Type
).signature
- the method's signature. May be null if the
method parameters, return type and exceptions do not use generic
types.exceptions
- the internal names of the method's exception classes
(see
getInternalName
).
May be null.public JMethod(java.lang.reflect.Method m)
m
- Method
method.Method Detail |
---|
public int getAccess()
org.ejb3unit.asm.Opcodes
).
org.ejb3unit.asm.Opcodes
)public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- object to compare
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getDescriptor()
public java.lang.String[] getExceptions()
public java.lang.String getName()
public java.lang.String getSignature()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |