All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class lti.java.jcf.JcfAttributeCollection

java.lang.Object
   |
   +----java.util.Vector
           |
           +----lti.java.jcf.JcfAttributeCollection

public class JcfAttributeCollection
extends Vector
implements RuntimeConstants
JcfAttributeCollection is a vector of JcfAttributes. It can read and write collections of attributes, and can be used to add and delete attributes.


Variable Index

 o constPool

Constructor Index

 o JcfAttributeCollection(JcfClassInput, JcfConstantPool)

Method Index

 o attributeAt(int)
 o getConstPool()
 o readAttribute(JcfClassInput, short)
Called to read each attribute; use as factory method for substituting subclasses of JcfAttribute.
 o write(JcfClassOutput)
 o writeAttribute(JcfClassOutput, JcfAttribute)
Called to write each attribute.

Variables

 o constPool
 protected JcfConstantPool constPool

Constructors

 o JcfAttributeCollection
 public JcfAttributeCollection(JcfClassInput ist,
                               JcfConstantPool p) throws ClassFormatError, IOException

Methods

 o getConstPool
 public final JcfConstantPool getConstPool()
 o readAttribute
 public JcfAttribute readAttribute(JcfClassInput ist,
                                   short nameIndex) throws IOException
Called to read each attribute; use as factory method for substituting subclasses of JcfAttribute.

Parameters:
nameIndex - the CP index of a CptUTF that defines the name of the attribute to be read.
 o attributeAt
 public final JcfAttribute attributeAt(int index)
 o write
 public void write(JcfClassOutput ost) throws IOException
 o writeAttribute
 public void writeAttribute(JcfClassOutput ost,
                            JcfAttribute attribute) throws IOException
Called to write each attribute.


All Packages  Class Hierarchy  This Package  Previous  Next  Index