|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javar.attributes.Attribute
|
+--javar.attributes.MethodCode
This is an attribute of a method which contains the data for the code :)
| Field Summary |
| Fields inherited from class javar.attributes.Attribute |
nameIndex, pool |
| Constructor Summary | |
MethodCode(ConstantPool p,
long name)
Constructor |
|
| Method Summary | |
byte[] |
getCode()
This will return the code that this attribute holds |
CodeHandler[] |
getHandlers()
This will get the handlers that this attribute has. |
long |
getMaxLocals()
This will get the maximum number of locals. |
long |
getMaxStack()
This will get the maximum stack size. |
void |
load(DataInputStream in)
This will load the contents of an attribute |
void |
setCode(byte[] newCode)
This will set the code that makes this method |
void |
setMaxLocals(long size)
This will set the maximum number of locals; |
void |
setMaxStack(long size)
This will set the maximum stack size. |
byte[] |
toBytes()
This will take this attribute and convert it into an array of bytes that can be stored in a classfile. |
String |
toString()
This will return a string for this attribute, useful only for debugging |
| Methods inherited from class javar.attributes.Attribute |
getName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MethodCode(ConstantPool p,
long name)
| Method Detail |
public String toString()
toString in class Attributepublic byte[] toBytes()
toBytes in class Attributepublic void load(DataInputStream in)
load in class Attributein - the stream to get the data frompublic void setCode(byte[] newCode)
newCode - The new code for this methodpublic byte[] getCode()
public CodeHandler[] getHandlers()
public long getMaxStack()
public void setMaxStack(long size)
size - The new size of the stackpublic long getMaxLocals()
public void setMaxLocals(long size)
size - The new size of the stack
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||