|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.joanju.cg.bytecode.Bytecode
com.joanju.cg.bytecode.LiteralnumInstr
public class LiteralnumInstr
Not currently used.
| Field Summary |
|---|
| Fields inherited from class com.joanju.cg.bytecode.Bytecode |
|---|
address, cuid, instrSet, nodeNum, xrefs |
| Constructor Summary | |
|---|---|
LiteralnumInstr()
|
|
LiteralnumInstr(int cuid,
int address)
|
|
| Method Summary | |
|---|---|
void |
calcValueSets()
Calculate the value sets for the instruction. |
java.lang.Integer |
getIntegerValue()
May return null. |
Opcode |
getOpcode()
|
void |
setValueFromTokenText(java.lang.String tokenText)
|
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, getSources, getValues, getValuesCalcLocal, getWhereUsed, 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 LiteralnumInstr()
public LiteralnumInstr(int cuid,
int address)
| Method Detail |
|---|
public void calcValueSets()
throws java.sql.SQLException,
java.io.IOException
BytecodeCalled 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 Bytecodejava.sql.SQLException
java.io.IOException
public java.lang.Integer getIntegerValue()
throws java.sql.SQLException,
java.io.IOException
java.sql.SQLException
java.io.IOExceptionpublic Opcode getOpcode()
getOpcode in class Bytecode
public void setValueFromTokenText(java.lang.String tokenText)
throws java.sql.SQLException
java.sql.SQLException
protected void setValuesFromByteStream(java.io.DataInputStream in)
throws java.io.IOException
setValuesFromByteStream in class Bytecodejava.io.IOExceptionpublic java.lang.String toStringFromComments(InstructionSet instrs)
Bytecode
toStringFromComments in class Bytecodepublic java.lang.String toStringFromData()
Bytecode
toStringFromData in class Bytecodepublic 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 Bytecodejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||