Top Description Constructors Methods
com.sun.org.apache.bcel.internal.generic

public Class INVOKEVIRTUAL

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

INVOKEVIRTUAL - Invoke instance method; dispatch based on class
Stack: ..., objectref, [arg1, [arg2 ...]] -> ...
See Also
The invokevirtual instruction in The Java Virtual Machine Specification

Constructor Summary

AccessConstructor and Description
pack-priv
INVOKEVIRTUAL()

Empty constructor needed for Instruction.readInstruction.

public
INVOKEVIRTUAL(final int index)

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 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 Class<?>[]
Inherited from com.sun.org.apache.bcel.internal.generic.InvokeInstruction:
consumeStackgetArgumentTypesgetClassNamegetMethodNamegetReturnTypegetTypeproduceStacktoString

Constructor Detail

INVOKEVIRTUALback to summary
pack-priv INVOKEVIRTUAL()

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

INVOKEVIRTUALback to summary
public INVOKEVIRTUAL(final int index)

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
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.

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

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

Annotations
@Override