org.apache.bcel.generic
Class MULTIANEWARRAY
- AllocationInstruction, Cloneable, ExceptionThrower, IndexedInstruction, LoadClass, Serializable, TypedInstruction
public class MULTIANEWARRAY
MULTIANEWARRAY - Create new mutidimensional array of references
Stack: ..., count1, [count2, ...] -> ..., arrayref
$Id: MULTIANEWARRAY.java 386056 2006-03-15 11:31:56Z tcurdt $
MULTIANEWARRAY() - Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction().
|
MULTIANEWARRAY(int index, short dimensions)
|
accept , className , consumeStack , copy , dispose , dump , equals , getComparator , getLength , getName , getOpcode , initFromFile , produceStack , readInstruction , setComparator , setOpcode , toString , toString , toString |
dimensions
private short dimensions
MULTIANEWARRAY
(package private) MULTIANEWARRAY()
Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction(). Not to be used otherwise.
MULTIANEWARRAY
public MULTIANEWARRAY(int index,
short dimensions)
accept
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.
- accept in interface Instruction
consumeStack
public int consumeStack(ConstantPoolGen cpg)
Also works for instructions whose stack effect depends on the
constant pool entry they reference.
- consumeStack in interface Instruction
- Number of words consumed from stack by this instruction
dump
public void dump(DataOutputStream out)
throws IOException
Dump instruction as byte code to stream out.
- dump in interface CPInstruction
getDimensions
public final short getDimensions()
- number of dimensions to be created