com.sun.enterprise.tools.verifier.apiscan.classfile
Interface Method

All Known Implementing Classes:
BCELMethod

public interface Method

Author:
Sanjeeb.Sahoo@Sun.COM

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()
           
 

Method Detail

getOwningClass

ClassFile getOwningClass()
Returns:
the ClassFile this method belongs to.

getName

String getName()
Returns:
the name of the method.

getDescriptor

String getDescriptor()
Returns:
return the descriptor, e.g. ([Ljava.lang.String;)V

getAccess

int getAccess()
Returns:
return the access flags.

getSignature

String getSignature()
Used only when method's parameters or return type use generics.

Returns:

getExceptions

String[] getExceptions()
Returns:
the internal names of the method's exception classes. May be null.

getReferencedMethods

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

getReferencedClasses

Collection<String> getReferencedClasses()
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

MethodRef getSelfReference()
Returns:
a reference that represents this method.

isNative

boolean isNative()
Returns:
true if this is a native method else false


Copyright © 2013 Oracle Corporation. All Rights Reserved.