Package proguard.classfile.constant
Class AnyMethodrefConstant
- java.lang.Object
-
- proguard.util.SimpleProcessable
-
- proguard.classfile.constant.Constant
-
- proguard.classfile.constant.RefConstant
-
- proguard.classfile.constant.AnyMethodrefConstant
-
- All Implemented Interfaces:
java.io.Serializable
,Processable
- Direct Known Subclasses:
InterfaceMethodrefConstant
,MethodrefConstant
public abstract class AnyMethodrefConstant extends RefConstant
ThisConstant
represents a method reference constant in the constant pool.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Method
referencedMethod
An extra field optionally pointing to the referenced Method object.-
Fields inherited from class proguard.classfile.constant.RefConstant
referencedClass, u2classIndex, u2nameAndTypeIndex
-
Fields 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, UTF8
-
Fields inherited from class proguard.util.SimpleProcessable
processingFlags, processingInfo
-
-
Constructor Summary
Constructors Constructor Description AnyMethodrefConstant()
Creates an uninitialized AnyMethodrefConstant.AnyMethodrefConstant(int u2classIndex, int u2nameAndTypeIndex, Clazz referencedClass, Method referencedMethod)
Creates a new AnyMethodrefConstant with the given name and type indices.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
referencedMemberAccept(MemberVisitor memberVisitor)
Lets the referenced class member accept the given visitor.void
referencedMethodAccept(MemberVisitor memberVisitor)
Lets the referenced class method accept the given visitor.-
Methods inherited from class proguard.classfile.constant.RefConstant
equals, getClassIndex, getClassName, getName, getNameAndTypeIndex, getType, hashCode, referencedClassAccept, setNameAndTypeIndex, toString
-
Methods inherited from class proguard.classfile.constant.Constant
accept, getTag, isCategory2
-
Methods inherited from class proguard.util.SimpleProcessable
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
-
-
-
-
Field Detail
-
referencedMethod
public Method referencedMethod
An extra field optionally pointing to the referenced Method object. This field is typically filled out by the
.ClassReferenceInitializer
-
-
Constructor Detail
-
AnyMethodrefConstant
public AnyMethodrefConstant()
Creates an uninitialized AnyMethodrefConstant.
-
AnyMethodrefConstant
public AnyMethodrefConstant(int u2classIndex, int u2nameAndTypeIndex, Clazz referencedClass, Method referencedMethod)
Creates a new AnyMethodrefConstant with the given name and type indices.- Parameters:
u2classIndex
- the index of the class in the constant pool.u2nameAndTypeIndex
- the index of the name and type entry in the constant pool.referencedClass
- the referenced class.referencedMethod
- the referenced method.
-
-
Method Detail
-
referencedMethodAccept
public void referencedMethodAccept(MemberVisitor memberVisitor)
Lets the referenced class method accept the given visitor.
-
referencedMemberAccept
public void referencedMemberAccept(MemberVisitor memberVisitor)
Description copied from class:RefConstant
Lets the referenced class member accept the given visitor.- Specified by:
referencedMemberAccept
in classRefConstant
-
-