private abstract static class ClassDump.CpInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ClassDump.ClassContext |
classContext
The context to use to get the referenced constant pool items.
|
private java.lang.String |
dump
The dump of this item.
|
Constructor and Description |
---|
CpInfo(ClassDump.ClassContext classContext)
Constructs a CpInfo for an item with references to other items.
|
CpInfo(java.lang.String dump)
Constructs a CpInfo for an item without references to other items.
|
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
dump()
Returns the dump of this item.
|
(package private) <C extends ClassDump.CpInfo> |
getCpInfo(int cpIndex,
java.lang.Class<C> cpInfoType) |
(package private) int |
size()
Returns the number of entries used by this item in constant_pool.
|
java.lang.String |
toString() |
private java.lang.String dump
private final ClassDump.ClassContext classContext
CpInfo(java.lang.String dump)
dump
- the dump of this item.CpInfo(ClassDump.ClassContext classContext)
classContext
- a context to lookup constant pool items from their index.int size()
<C extends ClassDump.CpInfo> C getCpInfo(int cpIndex, java.lang.Class<C> cpInfoType)
C
- a CpInfo subclass.cpIndex
- a constant pool entry index.cpInfoType
- the expected type of the constant pool entry.java.lang.String dump()
public java.lang.String toString()
toString
in class java.lang.Object