public class InterfaceMethodrefConstant extends AnyMethodrefConstant
Constant represents a interface method reference constant in the constant pool.referencedMethodreferencedClass, 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 |
|---|
InterfaceMethodrefConstant()
Creates an uninitialized InterfaceMethodrefConstant.
|
InterfaceMethodrefConstant(int u2classIndex,
int u2nameAndTypeIndex,
Clazz referencedClass,
Method referencedMethod)
Creates a new InterfaceMethodrefConstant with the given name and type indices.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Clazz clazz,
ConstantVisitor constantVisitor)
Accepts the given visitor.
|
int |
getTag()
Returns the constant pool info tag that specifies the entry type.
|
boolean |
isCategory2()
Returns whether the constant is of category 2.
|
java.lang.String |
toString() |
referencedMemberAccept, referencedMethodAcceptequals, getClassIndex, getClassName, getName, getNameAndTypeIndex, getType, hashCode, referencedClassAccept, setNameAndTypeIndexgetProcessingFlags, getProcessingInfo, setProcessingFlags, setProcessingInfopublic InterfaceMethodrefConstant()
public InterfaceMethodrefConstant(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 int getTag()
Constantpublic boolean isCategory2()
ConstantisCategory2 in class Constantpublic void accept(Clazz clazz, ConstantVisitor constantVisitor)
Constantpublic java.lang.String toString()
toString in class RefConstant