org.netbeans.modules.classfile/1 1.35

org.netbeans.modules.classfile
Class ConstantPool

java.lang.Object
  extended by org.netbeans.modules.classfile.ConstantPool

public final class ConstantPool
extends Object

Class representing a Java class file constant pool.


Method Summary
 CPEntry get(int index)
          Get the CPEntry at a specific constant pool index.
 Set<ClassName> getAllClassNames()
           
<T extends CPEntry>
Collection<? extends T>
getAllConstants(Class<T> classType)
           
 CPClassInfo getClass(int index)
          Get the CPClassInfo at a specific index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public final CPEntry get(int index)
Get the CPEntry at a specific constant pool index.

Parameters:
index - the constant pool index for the entry

getClass

public final CPClassInfo getClass(int index)
Get the CPClassInfo at a specific index.

Parameters:
index - the constant pool index for the entry

getAllConstants

public final <T extends CPEntry> Collection<? extends T> getAllConstants(Class<T> classType)

getAllClassNames

public final Set<ClassName> getAllClassNames()

org.netbeans.modules.classfile/1 1.35

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.