|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.dms.classfile.AbstractInstructionAccessor
at.dms.classfile.Instruction
at.dms.classfile.MethodRefInstruction
public class MethodRefInstruction
Instruction that references method opc_invokevirtual,_invokespecial, opc_invokestatic
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
MethodRefInstruction(int opcode,
MethodRefConstant method)
Constructs a new method reference instruction from a class file |
|
MethodRefInstruction(int opcode,
String name,
String type)
Constructs a new method reference instruction |
|
MethodRefInstruction(int opcode,
String owner,
String name,
String type)
Constructs a new method reference instruction |
|
| Method Summary | |
|---|---|
boolean |
canComplete()
Returns true iff control flow can reach the next instruction in textual order. |
MethodRefConstant |
getMethodRefConstant()
Returns the method reference constant used by this instruction |
int |
getPushedOnStack()
Returns the size of data pushed on the stack by this instruction |
byte |
getReturnType()
Returns the type pushed on the stack |
int |
getStack()
Return the amount of stack (positive or negative) used by this instruction |
| Methods inherited from class at.dms.classfile.Instruction |
|---|
dump, getOpcode, getPoppedFromStack, isLiteral |
| Methods inherited from class at.dms.classfile.AbstractInstructionAccessor |
|---|
deepClone, deepCloneInto, transform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodRefInstruction(int opcode,
String name,
String type)
opcode - the opcode of the instructionname - the qualified name of the referenced objecttype - the signature of the referenced object
public MethodRefInstruction(int opcode,
String owner,
String name,
String type)
opcode - the opcode of the instructionname - the qualified name of the referenced objecttype - the signature of the referenced object
public MethodRefInstruction(int opcode,
MethodRefConstant method)
opcode - the opcode of the instructionmethod - the method reference (as pooled constant)| Method Detail |
|---|
public boolean canComplete()
canComplete in class Instructionpublic MethodRefConstant getMethodRefConstant()
public byte getReturnType()
getReturnType in class Instructionpublic int getPushedOnStack()
getPushedOnStack in class Instructionpublic int getStack()
getStack in class Instruction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||