Class ConstantUtf8Info
java.lang.Object
org.fife.rsta.ac.java.classreader.constantpool.ConstantPoolInfo
org.fife.rsta.ac.java.classreader.constantpool.ConstantUtf8Info
- All Implemented Interfaces:
ConstantTypes
Class representing a
CONSTANT_Utf8_info structure.- Version:
- 1.0
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprivate StringcreateRepresentedString(byte[] bytes) getRepresentedString(boolean quoted) Returns the string represented by this info.toString()Returns a string representation of this object.Methods inherited from class org.fife.rsta.ac.java.classreader.constantpool.ConstantPoolInfo
getTag
-
Field Details
-
representedString
-
-
Constructor Details
-
ConstantUtf8Info
public ConstantUtf8Info(byte[] bytes) Constructor.- Parameters:
bytes- The bytes for this record.
-
-
Method Details
-
createRepresentedString
-
getRepresentedString
Returns the string represented by this info.- Parameters:
quoted- Whether to add enclosing quotation marks, and "escape" any quotation marks in the represented string.- Returns:
- The string represented.
-
toString
Returns a string representation of this object. Useful for debugging.
-