|
||||||||||
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
public class 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(DataOutputStream out)
Dump instruction as byte code to stream out. |
short |
getDimensions()
|
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. |
String |
toString(boolean verbose)
Long output format: <name of opcode> "["<opcode number>"]" "("<length of instruction>")" "<"< constant pool index>">" |
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(DataOutputStream out) throws IOException
dump
in class CPInstruction
out
- Output stream
IOException
protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException
initFromFile
in class CPInstruction
bytes
- input streamwide
- wide prefix?
IOException
public final short getDimensions()
public String toString(boolean verbose)
CPInstruction
toString
in class CPInstruction
verbose
- long/short format switch
public String toString(ConstantPool cp)
toString
in class CPInstruction
public int consumeStack(ConstantPoolGen cpg)
consumeStack
in class Instruction
public 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 |