Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.bcel.generic.Instruction
org.apache.bcel.generic.CPInstruction
org.apache.bcel.generic.FieldOrMethod
org.apache.bcel.generic.InvokeInstruction
org.apache.bcel.generic.INVOKEINTERFACE
public final class INVOKEINTERFACE
extends InvokeInstruction
Stack: ..., objectref, [arg1, [arg2 ...]] -> ...
Field Summary | |
private int |
Fields inherited from class org.apache.bcel.generic.CPInstruction | |
index |
Fields inherited from class org.apache.bcel.generic.Instruction | |
cmp , length , opcode |
Constructor Summary | |
| |
|
Method Summary | |
void | |
int |
|
void |
|
int |
|
Class[] | |
protected void |
|
String |
|
Methods inherited from class org.apache.bcel.generic.InvokeInstruction | |
consumeStack , getArgumentTypes , getMethodName , getReturnType , getType , produceStack , toString |
Methods inherited from class org.apache.bcel.generic.FieldOrMethod | |
getClassName , getClassType , getLoadClassType , getName , getReferenceType , getSignature |
Methods inherited from class org.apache.bcel.generic.CPInstruction | |
dump , getIndex , getType , initFromFile , setIndex , toString , toString |
Methods inherited from class org.apache.bcel.generic.Instruction | |
accept , className , consumeStack , copy , dispose , dump , equals , getComparator , getLength , getName , getOpcode , initFromFile , produceStack , readInstruction , setComparator , setOpcode , toString , toString , toString |
(package private) INVOKEINTERFACE()
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise.
public INVOKEINTERFACE(int index, int nargs)
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.
- Overrides:
- accept in interface Instruction
- Parameters:
v
- Visitor object
public int consumeStack(ConstantPoolGen cpg)
Also works for instructions whose stack effect depends on the constant pool entry they reference.
- Specified by:
- consumeStack in interface StackConsumer
- Overrides:
- consumeStack in interface InvokeInstruction
- Returns:
- Number of words consumed from stack by this instruction
public void dump(DataOutputStream out) throws IOException
Dump instruction as byte code to stream out.
- Overrides:
- dump in interface CPInstruction
- Parameters:
out
- Output stream
public int getCount()
The count argument according to the Java Language Specification, Second Edition.
protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException
Read needed data (i.e., index) from file.
- Overrides:
- initFromFile in interface CPInstruction
public String toString(ConstantPool cp)
- Overrides:
- toString in interface InvokeInstruction
- Returns:
- mnemonic for instruction with symbolic references resolved