com.sun.enterprise.tools.verifier.apiscan.classfile
Class BCELMethod

java.lang.Object
  extended by com.sun.enterprise.tools.verifier.apiscan.classfile.BCELMethod
All Implemented Interfaces:
Method

public class BCELMethod
extends Object
implements Method

Author:
Sanjeeb.Sahoo@Sun.COM

Constructor Summary
BCELMethod(ClassFile owningClass, org.apache.bcel.classfile.Method method)
           
 
Method Summary
 int getAccess()
           
 String getDescriptor()
           
 String[] getExceptions()
           
 String getName()
           
 ClassFile getOwningClass()
           
 Collection<String> getReferencedClasses()
           
 Collection<MethodRef> getReferencedMethods()
           
 MethodRef getSelfReference()
           
 String getSignature()
          Used only when method's parameters or return type use generics.
 boolean isNative()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BCELMethod

public BCELMethod(ClassFile owningClass,
                  org.apache.bcel.classfile.Method method)
Method Detail

getOwningClass

public ClassFile getOwningClass()
Specified by:
getOwningClass in interface Method
Returns:
the ClassFile this method belongs to.

getName

public String getName()
Specified by:
getName in interface Method
Returns:
the name of the method.

getDescriptor

public String getDescriptor()
Specified by:
getDescriptor in interface Method
Returns:
return the descriptor, e.g. ([Ljava.lang.String;)V

getAccess

public int getAccess()
Specified by:
getAccess in interface Method
Returns:
return the access flags.

getSignature

public String getSignature()
Description copied from interface: Method
Used only when method's parameters or return type use generics.

Specified by:
getSignature in interface Method
Returns:

getExceptions

public String[] getExceptions()
Specified by:
getExceptions in interface Method
Returns:
the internal names of the method's exception classes. May be null.

getReferencedMethods

public Collection<MethodRef> getReferencedMethods()
Specified by:
getReferencedMethods in interface Method
Returns:
an unmodifiable collection of method references representing the methods that are invoked directly (i.e. not recurssively) from this method.

getReferencedClasses

public Collection<String> getReferencedClasses()
Specified by:
getReferencedClasses in interface Method
Returns:
an unmodifiable collection of class names in external format representing the classes that are directly (i.e. not recurssively) referenced by this method.

getSelfReference

public MethodRef getSelfReference()
Specified by:
getSelfReference in interface Method
Returns:
a reference that represents this method.

isNative

public boolean isNative()
Specified by:
isNative in interface Method
Returns:
true if this is a native method else false


Copyright © 2013 Oracle Corporation. All Rights Reserved.