org.aspectj.org.eclipse.jdt.internal.core.util
Class ConstantPool

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
      extended by org.aspectj.org.eclipse.jdt.internal.core.util.ConstantPool
All Implemented Interfaces:
IConstantPool

public class ConstantPool
extends ClassFileStruct
implements IConstantPool

Default implementation of IConstantPool.


Method Summary
 IConstantPoolEntry decodeEntry(int index)
          Answer back the entry at the index @index in the constant pool.
 int getConstantPoolCount()
          Answer back the number of entries in the constant pool.
 int getEntryKind(int index)
          Answer back the type of the entry at the index @index in the constant pool.
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
doubleAt, floatAt, i1At, i2At, i4At, i8At, u1At, u2At, u4At, utf8At
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decodeEntry

public IConstantPoolEntry decodeEntry(int index)
Description copied from interface: IConstantPool
Answer back the entry at the index @index in the constant pool.

Specified by:
decodeEntry in interface IConstantPool
Parameters:
index - the index of the entry in the constant pool
Returns:
the entry at the index @index in the constant pool
See Also:
IConstantPool.decodeEntry(int)

getConstantPoolCount

public int getConstantPoolCount()
Description copied from interface: IConstantPool
Answer back the number of entries in the constant pool.

Specified by:
getConstantPoolCount in interface IConstantPool
Returns:
the number of entries in the constant pool
See Also:
IConstantPool.getConstantPoolCount()

getEntryKind

public int getEntryKind(int index)
Description copied from interface: IConstantPool
Answer back the type of the entry at the index @index in the constant pool.

Specified by:
getEntryKind in interface IConstantPool
Parameters:
index - the index of the entry in the constant pool
Returns:
the type of the entry at the index @index in the constant pool
See Also:
IConstantPool.getEntryKind(int)