|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.bcel.generic.Instruction | +--org.apache.bcel.generic.CPInstruction | +--org.apache.bcel.generic.MULTIANEWARRAY
MULTIANEWARRAY - Create new mutidimensional array of references
Stack: ..., count1, [count2, ...] -> ..., arrayref
Field Summary |
Fields inherited from class org.apache.bcel.generic.CPInstruction |
index |
Fields inherited from class org.apache.bcel.generic.Instruction |
length, opcode |
Constructor Summary | |
MULTIANEWARRAY(int index,
short dimensions)
|
Method Summary | |
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. |
short |
getDimensions()
|
java.lang.Class[] |
getExceptions()
|
ObjectType |
getLoadClassType(ConstantPoolGen cpg)
Returns the ObjectType of the referenced class or interface that may be loaded and resolved. |
protected void |
initFromFile(ByteSequence bytes,
boolean wide)
Read needed data (i.e., no. dimension) from file. |
java.lang.String |
toString(boolean verbose)
Long output format: <name of opcode> "["<opcode number>"]" "("<length of instruction>")" "<"< constant pool index>">" |
java.lang.String |
toString(ConstantPool cp)
|
Methods inherited from class org.apache.bcel.generic.CPInstruction |
getIndex, getType, setIndex |
Methods inherited from class org.apache.bcel.generic.Instruction |
copy, equals, getComparator, getLength, getName, getOpcode, produceStack, readInstruction, setComparator, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.bcel.generic.LoadClass |
getType |
Constructor Detail |
public MULTIANEWARRAY(int index, short dimensions)
Method Detail |
public void dump(java.io.DataOutputStream out) throws java.io.IOException
dump
in class CPInstruction
out
- Output stream
java.io.IOException
protected void initFromFile(ByteSequence bytes, boolean wide) throws java.io.IOException
initFromFile
in class CPInstruction
bytes
- input streamwide
- wide prefix?
java.io.IOException
public final short getDimensions()
public java.lang.String toString(boolean verbose)
CPInstruction
toString
in class CPInstruction
verbose
- long/short format switch
public java.lang.String toString(ConstantPool cp)
toString
in class CPInstruction
public int consumeStack(ConstantPoolGen cpg)
consumeStack
in class Instruction
public java.lang.Class[] getExceptions()
getExceptions
in interface ExceptionThrower
public ObjectType getLoadClassType(ConstantPoolGen cpg)
LoadClass
getLoadClassType
in interface LoadClass
public void accept(Visitor v)
accept
in class Instruction
v
- Visitor object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |