Class ConstantStringInfo
- java.lang.Object
-
- org.fife.rsta.ac.java.classreader.constantpool.ConstantPoolInfo
-
- org.fife.rsta.ac.java.classreader.constantpool.ConstantStringInfo
-
- All Implemented Interfaces:
ConstantTypes
public class ConstantStringInfo extends ConstantPoolInfo
Class corresponding to theCONSTANT_String_infostructure.- Version:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description private ClassFilecfprivate intstringIndex-
Fields inherited from interface org.fife.rsta.ac.java.classreader.constantpool.ConstantTypes
CONSTANT_Class, CONSTANT_Double, CONSTANT_Fieldref, CONSTANT_Float, CONSTANT_Integer, CONSTANT_InterfaceMethodref, CONSTANT_InvokeDynamic, CONSTANT_Long, CONSTANT_MethodHandle, CONSTANT_Methodref, CONSTANT_MethodType, CONSTANT_NameAndType, CONSTANT_String, CONSTANT_Utf8
-
-
Constructor Summary
Constructors Constructor Description ConstantStringInfo(ClassFile cf, int stringIndex)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetStringIndex()java.lang.StringgetStringValue()Returns the string represented by this constant.java.lang.StringtoString()Returns a string representation of this object.-
Methods inherited from class org.fife.rsta.ac.java.classreader.constantpool.ConstantPoolInfo
getTag
-
-
-
-
Field Detail
-
cf
private ClassFile cf
-
stringIndex
private int stringIndex
-
-
Constructor Detail
-
ConstantStringInfo
public ConstantStringInfo(ClassFile cf, int stringIndex)
Constructor.- Parameters:
cf- The class file being parsed.stringIndex- The string index.
-
-
Method Detail
-
getStringIndex
public int getStringIndex()
-
getStringValue
public java.lang.String getStringValue()
Returns the string represented by this constant.- Returns:
- The string value represented.
-
toString
public java.lang.String toString()
Returns a string representation of this object. Useful for debugging.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of this object.
-
-