public final class CpRef extends CpEntry
TAG_CLASS, TAG_DOUBLE, TAG_FIELDREF, TAG_FLOAT, TAG_INTEGER, TAG_INTERFACE_METHODREF, TAG_LONG, TAG_METHODREF, TAG_NAME_AND_TYPE, TAG_STRING, TAG_UTF8
Modifier and Type | Method and Description |
---|---|
void |
computeHash()
Signal the entry to recompute (and store) its hashcode.
|
CpClass |
getCpClass() |
CpNameAndType |
getNameAndType() |
int |
getNonStaticStackSize()
Get the number of stack parameters specified by the signature.
|
int |
getStackSize()
Return the amount of stack size in words needed to process this field or method,
eg If its a field, this returns 2 if its a long or double, otherwise 1.
|
java.lang.String |
toString() |
public final CpClass getCpClass()
public final CpNameAndType getNameAndType()
public int getStackSize()
If its a method this is the sum of the arg sizes.
public int getNonStaticStackSize()
The same as the number of arguments, plus 1 for the "this" reference, plus 1 for each long/double argument.
This is needed to produce the argument count for INVOKEINTERFACE methods, which stupidly need that number.
public void computeHash()
CpEntry
The default does nothing.
computeHash
in class CpEntry
public java.lang.String toString()
toString
in class java.lang.Object
Copyright ? 2000-2003 Clarity Systems Group, LLC. All Rights Reserved.