|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rit.classfile.SubroutineReference
public abstract class SubroutineReference
Class SubroutineReference encapsulates the information needed to refer to a subroutine (method, constructor, or class initializer). This includes the subroutine's class, name, return type, and argument types. In the documentation below, the term "referenced subroutine" means "the subroutine referred to by this subroutine reference object."
Method Summary | |
---|---|
boolean |
equals(Object obj)
Determine if this subroutine reference is equal to the given object. |
List |
getArgumentTypes()
Returns a list of the referenced subroutine's argument types. |
int |
getArgumentWordCount()
Returns the number of virtual machine words occupied on the operand stack by the referenced subroutine's arguments when the referenced subroutine is invoked. |
ClassReference |
getClassReference()
Returns the class which contains the referenced subroutine. |
String |
getMethodDescriptor()
Returns the referenced subroutine's method descriptor. |
String |
getMethodName()
Returns the referenced subroutine's method name. |
TypeReference |
getReturnType()
Returns the referenced subroutine's return type. |
int |
hashCode()
Returns a hash code for this subroutine reference. |
String |
toString()
Returns a string version of this subroutine reference. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public ClassReference getClassReference()
public String getMethodName()
public String getMethodDescriptor()
public TypeReference getReturnType()
public List getArgumentTypes()
TypeReference
. The arguments appear in
the list in the order they were declared. If there are no arguments, the
returned list's size is zero.
public int getArgumentWordCount()
public boolean equals(Object obj)
equals
in class Object
obj
- Object to test.
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |