|
||||||||||
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.InvokeinterfaceInstruction
public class InvokeinterfaceInstruction
Some instructions are perniticky enough that its simpler to write them separately instead of smushing them with all the rest. the invokeinterface instruction is one of them.
Field Summary |
---|
Constructor Summary | |
---|---|
InvokeinterfaceInstruction(InterfaceConstant method,
int nargs)
Constructs a new invokeinterface instruction from a class file |
|
InvokeinterfaceInstruction(String name,
String type,
int nargs)
Constructs a new invokeinterface instruction |
|
InvokeinterfaceInstruction(String owner,
String name,
String type,
int nargs)
Constructs a new invokeinterface instruction |
Method Summary | |
---|---|
boolean |
canComplete()
Returns true iff control flow can reach the next instruction in textual order. |
InterfaceConstant |
getInterfaceConstant()
Returns the interface constant value |
int |
getNbArgs()
Returns the number of arguments |
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 InvokeinterfaceInstruction(String name, String type, int nargs)
name
- the qualified name of the methodtype
- the method signaturenargs
- number of argumentspublic InvokeinterfaceInstruction(String owner, String name, String type, int nargs)
name
- the qualified name of the methodtype
- the method signaturenargs
- number of argumentspublic InvokeinterfaceInstruction(InterfaceConstant method, int nargs)
method
- the method reference (as pooled constant)nargs
- number of argumentsMethod Detail |
---|
public boolean canComplete()
canComplete
in class Instruction
public InterfaceConstant getInterfaceConstant()
public int getNbArgs()
public byte getReturnType()
getReturnType
in class Instruction
public int getPushedOnStack()
getPushedOnStack
in class Instruction
public int getStack()
getStack
in class Instruction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |