Module de.carne.mcd.jvmdecoder
Class NameConstant
- java.lang.Object
-
- de.carne.mcd.jvmdecoder.classfile.ClassInfoElement
-
- de.carne.mcd.jvmdecoder.classfile.constant.Constant
-
- de.carne.mcd.jvmdecoder.classfile.constant.NameConstant
-
- All Implemented Interfaces:
Printable
- Direct Known Subclasses:
ClassConstant,ModuleConstant,PackageConstant
public abstract class NameConstant extends Constant
Base class for all kinds of name constants.
-
-
Field Summary
-
Fields inherited from class de.carne.mcd.jvmdecoder.classfile.ClassInfoElement
classInfo
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Utf8ConstantgetName()Resolves this name constant.java.lang.StringgetNameValue()Resolves this name constant's value.java.lang.StringresolveSymbol()Resolves the symbol representing this Constant instance.java.lang.StringtoString()
-
-
-
Method Detail
-
getNameValue
public java.lang.String getNameValue() throws java.io.IOExceptionResolves this name constant's value.- Returns:
- this name constant's value.
- Throws:
java.io.IOException- if the constant cannot be resolved.
-
getName
public Utf8Constant getName() throws java.io.IOException
Resolves this name constant.- Returns:
- this name constant.
- Throws:
java.io.IOException- if the constant cannot be resolved.
-
resolveSymbol
public java.lang.String resolveSymbol() throws java.io.IOExceptionDescription copied from class:ConstantResolves the symbol representing this Constant instance.- Overrides:
resolveSymbolin classConstant- Returns:
- the symbol representing this Constant instance.
- Throws:
java.io.IOException- if the constant cannot be resolved.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-