|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.dms.classfile.AbstractInstructionAccessor
at.dms.classfile.Instruction
at.dms.classfile.MultiarrayInstruction
public class MultiarrayInstruction
Some instructions are perniticky enough that its simpler to write them separately instead of smushing them with all the rest. the multiarray instruction is one of them.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
MultiarrayInstruction(ClassConstant type,
int dims)
Constructs a new multiarray instruction from a class file |
|
MultiarrayInstruction(String name,
int dims)
Constructs a new multiarray instruction |
|
| Method Summary | |
|---|---|
boolean |
canComplete()
Returns true iff control flow can reach the next instruction in textual order. |
int |
getDimension()
Return the number of dimension of this array |
int |
getPushedOnStack()
Returns the size of data pushed on the stack by this instruction |
byte |
getReturnType()
Returns the type pushed on the stack |
int |
getStack()
Return the amount of stack (positive or negative) used by this instruction |
String |
getType()
Return the type of the array |
| Methods inherited from class at.dms.classfile.Instruction |
|---|
dump, getOpcode, getPoppedFromStack, isLiteral |
| Methods inherited from class at.dms.classfile.AbstractInstructionAccessor |
|---|
deepClone, deepCloneInto, transform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiarrayInstruction(String name,
int dims)
name - the qualified name of the base classdims - number of dimensions for the array
public MultiarrayInstruction(ClassConstant type,
int dims)
type - the base class as a pooled constantdims - number of dimensions for the array| Method Detail |
|---|
public boolean canComplete()
canComplete in class Instructionpublic String getType()
public int getDimension()
public int getPushedOnStack()
getPushedOnStack in class Instructionpublic int getStack()
getStack in class Instructionpublic byte getReturnType()
getReturnType in class Instruction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||