|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rit.classfile.SubroutineReference
edu.rit.classfile.SubroutineDescription
public abstract class SubroutineDescription
Class SubroutineDescription encapsulates the information needed to refer to or to describe a subroutine (method, constructor, or class initializer). This includes the class, method name, return type, argument types, access flags, thrown exceptions, instructions, and exception handlers. In the documentation below, the term "described subroutine" means "the subroutine described by this subroutine description object."
Method Summary | |
---|---|
int |
getCodeLength()
Returns the described subroutine's code length. |
List |
getExceptionHandlers()
Returns a list of the described subroutine's exception handlers. |
List |
getInstructions()
Returns a list of the described subroutine's bytecode instructions. |
int |
getMaxLocals()
Returns the described subroutine's max_locals item. |
int |
getMaxStack()
Returns the described subroutine's max_stack item. |
List |
getThrownExceptions()
Returns a list of the exception classes the described subroutine is declared to throw. |
boolean |
isAbstract()
Returns true if the described subroutine is abstract, that is, no implementation is provided. |
boolean |
isFinal()
Returns true if the described subroutine is final, that is, may not be overridden. |
boolean |
isNative()
Returns true if the described subroutine is native, that is, implemented in a language other than Java. |
boolean |
isPackageScoped()
Returns true if the described subroutine has default access (also known as package scoped), that is, may be accessed only from inside its defining package or inside its defining class. |
boolean |
isPrivate()
Returns true if the described subroutine is private, that is, may be accessed only from inside its defining class. |
boolean |
isProtected()
Returns true if the described subroutine is protected, that is, may be accessed only from inside its defining package, inside its defining class, or inside subclasses of its defining class. |
boolean |
isPublic()
Returns true if the described subroutine is public, that is, may be accessed from inside and outside its defining package. |
boolean |
isStatic()
Returns true if the described subroutine is static. |
boolean |
isStrictfp()
Returns true if the described subroutine uses strict floating point mode. |
boolean |
isSynchronized()
Returns true if the described subroutine is synchronized, that is, the monitor must be locked upon invocation and unlocked upon return. |
Methods inherited from class edu.rit.classfile.SubroutineReference |
---|
equals, getArgumentTypes, getArgumentWordCount, getClassReference, getMethodDescriptor, getMethodName, getReturnType, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean isPublic()
public boolean isPrivate()
public boolean isProtected()
public boolean isPackageScoped()
public boolean isStatic()
public boolean isFinal()
public boolean isSynchronized()
public boolean isNative()
public boolean isAbstract()
public boolean isStrictfp()
public List getThrownExceptions()
ClassReference
. The
exceptions appear in the list in the order they were declared. If the
subroutine is declared to throw no exceptions, the returned list's size
is zero.
public int getMaxStack()
public int getMaxLocals()
public List getInstructions()
Instruction
. The instructions appear in the
list in the order they were added.
public int getCodeLength()
public List getExceptionHandlers()
ExceptionHandler
. The exception handlers
appear in the list in the order they were added.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |