Class ConstantPoolEntryClass
- java.lang.Object
-
- org.benf.cfr.reader.entities.AbstractConstantPoolEntry
-
- org.benf.cfr.reader.entities.constantpool.ConstantPoolEntryClass
-
- All Implemented Interfaces:
ConstantPoolEntry,ConstantPoolEntryLiteral
public class ConstantPoolEntryClass extends AbstractConstantPoolEntry implements ConstantPoolEntryLiteral
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.benf.cfr.reader.entities.constantpool.ConstantPoolEntry
ConstantPoolEntry.Type
-
-
Field Summary
Fields Modifier and Type Field Description (package private) JavaTypeInstancejavaTypeInstance(package private) intnameIndexprivate static longOFFSET_OF_NAME_INDEX
-
Constructor Summary
Constructors Constructor Description ConstantPoolEntryClass(ConstantPool cp, ByteData data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private JavaTypeInstanceconvertFromString(java.lang.String rawType)voiddump(Dumper d)private java.lang.StringgetClassNameString(int index)java.lang.StringgetFilePath()longgetRawByteLength()StackTypegetStackType()java.lang.StringgetTextPath()JavaTypeInstancegetTypeInstance()JavaTypeInstancegetTypeInstanceKnownInner(ConstantPoolEntryClass inner)JavaTypeInstancegetTypeInstanceKnownOuter(ConstantPoolEntryClass outer)java.lang.StringtoString()-
Methods inherited from class org.benf.cfr.reader.entities.AbstractConstantPoolEntry
getCp
-
-
-
-
Field Detail
-
OFFSET_OF_NAME_INDEX
private static final long OFFSET_OF_NAME_INDEX
- See Also:
- Constant Field Values
-
nameIndex
final int nameIndex
-
javaTypeInstance
transient JavaTypeInstance javaTypeInstance
-
-
Constructor Detail
-
ConstantPoolEntryClass
public ConstantPoolEntryClass(ConstantPool cp, ByteData data)
-
-
Method Detail
-
getRawByteLength
public long getRawByteLength()
- Specified by:
getRawByteLengthin interfaceConstantPoolEntry
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getTextPath
public java.lang.String getTextPath()
-
getFilePath
public java.lang.String getFilePath()
-
getClassNameString
private java.lang.String getClassNameString(int index)
-
dump
public void dump(Dumper d)
- Specified by:
dumpin interfaceConstantPoolEntry
-
convertFromString
private JavaTypeInstance convertFromString(java.lang.String rawType)
-
getTypeInstance
public JavaTypeInstance getTypeInstance()
-
getTypeInstanceKnownOuter
public JavaTypeInstance getTypeInstanceKnownOuter(ConstantPoolEntryClass outer)
-
getTypeInstanceKnownInner
public JavaTypeInstance getTypeInstanceKnownInner(ConstantPoolEntryClass inner)
-
getStackType
public StackType getStackType()
- Specified by:
getStackTypein interfaceConstantPoolEntryLiteral
-
-