|
||||||||||
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.Endpoint com.joanju.cg.bytecode.ProcedureInstr
public class ProcedureInstr
Field Summary |
---|
Fields inherited from class com.joanju.cg.bytecode.Endpoint |
---|
longSignature |
Fields inherited from class com.joanju.cg.bytecode.Bytecode |
---|
address, cuid, instrSet, nodeNum, xrefs |
Constructor Summary | |
---|---|
ProcedureInstr()
|
|
ProcedureInstr(int cuid,
int address)
|
Method Summary | |
---|---|
void |
calcValueSets()
A checkval record for this instruction would exist if any of the external calls to this procedure were added, dropped, or rebuilt. |
void |
dropLocalSource(int sourceAddress)
|
java.util.ArrayList<AbstractCall> |
getAllCallSites()
Fetch all call sites for this procedure. |
int |
getColumn()
|
int |
getFileID()
|
int |
getLine()
|
java.util.HashSet<java.lang.Integer> |
getLocalSources()
Local call sites for this procedure. |
int |
getMethodSigID()
|
int |
getNameID()
|
Opcode |
getOpcode()
|
java.util.ArrayList<java.lang.Integer> |
getParamNameIDs()
|
int |
getTargetType()
|
java.util.HashSet<java.lang.Integer> |
getWhereUsed()
Where, OTHER THAN local sources, is this procedure instruction 'used'? Instructions for SOURCE-PROCEDURE and TARGET-PROCEDURE (if either exist) are in the where-used list for this procedure, because if the set of call sites for this procedure changes, then those have to be recalculated. |
boolean |
isUnresolved()
|
java.util.Collection<Endpoint> |
otherExternalEndsMatching()
Get external other ends with matching signatures. |
java.util.Collection<Endpoint> |
otherLocalEndsMatching()
Get local other ends with matching signatures. |
void |
setColumn(int column)
|
void |
setFileID(int fileID)
|
void |
setLine(int line)
|
void |
setMethodSigID(int methodSigID)
|
void |
setNameID(int nameRVal)
|
void |
setParamNameIDsReferenceTo(java.util.ArrayList<java.lang.Integer> paramNameIDs)
|
void |
setTargetType(int targetType)
|
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()
methodSigID, nameID, localSources, paramNameIDs, whereUsed |
protected void |
writeValuesToByteStream(java.io.DataOutputStream out)
|
Methods inherited from class com.joanju.cg.bytecode.Endpoint |
---|
getLongSignature, setLongSignature |
Methods inherited from class com.joanju.cg.bytecode.Bytecode |
---|
addSource, addWhereUsed, beforeWrite, calcValuesAgain, compareTo, equals, fetchBytesFromDB, fetchInCu, generateDataForDB, getAddress, getCuID, getNodeNum, getSources, getValues, getValuesCalcLocal, getXrefs, hashCode, initData, isDataModified, isFromDB, setAddress, setCuID, setDataBytesFromDB, setDataModified, setFromDB, setInstructionSet, setNodeNum, shouldLoadData, sourcesForXrefTarget, storeIfModified, toString, toStringFromName, toStringFromSet |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProcedureInstr()
public ProcedureInstr(int cuid, int address)
Method Detail |
---|
public void calcValueSets() throws java.sql.SQLException, java.io.IOException
calcValueSets
in class Bytecode
java.sql.SQLException
java.io.IOException
public void dropLocalSource(int sourceAddress) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public java.util.ArrayList<AbstractCall> getAllCallSites() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public int getColumn() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public int getFileID() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public int getLine() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public java.util.HashSet<java.lang.Integer> getLocalSources() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public int getMethodSigID() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public int getNameID() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public java.util.ArrayList<java.lang.Integer> getParamNameIDs() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public Opcode getOpcode()
getOpcode
in class Bytecode
public int getTargetType() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public java.util.HashSet<java.lang.Integer> getWhereUsed() throws java.sql.SQLException, java.io.IOException
getWhereUsed
in class Bytecode
java.sql.SQLException
java.io.IOException
getLocalSources()
public boolean isUnresolved()
public java.util.Collection<Endpoint> otherExternalEndsMatching() throws java.sql.SQLException, java.io.IOException
Endpoint
java.sql.SQLException
java.io.IOException
public java.util.Collection<Endpoint> otherLocalEndsMatching() throws java.sql.SQLException, java.io.IOException
Endpoint
java.sql.SQLException
java.io.IOException
public void setColumn(int column)
public void setFileID(int fileID)
public void setLine(int line)
public void setMethodSigID(int methodSigID)
public void setNameID(int nameRVal)
public void setParamNameIDsReferenceTo(java.util.ArrayList<java.lang.Integer> paramNameIDs)
public void setTargetType(int targetType)
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()
toStringFromData
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 |