envgen.analysis.stat.locs
Class RootNewObject
java.lang.Object
|
+--envgen.analysis.stat.locs.Root
|
+--envgen.analysis.stat.locs.RootNewObject
- public class RootNewObject
- extends Root
Implementation of a root of symbolic location that represents
a memory location.
There are four different symbolic locations that can be identified
by the analysis: unit locations, locations reachable
from the unit through a chain of references,
locations in the environment, and locations that the analysis
can't identify (unknown locations).
|
Field Summary |
(package private) soot.jimple.Stmt |
allocationSite
|
(package private) int |
creationIndex
Represents the very first base (b) of the symbolic location. |
(package private) int |
debug
|
(package private) soot.Value |
enclosingLoc
Enclosing object of the inner class |
(package private) boolean |
isInnerLoc
|
(package private) boolean |
summaryNode
|
|
Constructor Summary |
RootNewObject(soot.Value value,
soot.Type type)
|
| Methods inherited from class envgen.analysis.stat.locs.Root |
getRoot, getRootCastType, getRootType, isGlobal, isNewObject, isNull, isParam, isThis, setRoot, setRootCastType, setRootType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
creationIndex
int creationIndex
- Represents the very first base (b) of the symbolic location. For example
the first base of an expression b.f1...fn is b.
allocationSite
soot.jimple.Stmt allocationSite
summaryNode
boolean summaryNode
enclosingLoc
soot.Value enclosingLoc
- Enclosing object of the inner class
isInnerLoc
boolean isInnerLoc
debug
int debug
RootNewObject
public RootNewObject(soot.Value value,
soot.Type type)
getCreationIndex
public int getCreationIndex()
- Returns top level location: either
it's a static fields of the unit
or a parameter.
setCreationIndex
public void setCreationIndex(int index)
getAllocationSite
public soot.jimple.Stmt getAllocationSite()
setAllocationSite
public void setAllocationSite(soot.jimple.Stmt unit)
getSummaryNode
public boolean getSummaryNode()
setSummaryNode
public void setSummaryNode(boolean summary)
isInnerLoc
public boolean isInnerLoc()
- Overrides:
isInnerLoc in class Root
setIsInnerLoc
public void setIsInnerLoc(boolean inner)
getCode
public java.lang.String getCode()
- Generates code representation of symbolic
location appropriate for code generation.
- Overrides:
getCode in class Root
toString
public java.lang.String toString()
- Overrides:
toString in class Root