Package proguard.classfile.constant
Class RefConstant
java.lang.Object
proguard.util.SimpleProcessable
proguard.classfile.constant.Constant
proguard.classfile.constant.RefConstant
- All Implemented Interfaces:
Serializable,Processable
- Direct Known Subclasses:
AnyMethodrefConstant,FieldrefConstant
This
Constant represents a ref constant in the constant pool.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionAn extra field pointing to the referenced Clazz object.intintFields inherited from class 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, UTF8Fields inherited from class proguard.util.SimpleProcessable
processingFlags, processingInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns the class index.getClassName(Clazz clazz) Returns the class name.Returns the method/field name.intReturns the name-and-type index.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.toString()Methods inherited from class proguard.classfile.constant.Constant
accept, getTag, isCategory2Methods inherited from class proguard.util.SimpleProcessable
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfoMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface proguard.util.Processable
accept
-
Field Details
-
u2classIndex
public int u2classIndex -
u2nameAndTypeIndex
public int u2nameAndTypeIndex -
referencedClass
An extra field pointing to the referenced Clazz object. This field is typically filled out by the.ClassReferenceInitializer
-
-
Constructor Details
-
RefConstant
protected RefConstant()Creates an uninitialized RefConstant.
-
-
Method Details
-
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
Returns the class name. -
getName
Returns the method/field name. -
getType
Returns the type. -
referencedClassAccept
Lets the referenced class accept the given visitor. -
referencedMemberAccept
Lets the referenced class member accept the given visitor. -
equals
-
hashCode
public int hashCode() -
toString
-