|
TechTrader Bytecode Toolkit | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.techtrader.modules.tools.bytecode.Instruction | +--com.techtrader.modules.tools.bytecode.NewArrayInstruction
Represents a NEWARRAY instruction, which is used to create new arrays of primitive types.
Fields inherited from class com.techtrader.modules.tools.bytecode.Instruction |
_byteIndex,
_opcode,
_opcodeTypes,
_owner |
Constructor Summary | |
protected |
NewArrayInstruction(Code owner)
|
Method Summary | |
void |
acceptVisit(BCVisitor visit)
Accept a visit from a BCVisitor, calling the appropriate methods to notify the visitor that it has entered this entity, and to provide it with the proper callbacks for each sub-entity owned by this object. |
protected void |
copy(Instruction orig)
|
boolean |
equals(Object other)
Two NEWARRAY instructions are equal if the array type is the same, of if the array type of either is unset. |
Class |
getArrayType()
Get the type of array to create. |
int |
getArrayTypeCode()
Get the array code used in the lowlevel bytecode. |
String |
getArrayTypeName()
Get the type of array to create. |
int |
getLength()
Return the length in bytes of this opcode, including all arguments. |
protected void |
readData(DataInput in)
Read the arguments for this opcode from the given stream. |
NewArrayInstruction |
setArrayType(Class type)
Set the type of array to create. |
void |
setArrayTypeCode(int code)
Set the array code used in the lowlevel bytecode. |
NewArrayInstruction |
setArrayTypeName(String type)
Set the type of array to create. |
protected void |
writeData(DataOutput out)
Write the arguments for this opcode to the given stream. |
Methods inherited from class com.techtrader.modules.tools.bytecode.Instruction |
getByteIndex,
getName,
getOpCode,
getOwner,
getStackChange,
invalidate,
setByteIndex,
setOpCode |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
protected NewArrayInstruction(Code owner)
Method Detail |
public int getArrayTypeCode()
public void setArrayTypeCode(int code)
public Class getArrayType()
public String getArrayTypeName()
public NewArrayInstruction setArrayType(Class type)
public NewArrayInstruction setArrayTypeName(String type)
public boolean equals(Object other)
public int getLength()
protected void copy(Instruction orig)
protected void readData(DataInput in) throws IOException
protected void writeData(DataOutput out) throws IOException
public void acceptVisit(BCVisitor visit)
|
TechTrader Bytecode Toolkit | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |