org.apache.bcel.generic
public final class INVOKEINTERFACE extends InvokeInstruction
Stack: ..., objectref, [arg1, [arg2 ...]] -> ...
Modifier and Type | Field and Description |
---|---|
private int |
nargs |
index
length, opcode
Constructor and Description |
---|
INVOKEINTERFACE()
Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction().
|
INVOKEINTERFACE(int index,
int nargs) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Call corresponding visitor method(s).
|
int |
consumeStack(ConstantPoolGen cpg)
Also works for instructions whose stack effect depends on the
constant pool entry they reference.
|
void |
dump(java.io.DataOutputStream out)
Dump instruction as byte code to stream out.
|
int |
getCount()
The count argument according to the Java Language Specification,
Second Edition.
|
java.lang.Class[] |
getExceptions() |
protected void |
initFromFile(ByteSequence bytes,
boolean wide)
Read needed data (i.e., index) from file.
|
java.lang.String |
toString(ConstantPool cp) |
getArgumentTypes, getMethodName, getReturnType, getType, produceStack
getClassName, getClassType, getLoadClassType, getName, getReferenceType, getSignature
getIndex, setIndex, toString
copy, dispose, equals, getComparator, getLength, getName, getOpcode, readInstruction, setComparator, toString
INVOKEINTERFACE()
public INVOKEINTERFACE(int index, int nargs)
public void dump(java.io.DataOutputStream out) throws java.io.IOException
dump
in class CPInstruction
out
- Output streamjava.io.IOException
public int getCount()
protected void initFromFile(ByteSequence bytes, boolean wide) throws java.io.IOException
initFromFile
in class CPInstruction
bytes
- input streamwide
- wide prefix?java.io.IOException
public java.lang.String toString(ConstantPool cp)
toString
in class InvokeInstruction
public int consumeStack(ConstantPoolGen cpg)
InvokeInstruction
consumeStack
in interface StackConsumer
consumeStack
in class InvokeInstruction
public java.lang.Class[] getExceptions()
public void accept(Visitor v)
accept
in class Instruction
v
- Visitor object