Class ConstantPoolEntryString
- java.lang.Object
-
- org.benf.cfr.reader.entities.AbstractConstantPoolEntry
-
- org.benf.cfr.reader.entities.constantpool.ConstantPoolEntryString
-
- All Implemented Interfaces:
ConstantPoolEntry
,ConstantPoolEntryLiteral
public class ConstantPoolEntryString 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 private static long
OFFSET_OF_STRING_INDEX
private java.lang.String
string
private long
stringIndex
-
Constructor Summary
Constructors Constructor Description ConstantPoolEntryString(ConstantPool cp, ByteData data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dump(Dumper d)
long
getRawByteLength()
StackType
getStackType()
java.lang.String
getValue()
-
Methods inherited from class org.benf.cfr.reader.entities.AbstractConstantPoolEntry
getCp
-
-
-
-
Field Detail
-
OFFSET_OF_STRING_INDEX
private static final long OFFSET_OF_STRING_INDEX
- See Also:
- Constant Field Values
-
stringIndex
private final long stringIndex
-
string
private transient java.lang.String string
-
-
Constructor Detail
-
ConstantPoolEntryString
public ConstantPoolEntryString(ConstantPool cp, ByteData data)
-
-
Method Detail
-
getRawByteLength
public long getRawByteLength()
- Specified by:
getRawByteLength
in interfaceConstantPoolEntry
-
dump
public void dump(Dumper d)
- Specified by:
dump
in interfaceConstantPoolEntry
-
getValue
public java.lang.String getValue()
-
getStackType
public StackType getStackType()
- Specified by:
getStackType
in interfaceConstantPoolEntryLiteral
-
-