org.apache.bcel.generic
Class INVOKEINTERFACE
- Cloneable, ExceptionThrower, IndexedInstruction, LoadClass, Serializable, StackConsumer, StackProducer, TypedInstruction
public final class INVOKEINTERFACE
INVOKEINTERFACE - Invoke interface method
Stack: ..., objectref, [arg1, [arg2 ...]] -> ...
Version:
- M. Dahm
accept , consumeStack , copy , dump , equals , getComparator , getLength , getName , getOpcode , initFromFile , produceStack , readInstruction , setComparator , toString , toString , toString |
INVOKEINTERFACE
public INVOKEINTERFACE(int index,
int nargs)
accept
public void accept(Visitor v)
Call corresponding visitor method(s). The order is:
Call visitor methods of implemented interfaces first, then
call methods according to the class hierarchy in descending order,
i.e., the most specific visitXXX() call comes last.
- accept in interface Instruction
v
- Visitor object
consumeStack
public int consumeStack(ConstantPoolGen cpg)
Also works for instructions whose stack effect depends on the
constant pool entry they reference.
- consumeStack in interface StackConsumer
- consumeStack in interface InvokeInstruction
- Number of words consumed from stack by this instruction
dump
public void dump(DataOutputStream out)
throws IOException
Dump instruction as byte code to stream out.
- dump in interface CPInstruction
out
- Output stream
getCount
public int getCount()
The count argument according to the Java Language Specification,
Second Edition.
initFromFile
protected void initFromFile(ByteSequence bytes,
boolean wide)
throws IOException
Read needed data (i.e., index) from file.
- initFromFile in interface CPInstruction