org.objectweb.easybeans.deployment.annotations
Class JMethod

java.lang.Object
  extended by org.objectweb.easybeans.deployment.annotations.JMethod

public class JMethod
extends java.lang.Object

This class defines a Method object. It is not based on reflection but allows to build a JMethod based on java.lang.reflect.Method

Author:
Florent Benoit

Field Summary
private  int access
          Access mode (see Opcodes).
private  java.lang.String descriptor
          Method's descriptor.
private  java.lang.String[] exceptions
          Exceptions of the method.
private  java.lang.String name
          Name of the method.
private  java.lang.String signature
          Method's signature.
 
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()
           
 java.lang.String getDescriptor()
           
 java.lang.String[] getExceptions()
           
 java.lang.String getName()
           
 java.lang.String getSignature()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Name of the method.


access

private int access
Access mode (see Opcodes).


descriptor

private java.lang.String descriptor
Method's descriptor.


signature

private java.lang.String signature
Method's signature.


exceptions

private java.lang.String[] exceptions
Exceptions of the method.

Constructor Detail

JMethod

public JMethod(int access,
               java.lang.String name,
               java.lang.String descriptor,
               java.lang.String signature,
               java.lang.String[] exceptions)
Constructor.

Parameters:
access - the access mode (see 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.

JMethod

public JMethod(java.lang.reflect.Method m)
Constructor.

Parameters:
m - Method method.
Method Detail

getAccess

public int getAccess()
Returns:
the access mode (see Opcodes)

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Parameters:
obj - object to compare
Returns:
true if given object is equals

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for the object.

getDescriptor

public java.lang.String getDescriptor()
Returns:
method descriptor

getExceptions

public java.lang.String[] getExceptions()
Returns:
method exceptions

getName

public java.lang.String getName()
Returns:
method name

getSignature

public java.lang.String getSignature()
Returns:
method signature

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
string representation