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:
Serializable

public final class JMethod
extends Object
implements 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, String name, String descriptor, String signature, String[] exceptions)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 int getAccess()
           
 String getDescriptor()
           
 String[] getExceptions()
           
 String getName()
           
 String getSignature()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JMethod

public JMethod(int access,
               String name,
               String descriptor,
               String signature,
               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(Object obj)
Indicates whether some other object is "equal to" this one.

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

hashCode

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

getDescriptor

public String getDescriptor()
Returns:
method descriptor

getExceptions

public String[] getExceptions()
Returns:
method exceptions

getName

public String getName()
Returns:
method name

getSignature

public String getSignature()
Returns:
method signature

toString

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


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