org.ow2.util.scan.api.metadata.structures
Class JMethod

java.lang.Object
  extended by org.ow2.util.scan.api.metadata.structures.JMethod
All Implemented Interfaces:
java.io.Serializable

public final class JMethod
extends java.lang.Object
implements java.io.Serializable

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
See Also:
Serialized Form

Constructor Summary
JMethod(int access, java.lang.String name, java.lang.String descriptor, java.lang.String signature, java.lang.String[] exceptions)
          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
 

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 org.ow2.easybeans.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.
Method Detail

getAccess

public int getAccess()
Returns:
the access mode (see org.ow2.easybeans.asm.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


Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.