Module de.carne.mcd.jvmdecoder
Class Utf8Constant
- java.lang.Object
-
- de.carne.mcd.jvmdecoder.classfile.ClassInfoElement
-
- de.carne.mcd.jvmdecoder.classfile.constant.Constant
-
- de.carne.mcd.jvmdecoder.classfile.constant.Utf8Constant
-
-
Field Summary
Fields Modifier and Type Field Description static byteTAGUtf8 constant tag.-
Fields inherited from class de.carne.mcd.jvmdecoder.classfile.ClassInfoElement
classInfo
-
-
Constructor Summary
Constructors Constructor Description Utf8Constant(ClassInfo classInfo, java.lang.String value)Constructs a new Utf8Constant instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetValue()Gets this constant's value.voidprint(ClassPrinter out, ClassContext context)Prints this instance.java.lang.StringtoString()-
Methods inherited from class de.carne.mcd.jvmdecoder.classfile.constant.Constant
resolveSymbol
-
-
-
-
Field Detail
-
TAG
public static final byte TAG
Utf8 constant tag.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Utf8Constant
public Utf8Constant(ClassInfo classInfo, java.lang.String value)
Constructs a new Utf8Constant instance.- Parameters:
classInfo- the ClassInfo instance this constant is part of.value- the constant value.
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Gets this constant's value.- Returns:
- this constant's value.
-
print
public void print(ClassPrinter out, ClassContext context) throws java.io.IOException
Description copied from interface:PrintablePrints this instance.- Parameters:
out- the ClassPrinter instance to print to.context- the context of this print invocation.- Throws:
java.io.IOException- if an I/O error occurs.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-