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, u2nameAndTypeIndexCLASS, DOUBLE, DYNAMIC, FIELDREF, FLOAT, INTEGER, INTERFACE_METHODREF, INVOKE_DYNAMIC, LONG, METHOD_HANDLE, METHOD_TYPE, METHODREF, MODULE, NAME_AND_TYPE, PACKAGE, PRIMITIVE_ARRAY, STRING, UTF8processingFlags, 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, toStringaccept, getTag, isCategory2getProcessingFlags, getProcessingInfo, setProcessingFlags, setProcessingInfopublic 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)
RefConstantreferencedMemberAccept in class RefConstant