alt.jiapi.file
Class ConstantPool.Entry

java.lang.Object
  extended by alt.jiapi.file.ConstantPool.Entry
Direct Known Subclasses:
ConstantPool.ClassInfo, ConstantPool.DoubleInfo, ConstantPool.FieldRefInfo, ConstantPool.FloatInfo, ConstantPool.IntegerInfo, ConstantPool.InterfaceMethodRefInfo, ConstantPool.LongInfo, ConstantPool.MethodRefInfo, ConstantPool.NameAndTypeInfo, ConstantPool.NullEntry, ConstantPool.StringInfo, ConstantPool.Utf8Info
Enclosing class:
ConstantPool

public abstract class ConstantPool.Entry
extends java.lang.Object

Base class for entries in ConstantPool.


Constructor Summary
ConstantPool.Entry(byte tag)
          Constructor.
 
Method Summary
 short getEntryIndex()
          Get the index in the constant pool.
 byte getTag()
          Gets the tag related to this entry.
abstract  void writeData(java.io.DataOutputStream dos)
          Writes this Entry to DataOutputStream given.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantPool.Entry

public ConstantPool.Entry(byte tag)
Constructor.

Parameters:
tag - One of CONSTANT_XXX defined in ConstantPool
Method Detail

getEntryIndex

public short getEntryIndex()
Get the index in the constant pool.

Returns:
constant pool index of this entry

getTag

public byte getTag()
Gets the tag related to this entry.

Returns:
tag

writeData

public abstract void writeData(java.io.DataOutputStream dos)
                        throws java.io.IOException
Writes this Entry to DataOutputStream given.

Parameters:
dos - DataOutputStream used
Throws:
java.io.IOException


Copyright © 2001. Documenation generated August 26 2011.