Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.chaoswg.xtc4y.classdesc
Class Attribute  view Attribute download Attribute.java

java.lang.Object
  extended bycom.chaoswg.xtc4y.classdesc.Attribute
Direct Known Subclasses:
CodeAttribute, ConstantValueAttribute, DefaultAttribute, DeprecatedAttribute, ExceptionsAttribute, InnerClassesAttribute, LineNumberTableAttribute, LocalVariableTableAttribute, SourceFileAttribute, SyntheticAttribute

public abstract class Attribute
extends java.lang.Object

This class describes the information for an attribute.


Constructor Summary
  Attribute()
          Create an empty attribute
protected Attribute(java.io.DataInputStream dis, ConstantPool cp, int length)
          Creates a Attribute and initializes it from a DataInputStream
 
Method Summary
abstract  java.lang.String getName()
           
 java.lang.String toString()
          Write in a readable way
protected abstract  void writeAttribute(java.io.DataOutputStream dos, ConstantPool cp)
          Write the attribute information onto the DataOutputStream, using the constant pool to register variables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute

protected Attribute(java.io.DataInputStream dis,
                    ConstantPool cp,
                    int length)
             throws java.io.IOException
Creates a Attribute and initializes it from a DataInputStream


Attribute

public Attribute()
Create an empty attribute

Method Detail

writeAttribute

protected abstract void writeAttribute(java.io.DataOutputStream dos,
                                       ConstantPool cp)
                                throws java.io.IOException
Write the attribute information onto the DataOutputStream, using the constant pool to register variables. The Attribute name and the length of the information will already be written. A specific attribute implementation should overwrite this method.


getName

public abstract java.lang.String getName()

toString

public java.lang.String toString()
Write in a readable way