|
||||||||||
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.DefvarInstr
public class DefvarInstr
Field Summary |
---|
Fields inherited from class com.joanju.cg.bytecode.Bytecode |
---|
address, cuid, instrSet, nodeNum, xrefs |
Constructor Summary | |
---|---|
DefvarInstr()
|
|
DefvarInstr(int cuid,
int address)
|
|
DefvarInstr(int cuid,
int address,
int symbolNameID)
|
Method Summary | |
---|---|
void |
calcValueSets()
Calculate the value sets for the instruction. |
int |
getInitialValueAddr()
|
Opcode |
getOpcode()
|
java.util.HashSet<java.lang.Integer> |
getSources()
Returns null. |
int |
getSymbolNameID()
|
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 |
setInitialValueAddr(int initialValueAddr)
This takes care of adding the address to {sources} as well. |
void |
setSymbolNameID(int defglobalAddr)
|
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()
All Bytecode instruction subclasses should override this eventually. |
java.lang.String |
toStringFromName(InstructionSet instrs)
Some subclasses should override this to return the string literal, var name, procedure name, etc. |
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, 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 |
Constructor Detail |
---|
public DefvarInstr()
public DefvarInstr(int cuid, int address)
public DefvarInstr(int cuid, int address, int symbolNameID)
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 getInitialValueAddr() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public Opcode getOpcode()
getOpcode
in class Bytecode
public int getSymbolNameID() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public java.util.HashSet<java.lang.Integer> getSources() throws java.sql.SQLException, java.io.IOException
Bytecode
getSources
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 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 void setInitialValueAddr(int initialValueAddr)
public void setSymbolNameID(int defglobalAddr)
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)
Bytecode
toStringFromComments
in class Bytecode
public java.lang.String toStringFromData()
Bytecode
toStringFromData
in class Bytecode
public java.lang.String toStringFromName(InstructionSet instrs)
Bytecode
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 |