public abstract class AnyMethodrefConstant extends RefConstant
Constant
represents a method reference constant in the constant pool.Modifier and Type | Field and Description |
---|---|
Method |
referencedMethod
An extra field optionally pointing to the referenced Method object.
|
referencedClass, u2classIndex, u2nameAndTypeIndex
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
processingFlags, processingInfo
Constructor and 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.
|
Modifier and Type | Method and 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.
|
equals, getClassIndex, getClassName, getName, getNameAndTypeIndex, getType, hashCode, referencedClassAccept, setNameAndTypeIndex, toString
accept, getTag, isCategory2
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
public Method referencedMethod
ClassReferenceInitializer
.public AnyMethodrefConstant()
public AnyMethodrefConstant(int u2classIndex, int u2nameAndTypeIndex, Clazz referencedClass, Method referencedMethod)
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.public void referencedMethodAccept(MemberVisitor memberVisitor)
public void referencedMemberAccept(MemberVisitor memberVisitor)
RefConstant
referencedMemberAccept
in class RefConstant