org.apache.bcel.generic

Class INVOKEINTERFACE

public final class INVOKEINTERFACE extends InvokeInstruction

INVOKEINTERFACE - Invoke interface method
Stack: ..., objectref, [arg1, [arg2 ...]] -> ...
Constructor Summary
INVOKEINTERFACE(int index, int nargs)
Method Summary
voidaccept(Visitor v)
Call corresponding visitor method(s).
intconsumeStack(ConstantPoolGen cpg)
voiddump(DataOutputStream out)
Dump instruction as byte code to stream out.
intgetCount()
The count argument according to the Java Language Specification, Second Edition.
Class[]getExceptions()
protected voidinitFromFile(ByteSequence bytes, boolean wide)
Read needed data (i.e., index) from file.
StringtoString(ConstantPool cp)

Constructor Detail

INVOKEINTERFACE

public INVOKEINTERFACE(int index, int nargs)

Method Detail

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.

Parameters: v Visitor object

consumeStack

public int consumeStack(ConstantPoolGen cpg)

dump

public void dump(DataOutputStream out)
Dump instruction as byte code to stream out.

Parameters: out Output stream

getCount

public int getCount()
The count argument according to the Java Language Specification, Second Edition.

getExceptions

public Class[] getExceptions()

initFromFile

protected void initFromFile(ByteSequence bytes, boolean wide)
Read needed data (i.e., index) from file.

toString

public String toString(ConstantPool cp)

Returns: mnemonic for instruction with symbolic references resolved