alt.jiapi.file.attribute
Class CodeAttribute

java.lang.Object
  extended by alt.jiapi.file.attribute.Attribute
      extended by alt.jiapi.file.attribute.CodeAttribute

public class CodeAttribute
extends Attribute

Code attribute.

Author:
Mika Riekkinen
See Also:
4.8.3

Nested Class Summary
 class CodeAttribute.ExceptionTableEntry
           
 
Field Summary
 
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.
 
Method Summary
 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)
           
 
Methods inherited from class alt.jiapi.file.attribute.Attribute
getAttributeNameIndex, getDataInputStream, getName, readAttribute, setConstantPool, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CodeAttribute

public CodeAttribute(ConstantPool cp,
                     short max_stack,
                     short max_locals)
Constructor for an empty CodeAttribute. No bytecode is created.

Method Detail

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.