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

public Class MULTIANEWARRAY

extends CPInstruction
implements LoadClass, AllocationInstruction, ExceptionThrower
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.bcel.internal.generic.ExceptionThrower, com.sun.org.apache.bcel.internal.generic.AllocationInstruction, com.sun.org.apache.bcel.internal.generic.LoadClass
Imports
java.io.DataOutputStream, .IOException, com.sun.org.apache.bcel.internal.ExceptionConst, com.sun.org.apache.bcel.internal.classfile.ConstantPool, com.sun.org.apache.bcel.internal.util.ByteSequence

MULTIANEWARRAY - Create new mutidimensional array of references
Stack: ..., count1, [count2, ...] -> ..., arrayref

Field Summary

Modifier and TypeField and Description
private short
Inherited from com.sun.org.apache.bcel.internal.generic.CPInstruction:
index

Constructor Summary

AccessConstructor and Description
pack-priv
MULTIANEWARRAY()

Empty constructor needed for Instruction.readInstruction.

public
MULTIANEWARRAY(final int index, final short dimensions)

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

Returns:

Number of words consumed from stack by this instruction
consumeStack
(final ConstantPoolGen cpg)

Overrides com.sun.org.apache.bcel.internal.generic.Instruction.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 final short
getDimensions()

Returns: number of dimensions to be created

public Class<?>[]
public ObjectType
getLoadClassType(final ConstantPoolGen cpg)

Implements com.sun.org.apache.bcel.internal.generic.LoadClass.getLoadClassType.

Returns the ObjectType of the referenced class or interface that may be loaded and resolved.

protected void
initFromFile(final ByteSequence bytes, final boolean wide)

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

Read needed data (i.e., no.

public String

Returns:

mnemonic for instruction
toString
(final boolean verbose)

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

Long output format: <name of opcode> "["<opcode number>"]" "("<length of instruction>")" "<"< constant pool index>">"

public String
toString(final ConstantPool cp)

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

Returns: mnemonic for instruction with symbolic references resolved

Inherited from com.sun.org.apache.bcel.internal.generic.CPInstruction:
getIndexgetTypesetIndex

Field Detail

dimensionsback to summary
private short dimensions

Constructor Detail

MULTIANEWARRAYback to summary
pack-priv MULTIANEWARRAY()

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

MULTIANEWARRAYback to summary
public MULTIANEWARRAY(final int index, final short dimensions)

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

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

Returns:int

Number of words consumed from stack by this instruction

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.

getDimensionsback to summary
public final short getDimensions()
Returns:short

number of dimensions to be created

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

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

Annotations
@Override
getLoadClassTypeback to summary
public ObjectType getLoadClassType(final ConstantPoolGen cpg)

Implements com.sun.org.apache.bcel.internal.generic.LoadClass.getLoadClassType.

Doc from com.sun.org.apache.bcel.internal.generic.LoadClass.getLoadClassType.

Returns the ObjectType of the referenced class or interface that may be loaded and resolved.

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., no. dimension) 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 boolean verbose)

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

Doc from com.sun.org.apache.bcel.internal.generic.CPInstruction.toString.

Long output format: <name of opcode> "["<opcode number>"]" "("<length of instruction>")" "<"< constant pool index>">"

Returns:String

mnemonic for instruction

Annotations
@Override
toStringback to summary
public String toString(final ConstantPool cp)

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

Returns:String

mnemonic for instruction with symbolic references resolved

Annotations
@Override