Module de.carne.mcd.jvmdecoder
Class MethodHandleConstant
- java.lang.Object
-
- de.carne.mcd.jvmdecoder.classfile.ClassInfoElement
-
- de.carne.mcd.jvmdecoder.classfile.constant.Constant
-
- de.carne.mcd.jvmdecoder.classfile.constant.MethodHandleConstant
-
-
Field Summary
Fields Modifier and Type Field Description static intTAGMethodHandle constant tag.-
Fields inherited from class de.carne.mcd.jvmdecoder.classfile.ClassInfoElement
classInfo
-
-
Constructor Summary
Constructors Constructor Description MethodHandleConstant(ClassInfo classInfo, ReferenceKind referenceKind, int referenceIndex)Constructs a new MethodHandleConstant instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprint(ClassPrinter out, ClassContext context)Prints this instance.java.lang.StringresolveSymbol()Resolves the symbol representing this Constant instance.java.lang.StringtoString()
-
-
-
Field Detail
-
TAG
public static final int TAG
MethodHandle constant tag.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MethodHandleConstant
public MethodHandleConstant(ClassInfo classInfo, ReferenceKind referenceKind, int referenceIndex)
Constructs a new MethodHandleConstant instance.- Parameters:
classInfo- the ClassInfo instance this constant is part of.referenceKind- the reference type.referenceIndex- the referenced MethodRefConstant index.
-
-
Method Detail
-
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.
-
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
-
-