类 MethodHandleConstant
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.classfile.constant.Constant
-
- proguard.classfile.constant.MethodHandleConstant
-
- 所有已实现的接口:
java.io.Serializable,Processable
public class MethodHandleConstant extends Constant
ThisConstantrepresents a method handle constant in the constant pool.- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 ClazzjavaLangInvokeMethodHandleClassAn extra field pointing to the java.lang.invoke.MethodHandle Clazz object.static intREF_GET_FIELDstatic intREF_GET_STATICstatic intREF_INVOKE_INTERFACEstatic intREF_INVOKE_SPECIALstatic intREF_INVOKE_STATICstatic intREF_INVOKE_VIRTUALstatic intREF_NEW_INVOKE_SPECIALstatic intREF_PUT_FIELDstatic intREF_PUT_STATICintu1referenceKindintu2referenceIndex-
从类继承的字段 proguard.classfile.constant.Constant
CLASS, DOUBLE, DYNAMIC, FIELDREF, FLOAT, INTEGER, INTERFACE_METHODREF, INVOKE_DYNAMIC, LONG, METHOD_HANDLE, METHOD_TYPE, METHODREF, MODULE, NAME_AND_TYPE, PACKAGE, PRIMITIVE_ARRAY, STRING, UTF8
-
从类继承的字段 proguard.util.SimpleProcessable
processingFlags, processingInfo
-
-
构造器概要
构造器 构造器 说明 MethodHandleConstant()Creates an uninitialized MethodHandleConstant.MethodHandleConstant(int u1referenceKind, int u2referenceIndex)Creates a new MethodHandleConstant with the given type and method ref index.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaccept(Clazz clazz, ConstantVisitor constantVisitor)Accepts the given visitor.booleanequals(java.lang.Object object)java.lang.StringgetClassName(Clazz clazz)Returns the class name.java.lang.StringgetName(Clazz clazz)Returns the method/field name.intgetReferenceIndex()Returns the field ref, interface method ref, or method ref index.intgetReferenceKind()Returns the kind of reference to which this constant is pointing.intgetTag()Returns the constant pool info tag that specifies the entry type.java.lang.StringgetType(Clazz clazz)Returns the type.inthashCode()booleanisCategory2()Returns whether the constant is of category 2.voidreferenceAccept(Clazz clazz, ConstantVisitor constantVisitor)Applies the given constant pool visitor to the reference.java.lang.StringtoString()-
从类继承的方法 proguard.util.SimpleProcessable
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
-
从接口继承的方法 proguard.util.Processable
accept
-
-
-
-
字段详细资料
-
REF_GET_FIELD
public static final int REF_GET_FIELD
- 另请参阅:
- 常量字段值
-
REF_GET_STATIC
public static final int REF_GET_STATIC
- 另请参阅:
- 常量字段值
-
REF_PUT_FIELD
public static final int REF_PUT_FIELD
- 另请参阅:
- 常量字段值
-
REF_PUT_STATIC
public static final int REF_PUT_STATIC
- 另请参阅:
- 常量字段值
-
REF_INVOKE_VIRTUAL
public static final int REF_INVOKE_VIRTUAL
- 另请参阅:
- 常量字段值
-
REF_INVOKE_STATIC
public static final int REF_INVOKE_STATIC
- 另请参阅:
- 常量字段值
-
REF_INVOKE_SPECIAL
public static final int REF_INVOKE_SPECIAL
- 另请参阅:
- 常量字段值
-
REF_NEW_INVOKE_SPECIAL
public static final int REF_NEW_INVOKE_SPECIAL
- 另请参阅:
- 常量字段值
-
REF_INVOKE_INTERFACE
public static final int REF_INVOKE_INTERFACE
- 另请参阅:
- 常量字段值
-
u1referenceKind
public int u1referenceKind
-
u2referenceIndex
public int u2referenceIndex
-
javaLangInvokeMethodHandleClass
public Clazz javaLangInvokeMethodHandleClass
An extra field pointing to the java.lang.invoke.MethodHandle Clazz object. This field is typically filled out by the.ClassReferenceInitializer
-
-
构造器详细资料
-
MethodHandleConstant
public MethodHandleConstant()
Creates an uninitialized MethodHandleConstant.
-
MethodHandleConstant
public MethodHandleConstant(int u1referenceKind, int u2referenceIndex)Creates a new MethodHandleConstant with the given type and method ref index.- 参数:
u1referenceKind- the reference kind.u2referenceIndex- the index of the field ref constant, interface method ref constant, or method ref constant in the constant pool.
-
-
方法详细资料
-
getReferenceKind
public int getReferenceKind()
Returns the kind of reference to which this constant is pointing.
-
getReferenceIndex
public int getReferenceIndex()
Returns the field ref, interface method ref, or method ref index.
-
getClassName
public java.lang.String getClassName(Clazz clazz)
Returns the class name.
-
getName
public java.lang.String getName(Clazz clazz)
Returns the method/field name.
-
getType
public java.lang.String getType(Clazz clazz)
Returns the type.
-
referenceAccept
public void referenceAccept(Clazz clazz, ConstantVisitor constantVisitor)
Applies the given constant pool visitor to the reference.
-
getTag
public int getTag()
从类复制的说明:ConstantReturns the constant pool info tag that specifies the entry type.
-
isCategory2
public boolean isCategory2()
从类复制的说明:ConstantReturns whether the constant is of category 2. This means that it takes up the space of two category 1 types in the constant pool or on the stack, for instance.- 指定者:
isCategory2在类中Constant
-
accept
public void accept(Clazz clazz, ConstantVisitor constantVisitor)
从类复制的说明:ConstantAccepts the given visitor.
-
equals
public boolean equals(java.lang.Object object)
- 覆盖:
equals在类中java.lang.Object
-
hashCode
public int hashCode()
- 覆盖:
hashCode在类中java.lang.Object
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
-