|
|||||||||
| Home >> All >> com >> techtrader >> modules >> tools >> [ bytecode overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.techtrader.modules.tools.bytecode
Class NewArrayInstruction

java.lang.Objectcom.techtrader.modules.tools.bytecode.Instruction
com.techtrader.modules.tools.bytecode.NewArrayInstruction
- All Implemented Interfaces:
- Constants, com.techtrader.modules.tools.bytecode.visitor.VisitAcceptor
- public class NewArrayInstruction
- extends Instruction
Represents a NEWARRAY instruction, which is used to create new arrays of primitive types.
| Field Summary | |
private static int[] |
_arrayCodes
|
private static java.lang.String[] |
_arrayNames
|
private static java.lang.Class[] |
_arrayTypes
|
private int |
_code
|
| Fields inherited from class com.techtrader.modules.tools.bytecode.Instruction |
_byteIndex, _opcode, _opcodeTypes, _owner |
| Constructor Summary | |
protected |
NewArrayInstruction(Code owner)
|
| Method Summary | |
void |
acceptVisit(com.techtrader.modules.tools.bytecode.visitor.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(java.lang.Object other)
Two NEWARRAY instructions are equal if the array type is the same, of if the array type of either is unset. |
java.lang.Class |
getArrayType()
Get the type of array to create. |
int |
getArrayTypeCode()
Get the array code used in the lowlevel bytecode. |
java.lang.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(java.io.DataInput in)
Read the arguments for this opcode from the given stream. |
NewArrayInstruction |
setArrayType(java.lang.Class type)
Set the type of array to create. |
void |
setArrayTypeCode(int code)
Set the array code used in the lowlevel bytecode. |
NewArrayInstruction |
setArrayTypeName(java.lang.String type)
Set the type of array to create. |
protected void |
writeData(java.io.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 |
| Field Detail |
_arrayCodes
private static final int[] _arrayCodes
_arrayTypes
private static final java.lang.Class[] _arrayTypes
_arrayNames
private static final java.lang.String[] _arrayNames
_code
private int _code
| Constructor Detail |
NewArrayInstruction
protected NewArrayInstruction(Code owner)
| Method Detail |
getArrayTypeCode
public int getArrayTypeCode()
- Get the array code used in the lowlevel bytecode.
setArrayTypeCode
public void setArrayTypeCode(int code)
- Set the array code used in the lowlevel bytecode.
getArrayType
public java.lang.Class getArrayType()
- Get the type of array to create.
getArrayTypeName
public java.lang.String getArrayTypeName()
- Get the type of array to create.
setArrayType
public NewArrayInstruction setArrayType(java.lang.Class type)
- Set the type of array to create.
setArrayTypeName
public NewArrayInstruction setArrayTypeName(java.lang.String type)
- Set the type of array to create.
equals
public boolean equals(java.lang.Object other)
- Two NEWARRAY instructions are equal if the array type is the same,
of if the array type of either is unset.
- Overrides:
equalsin classInstruction
getLength
public int getLength()
- Description copied from class:
Instruction - Return the length in bytes of this opcode, including all arguments.
This method should be overridden by opcodes that take arguments.
- Overrides:
getLengthin classInstruction
copy
protected void copy(Instruction orig)
- Overrides:
copyin classInstruction
readData
protected void readData(java.io.DataInput in) throws java.io.IOException
- Description copied from class:
Instruction - Read the arguments for this opcode from the given stream.
This method should be overridden by opcodes that take arguments.
- Overrides:
readDatain classInstruction
writeData
protected void writeData(java.io.DataOutput out) throws java.io.IOException
- Description copied from class:
Instruction - Write the arguments for this opcode to the given stream.
This method should be overridden by opcodes that take arguments.
- Overrides:
writeDatain classInstruction
acceptVisit
public void acceptVisit(com.techtrader.modules.tools.bytecode.visitor.BCVisitor visit)
- Description copied from interface:
com.techtrader.modules.tools.bytecode.visitor.VisitAcceptor - 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.
- Specified by:
acceptVisitin interfacecom.techtrader.modules.tools.bytecode.visitor.VisitAcceptor- Overrides:
acceptVisitin classInstruction
|
|||||||||
| Home >> All >> com >> techtrader >> modules >> tools >> [ bytecode overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC