com.sun.enterprise.tools.verifier.apiscan.classfile
Interface Method
- All Known Implementing Classes:
- BCELMethod
public interface Method
- Author:
- Sanjeeb.Sahoo@Sun.COM
getOwningClass
ClassFile getOwningClass()
- Returns:
- the
ClassFile this method belongs to.
getName
java.lang.String getName()
- Returns:
- the name of the method.
getDescriptor
java.lang.String getDescriptor()
- Returns:
- return the descriptor, e.g. ([Ljava.lang.String;)V
getAccess
int getAccess()
- Returns:
- return the access flags.
getSignature
java.lang.String getSignature()
- Used only when method's parameters or return type use generics.
- Returns:
getExceptions
java.lang.String[] getExceptions()
- Returns:
- the internal names of the method's exception classes. May be null.
getReferencedMethods
java.util.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
java.util.Collection<java.lang.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 © 2011 Oracle Corporation. All Rights Reserved.