|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.classfile.AbstractInstructionAccessor
org.multijava.util.classfile.Instruction
org.multijava.util.classfile.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 | |
private int |
dims
|
private ClassConstant |
type
|
| Fields inherited from class org.multijava.util.classfile.Instruction |
|
| Constructor Summary | |
MultiarrayInstruction(String name,
int dims)
Constructs a new multiarray instruction |
|
MultiarrayInstruction(ClassConstant type,
int dims)
Constructs a new multiarray instruction from a class file |
|
| 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 |
(package private) int |
getSize()
Returns the number of bytes used by the the instruction in the code array. |
int |
getStack()
Return the amount of stack (positive or negative) used by this instruction |
String |
getType()
Return the type of the array |
(package private) void |
resolveConstants(ConstantPool cp)
Insert or check location of constant value on constant pool |
(package private) void |
write(ConstantPool cp,
DataOutput out)
Write this instruction into a file |
| Methods inherited from class org.multijava.util.classfile.Instruction |
check, computeEndAddress, dump, getAddress, getLocalVar, getOpcode, getPoppedFromStack, isLiteral, setAddress, setOpcode |
| Methods inherited from class org.multijava.util.classfile.AbstractInstructionAccessor |
transform |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private ClassConstant type
private int dims
| 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()
void resolveConstants(ConstantPool cp)
cp - the constant pool for this classint getSize()
public String getType()
public int getDimension()
public int getPushedOnStack()
public int getStack()
public byte getReturnType()
void write(ConstantPool cp,
DataOutput out)
throws IOException
cp - the constant pool that contain all dataout - the file where to write this object info
IOException - an io problem has occured
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||