|
||||||||||
| 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.ScriptValsInstr
public class ScriptValsInstr
Procedure names or handle values from a user script.
Because many kinds of expressions and data-driven calls cannot be resolved by Callgraph, user scripts may be used to supplement Callgraph.
These values are never recalculated - the script is only run once for the call at build time.
| Field Summary |
|---|
| Fields inherited from class com.joanju.cg.bytecode.Bytecode |
|---|
address, cuid, instrSet, nodeNum, xrefs |
| Constructor Summary | |
|---|---|
ScriptValsInstr()
|
|
ScriptValsInstr(int cuid,
int address)
|
|
ScriptValsInstr(int cuid,
int address,
java.util.Collection<java.lang.String> stringVals)
Create with values. |
|
| Method Summary | |
|---|---|
void |
calcValueSets()
No-op. |
Opcode |
getOpcode()
|
java.util.HashSet<java.lang.Integer> |
getValues()
Get the set of values for this instruction. |
protected void |
setValuesFromByteStream(java.io.DataInputStream in)
|
java.lang.String |
toStringFromData()
All Bytecode instruction subclasses should override this eventually. |
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, getWhereUsed, getXrefs, hashCode, initData, isDataModified, isFromDB, setAddress, setCuID, setDataBytesFromDB, setDataModified, setFromDB, setInstructionSet, setNodeNum, shouldLoadData, sourcesForXrefTarget, storeIfModified, toString, toStringFromComments, toStringFromName, toStringFromSet |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptValsInstr()
public ScriptValsInstr(int cuid,
int address)
public ScriptValsInstr(int cuid,
int address,
java.util.Collection<java.lang.String> stringVals)
throws java.sql.SQLException
java.sql.SQLException| Method Detail |
|---|
public void calcValueSets()
throws java.sql.SQLException,
java.io.IOException
calcValueSets in class Bytecodejava.sql.SQLException
java.io.IOExceptionpublic 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 Bytecodejava.sql.SQLException
java.io.IOException
protected void setValuesFromByteStream(java.io.DataInputStream in)
throws java.io.IOException
setValuesFromByteStream in class Bytecodejava.io.IOExceptionpublic java.lang.String toStringFromData()
Bytecode
toStringFromData 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 | |||||||||