All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class lti.java.jcf.JcfCodeAttribute

java.lang.Object
   |
   +----lti.java.jcf.JcfAttribute
           |
           +----lti.java.jcf.JcfCodeAttribute

public class JcfCodeAttribute
extends JcfAttribute
The attribute "Code". Includes symbolic information, JVM bytecode, and exceptions.


Variable Index

 o catCode
 o catExceptionTable
 o catExtraAttributes
"Code" attributes may contain nested "LineNumberTable" and other attributes.
 o catMaxLocals
 o catMaxStack

Constructor Index

 o JcfCodeAttribute(JcfClassInput, short, JcfConstantPool)

Method Index

 o readCode(JcfClassInput)
 o readData(JcfClassInput)
Reads header data, then calls readCode to read in the bytecode.
 o write(JcfClassOutput)
In order to calculate the correct updated atrLength field, creates a new ByteArrayOutputStream to buffer the Code attribute specific data and any subattributes.
 o writeCode(JcfClassOutput)

Variables

 o catMaxStack
 public short catMaxStack
 o catMaxLocals
 public short catMaxLocals
 o catCode
 public byte catCode[]
 o catExceptionTable
 public JcfExceptionTable catExceptionTable
 o catExtraAttributes
 public JcfAttributeCollection catExtraAttributes
"Code" attributes may contain nested "LineNumberTable" and other attributes.

Constructors

 o JcfCodeAttribute
 public JcfCodeAttribute(JcfClassInput ist,
                         short nameIndex,
                         JcfConstantPool p) throws IOException, ClassFormatError

Methods

 o readData
 public void readData(JcfClassInput ist) throws IOException, ClassFormatError
Reads header data, then calls readCode to read in the bytecode.

Overrides:
readData in class JcfAttribute
 o write
 public void write(JcfClassOutput ost) throws IOException
In order to calculate the correct updated atrLength field, creates a new ByteArrayOutputStream to buffer the Code attribute specific data and any subattributes. Then, the superclass write() is called.

Overrides:
write in class JcfAttribute
 o writeCode
 public void writeCode(JcfClassOutput ost) throws IOException, ClassFormatError
 o readCode
 public void readCode(JcfClassInput ist) throws IOException, ClassFormatError

All Packages  Class Hierarchy  This Package  Previous  Next  Index