|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.joanju.cg.bytecode.Bytecode com.joanju.cg.bytecode.SyshandleInstr
public class SyshandleInstr
The built-in system handles for TARGET-PROCEDURE and SOURCE-PROCEDURE. The handleType field (see setHandleType()) determines which type of system handle this record represents.
Field Summary | |
---|---|
static int |
HDL_TYPE_SOURCE_PROCEDURE
|
static int |
HDL_TYPE_TARGET_PROCEDURE
|
Fields inherited from class com.joanju.cg.bytecode.Bytecode |
---|
address, cuid, instrSet, nodeNum, xrefs |
Constructor Summary | |
---|---|
SyshandleInstr()
|
|
SyshandleInstr(int cuid,
int address)
|
Method Summary | |
---|---|
void |
calcValueSets()
Calculate the value sets for the instruction. |
int |
getHandleType()
|
Opcode |
getOpcode()
|
java.util.HashSet<java.lang.Integer> |
getValues()
Get the set of values for this instruction. |
java.util.HashSet<java.lang.Integer> |
getWhereUsed()
Returns null. |
void |
setHandleType(int newHandleType)
Set the handle type. |
protected void |
setValuesFromByteStream(java.io.DataInputStream in)
|
java.lang.String |
toStringFromComments(InstructionSet instrs)
All Bytecode instruction subclasses should override this eventually. |
java.lang.String |
toStringFromData()
Displays integer handle type, whereUsed, values. |
java.lang.String |
toStringFromName(InstructionSet instrs)
Returns SOURCE-PROCEDURE or TARGET-PROCEDURE. |
protected void |
writeValuesToByteStream(java.io.DataOutputStream out)
|
Methods inherited from class com.joanju.cg.bytecode.Bytecode |
---|
addSource, addWhereUsed, beforeWrite, calcValuesAgain, compareTo, equals, fetchBytesFromDB, fetchInCu, generateDataForDB, getAddress, getCuID, getNodeNum, getSources, getValuesCalcLocal, getXrefs, hashCode, initData, isDataModified, isFromDB, setAddress, setCuID, setDataBytesFromDB, setDataModified, setFromDB, setInstructionSet, setNodeNum, shouldLoadData, sourcesForXrefTarget, storeIfModified, toString, toStringFromSet |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int HDL_TYPE_SOURCE_PROCEDURE
setHandleType(int)
,
Constant Field Valuespublic static final int HDL_TYPE_TARGET_PROCEDURE
setHandleType(int)
,
Constant Field ValuesConstructor Detail |
---|
public SyshandleInstr()
public SyshandleInstr(int cuid, int address)
Method Detail |
---|
public void calcValueSets() throws java.sql.SQLException, java.io.IOException
Bytecode
Called during build, build-recalc, checkvals, and checkvals-recalc. Implementations should only build from external values once. Calculates which xref records are needed as well.
IMPORTANT: Should only ever be called for instructions belonging to an InstructionSet.
calcValueSets
in class Bytecode
java.sql.SQLException
java.io.IOException
public int getHandleType()
setHandleType(int)
public Opcode getOpcode()
getOpcode
in class Bytecode
public java.util.HashSet<java.lang.Integer> getValues() throws java.sql.SQLException, java.io.IOException
Bytecode
getValues
in class Bytecode
java.sql.SQLException
java.io.IOException
public java.util.HashSet<java.lang.Integer> getWhereUsed() throws java.sql.SQLException, java.io.IOException
Bytecode
getWhereUsed
in class Bytecode
java.sql.SQLException
java.io.IOException
public void setHandleType(int newHandleType)
protected void setValuesFromByteStream(java.io.DataInputStream in) throws java.io.IOException
setValuesFromByteStream
in class Bytecode
java.io.IOException
public java.lang.String toStringFromComments(InstructionSet instrs) throws java.sql.SQLException
Bytecode
toStringFromComments
in class Bytecode
java.sql.SQLException
public java.lang.String toStringFromData()
toStringFromData
in class Bytecode
public java.lang.String toStringFromName(InstructionSet instrs)
toStringFromName
in class Bytecode
protected void writeValuesToByteStream(java.io.DataOutputStream out) throws java.io.IOException
writeValuesToByteStream
in class Bytecode
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |