|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.IR.Bytecode.Operand
harpoon.IR.Bytecode.OpMethod
public final class OpMethod
OpMethod
represents a method reference operand of a
java bytecode instruction. It is generated from a
CONSTANT_Methodref
or
CONSTANT_InterfaceMethodref
constant pool entry.
ConstantMethodref
,
ConstantInterfaceMethodref
Field Summary |
---|
Fields inherited from class harpoon.IR.Bytecode.Operand |
---|
arrayFactory |
Constructor Summary | |
---|---|
OpMethod(Code parent,
int constant_pool_index)
Create an OpMethod from the CONSTANT_Methodref
or CONSTANT_InterfaceMethodref at the given index in
the constant pool. |
Method Summary | |
---|---|
boolean |
isInterface()
Indicates whether this operand references an interface method. |
String |
toString()
Return the canonical name of the method referenced. |
HMethod |
value()
Return the method referenced by this operand. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OpMethod(Code parent, int constant_pool_index)
OpMethod
from the CONSTANT_Methodref
or CONSTANT_InterfaceMethodref
at the given index in
the constant pool.
Method Detail |
---|
public HMethod value()
public boolean isInterface()
public String toString()
toString
in class Operand
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |