APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.bcel.internal.generic

public final Class INVOKEINTERFACE

extends InvokeInstruction
Class Inheritance
Imports
java.io.DataOutputStream, .IOException, com.sun.org.apache.bcel.internal.Const, .ExceptionConst, com.sun.org.apache.bcel.internal.classfile.ConstantPool, com.sun.org.apache.bcel.internal.util.ByteSequence

INVOKEINTERFACE - Invoke interface method
Stack: ..., objectref, [arg1, [arg2 ...]] -> ...
See Also
The invokeinterface instruction in The Java Virtual Machine Specification

Field Summary

Modifier and TypeField and Description
private int

Constructor Summary

AccessConstructor and Description
pack-priv
INVOKEINTERFACE()

Empty constructor needed for Instruction.readInstruction.

public
INVOKEINTERFACE(final int index, final int nargs)

Method Summary

Modifier and TypeMethod and Description
public void
accept(final Visitor
Visitor object
v
)

Implements abstract com.sun.org.apache.bcel.internal.generic.Instruction.accept.

Call corresponding visitor method(s).

public int
consumeStack(final ConstantPoolGen cpg)

Overrides com.sun.org.apache.bcel.internal.generic.InvokeInstruction.consumeStack.

Implements com.sun.org.apache.bcel.internal.generic.StackConsumer.consumeStack.

Also works for instructions whose stack effect depends on the constant pool entry they reference.

public void
dump(final DataOutputStream
Output stream
out
)

Overrides com.sun.org.apache.bcel.internal.generic.CPInstruction.dump.

Dump instruction as byte code to stream out.

public int
getCount()

The count argument according to the Java Language Specification, Second Edition.

public Class<?>[]
protected void
initFromFile(final ByteSequence bytes, final boolean wide)

Overrides com.sun.org.apache.bcel.internal.generic.CPInstruction.initFromFile.

Read needed data (i.e., index) from file.

public String
toString(final ConstantPool cp)

Overrides com.sun.org.apache.bcel.internal.generic.InvokeInstruction.toString.

Returns: mnemonic for instruction with symbolic references resolved

Inherited from com.sun.org.apache.bcel.internal.generic.InvokeInstruction:
getArgumentTypesgetClassNamegetMethodNamegetReturnTypegetTypeproduceStack

Field Detail

nargsback to summary
private int nargs

Constructor Detail

INVOKEINTERFACEback to summary
pack-priv INVOKEINTERFACE()

Empty constructor needed for Instruction.readInstruction. Not to be used otherwise.

INVOKEINTERFACEback to summary
public INVOKEINTERFACE(final int index, final int nargs)

Method Detail

acceptback to summary
public void accept(final Visitor v)

Implements abstract com.sun.org.apache.bcel.internal.generic.Instruction.accept.

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

Visitor object

Annotations
@Override
consumeStackback to summary
public int consumeStack(final ConstantPoolGen cpg)

Overrides com.sun.org.apache.bcel.internal.generic.InvokeInstruction.consumeStack.

Implements com.sun.org.apache.bcel.internal.generic.StackConsumer.consumeStack.

Doc from com.sun.org.apache.bcel.internal.generic.InvokeInstruction.consumeStack.

Also works for instructions whose stack effect depends on the constant pool entry they reference.

Annotations
@Override
dumpback to summary
public void dump(final DataOutputStream out) throws IOException

Overrides com.sun.org.apache.bcel.internal.generic.CPInstruction.dump.

Dump instruction as byte code to stream out.

Parameters
out:DataOutputStream

Output stream

Annotations
@Override
Exceptions
IOException:

Doc from com.sun.org.apache.bcel.internal.generic.Instruction.dump.

Thrown when an I/O exception of some sort has occurred.

getCountback to summary
public int getCount()

The count argument according to the Java Language Specification, Second Edition.

getExceptionsback to summary
public Class<?>[] getExceptions()

Implements com.sun.org.apache.bcel.internal.generic.ExceptionThrower.getExceptions.

Annotations
@Override
initFromFileback to summary
protected void initFromFile(final ByteSequence bytes, final boolean wide) throws IOException

Overrides com.sun.org.apache.bcel.internal.generic.CPInstruction.initFromFile.

Read needed data (i.e., index) from file.

Annotations
@Override
Exceptions
IOException:

Doc from com.sun.org.apache.bcel.internal.generic.Instruction.initFromFile.

may be thrown if the implementation needs to read data from the file

toStringback to summary
public String toString(final ConstantPool cp)

Overrides com.sun.org.apache.bcel.internal.generic.InvokeInstruction.toString.

Returns:String

mnemonic for instruction with symbolic references resolved

Annotations
@Override