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.
-
constPool
-
-
JcfAttributeCollection(JcfClassInput, JcfConstantPool)
-
-
attributeAt(int)
-
-
getConstPool()
-
-
readAttribute(JcfClassInput, short)
-
Called to read each attribute; use as factory method for substituting
subclasses of JcfAttribute.
-
write(JcfClassOutput)
-
-
writeAttribute(JcfClassOutput, JcfAttribute)
- Called to write each attribute.
constPool
protected JcfConstantPool constPool
JcfAttributeCollection
public JcfAttributeCollection(JcfClassInput ist,
JcfConstantPool p) throws ClassFormatError, IOException
getConstPool
public final JcfConstantPool getConstPool()
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.
attributeAt
public final JcfAttribute attributeAt(int index)
write
public void write(JcfClassOutput ost) throws IOException
writeAttribute
public void writeAttribute(JcfClassOutput ost,
JcfAttribute attribute) throws IOException
- Called to write each attribute.
All Packages Class Hierarchy This Package Previous Next Index