public class CodeAttribute extends Attribute
4.8.3
Modifier and Type | Class and Description |
---|---|
class |
CodeAttribute.ExceptionTableEntry |
Constructor and Description |
---|
CodeAttribute(ConstantPool cp,
short max_stack,
short max_locals)
Constructor for an empty CodeAttribute.
|
Modifier and Type | Method and Description |
---|---|
Attribute |
getAttribute(java.lang.String name)
Gets a named attribute.
|
java.util.List |
getAttributes()
Gets all the attributes defined in this CodeAttribute.
|
byte[] |
getByteCode() |
byte[] |
getBytes()
Get the bytes of this attribute.
|
java.util.List |
getExceptionTable() |
short |
getMaxLocals() |
short |
getMaxStack() |
void |
setByteCode(byte[] byteCode) |
void |
setMaxLocals(short maxLocals) |
void |
setMaxStack(short maxStack) |
getAttributeNameIndex, getDataInputStream, getName, readAttribute, setConstantPool, toString
public CodeAttribute(ConstantPool cp, short max_stack, short max_locals)
public Attribute getAttribute(java.lang.String name)
public java.util.List getAttributes()
public byte[] getByteCode()
public byte[] getBytes()
Attribute
public java.util.List getExceptionTable()
public short getMaxLocals()
public short getMaxStack()
public void setByteCode(byte[] byteCode)
public void setMaxLocals(short maxLocals)
public void setMaxStack(short maxStack)
Copyright © 2001. Documenation generated February 9 2016.