|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.brics.xact.analysis.soot.TranslatorContext
public class TranslatorContext
Context for producing flow graph statements. This is simple storage with no actual functionality.
Constructor Summary | |
---|---|
TranslatorContext(StringAnalysis sa,
Hierarchy h)
Constructs a new translator context. |
Method Summary | |
---|---|
Value |
getAliasValue()
Returns the alias variable for assignment to and from nonimportant types. |
SootClass |
getCurrentClass()
Returns the current class. |
int |
getCurrentLine()
Returns the current line number. |
SootMethod |
getCurrentMethod()
Returns the current method. |
Origin |
getCurrentOrigin()
Returns the current origin. |
Hierarchy |
getHierarchy()
Returns the class hierarchy. |
Map<Statement,SootMethod> |
getInvokeMethodMap()
Returns map from invoke statement to containing Soot method. |
Map<Stmt,Map<Integer,Variable>> |
getInvokeParamMaps()
Returns map from invoke sites to map from parameter indices to graph variables. |
Map<Statement,Stmt> |
getInvokeStatementMap()
Returns map from abstract invoke site to Soot invoke stmt. |
Statement |
getLastStatement()
Returns the last statement from the statement queue. |
Map<Local,String> |
getLocalStrings()
Returns the map from local variables to the last constant string assigned to them. |
Map<SootMethod,Map<Integer,Variable>> |
getMethodParamMaps()
Returns map from methods to map from parameter indices to graph variables. |
Map<SootMethod,Collection<Statement>> |
getMethodReturns()
Returns map from Soot method to collection of graph return points. |
Value |
getMethodReturnVar()
Returns the current method return variable. |
Map<String,String> |
getNamespaces()
Returns the namespace declaration map (from prefix to URI). |
Statement |
getNextStatement()
Returns the next statement from the statement queue. |
int |
getNextVarID()
Returns the next fresh variable ID. |
Map<Integer,Variable> |
getParamMap()
Returns the map from parameter indices of the current method to graph variables. |
Map<ParameterRef,SootMethod> |
getParamRefMap()
Returns the map from Soot parameter references to corresponding Soot methods. |
Value |
getResultVar()
Returns the result variable for the current method invocation. |
StringAnalysis |
getStringAnalysis()
Returns the string analysis for querying possible values at string plugs etc. |
Map<String,Variable> |
getVarMap()
Returns the map from Soot field/local/dummy variable descriptor strings to graph variables. |
void |
initParamMap()
Initializes the map from parameter indices to flow graph variables. |
boolean |
moreStatements()
Returns true if the queue of generated statements is nonempty. |
void |
putStatement(Statement s)
Adds a statement to the queue. |
void |
setCurrentClass(SootClass c)
Sets the current class. |
void |
setCurrentLine(int line)
Sets the current line number. |
void |
setCurrentMethod(SootMethod m)
Sets the current method. |
void |
setCurrentOrigin(Origin o)
Sets the current origin. |
void |
setMethodReturnVar(Value var)
Sets the current method return variable. |
void |
setResultVar(Value v)
Sets the result variable for the current method invocation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TranslatorContext(StringAnalysis sa, Hierarchy h)
Method Detail |
---|
public Value getAliasValue()
XML[]
.
public SootClass getCurrentClass()
public int getCurrentLine()
public SootMethod getCurrentMethod()
public Origin getCurrentOrigin()
public Hierarchy getHierarchy()
public Map<Statement,SootMethod> getInvokeMethodMap()
public Map<Stmt,Map<Integer,Variable>> getInvokeParamMaps()
public Map<Statement,Stmt> getInvokeStatementMap()
public Statement getLastStatement()
public Map<Local,String> getLocalStrings()
public Map<SootMethod,Map<Integer,Variable>> getMethodParamMaps()
public Map<SootMethod,Collection<Statement>> getMethodReturns()
public Value getMethodReturnVar()
public Map<String,String> getNamespaces()
public Statement getNextStatement()
public int getNextVarID()
public Map<Integer,Variable> getParamMap()
public Map<ParameterRef,SootMethod> getParamRefMap()
public Value getResultVar()
public StringAnalysis getStringAnalysis()
public Map<String,Variable> getVarMap()
public void initParamMap()
public boolean moreStatements()
public void putStatement(Statement s)
public void setCurrentClass(SootClass c)
public void setCurrentLine(int line)
public void setCurrentMethod(SootMethod m)
public void setCurrentOrigin(Origin o)
public void setMethodReturnVar(Value var)
public void setResultVar(Value v)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |