public class SourceContextAndPath extends SourceContext implements Cloneable
SourceContext that also allows a paths from the source
to the current statement to be stored| Modifier and Type | Field and Description |
|---|---|
protected ExtensibleList<soot.jimple.Stmt> |
callStack |
protected int |
neighborCounter |
protected ExtensibleList<Abstraction> |
path |
accessPath, definition, stmt, userData| Constructor and Description |
|---|
SourceContextAndPath(ISourceSinkDefinition definition,
AccessPath value,
soot.jimple.Stmt stmt) |
SourceContextAndPath(ISourceSinkDefinition definition,
AccessPath value,
soot.jimple.Stmt stmt,
Object userData) |
| Modifier and Type | Method and Description |
|---|---|
SourceContextAndPath |
clone() |
boolean |
equals(Object other) |
SourceContextAndPath |
extendPath(Abstraction abs)
Extends the taint propagation path with the given abstraction
|
SourceContextAndPath |
extendPath(Abstraction abs,
InfoflowConfiguration.PathConfiguration pathConfig)
Extends the taint propagation path with the given abstraction
|
List<Abstraction> |
getAbstractionPath() |
int |
getNeighborCounter() |
List<soot.jimple.Stmt> |
getPath() |
int |
hashCode() |
boolean |
isCallStackEmpty()
Gets whether the current call stack is empty, i.e., the path is in the method
from which it originated
|
heros.solver.Pair<SourceContextAndPath,soot.jimple.Stmt> |
popTopCallStackItem()
Pops the top item off the call stack.
|
void |
setNeighborCounter(int counter) |
String |
toString() |
getAccessPath, getDefinition, getStmt, getUserDataprotected ExtensibleList<Abstraction> path
protected ExtensibleList<soot.jimple.Stmt> callStack
protected int neighborCounter
public SourceContextAndPath(ISourceSinkDefinition definition, AccessPath value, soot.jimple.Stmt stmt)
public SourceContextAndPath(ISourceSinkDefinition definition, AccessPath value, soot.jimple.Stmt stmt, Object userData)
public List<soot.jimple.Stmt> getPath()
public List<Abstraction> getAbstractionPath()
public SourceContextAndPath extendPath(Abstraction abs)
abs - The abstraction to put on the taint propagation pathpublic SourceContextAndPath extendPath(Abstraction abs, InfoflowConfiguration.PathConfiguration pathConfig)
abs - The abstraction to put on the taint propagation pathpathConfig - The configuration for constructing taint propagation pathspublic heros.solver.Pair<SourceContextAndPath,soot.jimple.Stmt> popTopCallStackItem()
SourceContextAndPath object as the first element of
the pair and the call stack item that was popped off as the second
element. If there is no call stack, null is returned.public boolean isCallStackEmpty()
public void setNeighborCounter(int counter)
public int getNeighborCounter()
public boolean equals(Object other)
equals in class SourceContextpublic int hashCode()
hashCode in class SourceContextpublic SourceContextAndPath clone()
clone in class SourceContextpublic String toString()
toString in class SourceContextCopyright © 2021 Fraunhofer SIT. All rights reserved.