public final class ConstantPool extends Object
Modifier and Type | Method and Description |
---|---|
CPEntry |
get(int index)
Get the CPEntry at a specific constant pool index.
|
Set<ClassName> |
getAllClassNames() |
<T extends CPEntry> |
getAllConstants(Class<T> classType) |
CPClassInfo |
getClass(int index)
Get the CPClassInfo at a specific index.
|
public final CPEntry get(int index)
index
- the constant pool index for the entrypublic final CPClassInfo getClass(int index)
index
- the constant pool index for the entrypublic final <T extends CPEntry> Collection<? extends T> getAllConstants(Class<T> classType)