类 RefConstant
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.classfile.constant.Constant
-
- proguard.classfile.constant.RefConstant
-
- 所有已实现的接口:
java.io.Serializable,Processable
- 直接已知子类:
AnyMethodrefConstant,FieldrefConstant
public abstract class RefConstant extends Constant
ThisConstantrepresents a ref constant in the constant pool.- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 ClazzreferencedClassAn extra field pointing to the referenced Clazz object.intu2classIndexintu2nameAndTypeIndex-
从类继承的字段 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
-
-
构造器概要
构造器 限定符 构造器 说明 protectedRefConstant()Creates an uninitialized RefConstant.
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 booleanequals(java.lang.Object object)intgetClassIndex()Returns the class index.java.lang.StringgetClassName(Clazz clazz)Returns the class name.java.lang.StringgetName(Clazz clazz)Returns the method/field name.intgetNameAndTypeIndex()Returns the name-and-type index.java.lang.StringgetType(Clazz clazz)Returns the type.inthashCode()voidreferencedClassAccept(ClassVisitor classVisitor)Lets the referenced class accept the given visitor.abstract voidreferencedMemberAccept(MemberVisitor memberVisitor)Lets the referenced class member accept the given visitor.voidsetNameAndTypeIndex(int index)Sets the name-and-type index.java.lang.StringtoString()-
从类继承的方法 proguard.classfile.constant.Constant
accept, getTag, isCategory2
-
从类继承的方法 proguard.util.SimpleProcessable
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
-
从接口继承的方法 proguard.util.Processable
accept
-
-
-
-
字段详细资料
-
u2classIndex
public int u2classIndex
-
u2nameAndTypeIndex
public int u2nameAndTypeIndex
-
referencedClass
public Clazz referencedClass
An extra field pointing to the referenced Clazz object. This field is typically filled out by the.ClassReferenceInitializer
-
-
方法详细资料
-
getClassIndex
public int getClassIndex()
Returns the class index.
-
getNameAndTypeIndex
public int getNameAndTypeIndex()
Returns the name-and-type index.
-
setNameAndTypeIndex
public void setNameAndTypeIndex(int index)
Sets the name-and-type 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.
-
referencedClassAccept
public void referencedClassAccept(ClassVisitor classVisitor)
Lets the referenced class accept the given visitor.
-
referencedMemberAccept
public abstract void referencedMemberAccept(MemberVisitor memberVisitor)
Lets the referenced class member accept 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
-
-