public class MethodHandleConstant extends Constant
| Modifier and Type | Field and Description |
|---|---|
Clazz |
javaLangInvokeMethodHandleClass
An extra field pointing to the java.lang.invoke.MethodHandle Clazz object.
|
int |
u1referenceKind |
int |
u2referenceIndex |
visitorInfo| Constructor and Description |
|---|
MethodHandleConstant()
Creates an uninitialized MethodHandleConstant.
|
MethodHandleConstant(int u1referenceKind,
int u2referenceIndex)
Creates a new MethodHandleConstant with the given type and method ref
index.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Clazz clazz,
ConstantVisitor constantVisitor)
Accepts the given visitor.
|
String |
getClassName(Clazz clazz)
Returns the class name.
|
String |
getName(Clazz clazz)
Returns the method/field name.
|
int |
getReferenceIndex()
Returns the field ref, interface method ref, or method ref index.
|
int |
getReferenceKind()
Returns the kind of reference to which this constant is pointing.
|
int |
getTag()
Returns the constant pool info tag that specifies the entry type.
|
String |
getType(Clazz clazz)
Returns the type.
|
getVisitorInfo, setVisitorInfopublic int u1referenceKind
public int u2referenceIndex
public Clazz javaLangInvokeMethodHandleClass
ClassReferenceInitializer.public MethodHandleConstant()
public MethodHandleConstant(int u1referenceKind,
int u2referenceIndex)
u1referenceKind - the reference kind.u2referenceIndex - the index of the field ref constant, interface
method ref constant, or method ref constant in
the constant pool.public int getReferenceKind()
ClassConstants.REF_getField,
ClassConstants.REF_getStatic,
ClassConstants.REF_putField,
ClassConstants.REF_putStatic,
ClassConstants.REF_invokeVirtual,
ClassConstants.REF_invokeStatic,
ClassConstants.REF_invokeSpecial,
ClassConstants.REF_newInvokeSpecial, or
ClassConstants.REF_invokeInterface.public int getReferenceIndex()
public int getTag()
Constantpublic void accept(Clazz clazz, ConstantVisitor constantVisitor)
ConstantCopyright © 2015. All Rights Reserved.