|
|||||||||
| Home >> All >> com >> chaoswg >> xtc4y >> classdesc >> [ code overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.chaoswg.xtc4y.classdesc.code
Class Code

java.lang.Objectcom.chaoswg.xtc4y.classdesc.code.Code
- public class Code
- extends java.lang.Object
This class represents the code of a method. It consists of a set of instructions
| Field Summary | |
private java.util.Vector |
instructions
|
| Constructor Summary | |
Code()
Create a new empty code container |
|
Code(java.io.DataInputStream dis,
com.chaoswg.xtc4y.classdesc.ConstantPool cp,
int length)
Creates the Code and initializes it from a DataInputStream |
|
| Method Summary | |
void |
addInstruction(com.chaoswg.xtc4y.classdesc.code.instructions.Instruction instruction)
Add an instruction |
short |
getIndexOf(com.chaoswg.xtc4y.classdesc.code.instructions.Instruction instr)
|
com.chaoswg.xtc4y.classdesc.code.instructions.Instruction |
getInstructionAt(short index)
|
short |
getLastInstructionIndex()
|
int |
getLength()
|
void |
insertInstructionAt(com.chaoswg.xtc4y.classdesc.code.instructions.Instruction instruction,
int index)
Insert an instruction at a given position |
java.lang.String |
toString()
Write code in a readable way |
void |
write(java.io.DataOutputStream dos,
com.chaoswg.xtc4y.classdesc.ConstantPool cp)
Write the instruction onto the DataOutputStream, using the constant pool to register variables. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
instructions
private java.util.Vector instructions
| Constructor Detail |
Code
public Code(java.io.DataInputStream dis, com.chaoswg.xtc4y.classdesc.ConstantPool cp, int length) throws java.io.IOException
- Creates the Code and initializes it from a DataInputStream
Code
public Code()
- Create a new empty code container
| Method Detail |
getInstructionAt
public com.chaoswg.xtc4y.classdesc.code.instructions.Instruction getInstructionAt(short index)
getLastInstructionIndex
public short getLastInstructionIndex()
addInstruction
public void addInstruction(com.chaoswg.xtc4y.classdesc.code.instructions.Instruction instruction)
- Add an instruction
insertInstructionAt
public void insertInstructionAt(com.chaoswg.xtc4y.classdesc.code.instructions.Instruction instruction, int index)
- Insert an instruction at a given position
getIndexOf
public short getIndexOf(com.chaoswg.xtc4y.classdesc.code.instructions.Instruction instr)
getLength
public int getLength()
write
public void write(java.io.DataOutputStream dos, com.chaoswg.xtc4y.classdesc.ConstantPool cp) throws java.io.IOException
- Write the instruction onto the DataOutputStream, using the
constant pool to register variables. .
toString
public java.lang.String toString()
- Write code in a readable way
|
|||||||||
| Home >> All >> com >> chaoswg >> xtc4y >> classdesc >> [ code overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.chaoswg.xtc4y.classdesc.code.Code