public class InterfaceMethodrefConstant extends AnyMethodrefConstant
Constant
represents a interface method reference constant in the constant pool.referencedMethod
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 |
---|
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, referencedMethodAccept
equals, getClassIndex, getClassName, getName, getNameAndTypeIndex, getType, hashCode, referencedClassAccept, setNameAndTypeIndex
addProcessingFlags, getProcessingFlags, getProcessingInfo, hasProcessingFlags, removeProcessingFlags, setProcessingFlags, setProcessingInfo
public 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()
Constant
public boolean isCategory2()
Constant
isCategory2
in class Constant
public void accept(Clazz clazz, ConstantVisitor constantVisitor)
Constant
public java.lang.String toString()
toString
in class RefConstant