alt.jiapi.file.attribute
Class CodeAttribute
java.lang.Object
alt.jiapi.file.attribute.Attribute
alt.jiapi.file.attribute.CodeAttribute
public class CodeAttribute
- extends Attribute
Code attribute.
- Author:
- Mika Riekkinen
- See Also:
4.8.3
Fields inherited from class alt.jiapi.file.attribute.Attribute |
cp |
Constructor Summary |
CodeAttribute(ConstantPool cp,
short max_stack,
short max_locals)
Constructor for an empty CodeAttribute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CodeAttribute
public CodeAttribute(ConstantPool cp,
short max_stack,
short max_locals)
- Constructor for an empty CodeAttribute.
No bytecode is created.
getAttribute
public Attribute getAttribute(java.lang.String name)
- Gets a named attribute.
getAttributes
public java.util.List getAttributes()
- Gets all the attributes defined in this CodeAttribute.
getByteCode
public byte[] getByteCode()
getBytes
public byte[] getBytes()
- Description copied from class:
Attribute
- Get the bytes of this attribute.
- Overrides:
getBytes
in class Attribute
- Returns:
- bytes representing this Attribute.
getExceptionTable
public java.util.List getExceptionTable()
getMaxLocals
public short getMaxLocals()
getMaxStack
public short getMaxStack()
setByteCode
public void setByteCode(byte[] byteCode)
setMaxLocals
public void setMaxLocals(short maxLocals)
setMaxStack
public void setMaxStack(short maxStack)
Copyright © 2001. Documenation generated August 26 2011.