|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--envgen.analysis.stat.locs.SymLocValue
|
+--envgen.analysis.stat.locs.SymLoc
Implementation 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) int |
debug
|
(package private) int |
kind
One of the different locations: unit, reachable from unit, environment, unknown, and dummy. |
(package private) Accessor |
modifiedAccessor
Represents the modified field/element of the object/array. |
(package private) soot.Type |
modifiedType
|
(package private) boolean |
singular
|
(package private) soot.Type |
type
Type of the object whose field is being modified. |
| Constructor Summary | |
SymLoc()
|
|
SymLoc(int kind)
Used to create a dummy location. |
|
SymLoc(int kind,
soot.Type type)
Used to create an environment or unknown location. |
|
SymLoc(SymLoc loc)
Copy constructor. |
|
| Method Summary | |
void |
apply(soot.util.Switch sw)
|
java.lang.Object |
clone()
|
boolean |
equals(SymLoc second)
|
int |
equivHashCode()
|
boolean |
equivTo(java.lang.Object obj)
|
abstract java.lang.String |
getCode()
Generates code representation of symbolic location appropriate for code generation. |
int |
getKind()
|
Accessor |
getModifiedAccessor()
|
soot.Type |
getModifiedType()
|
boolean |
getSingular()
|
soot.Type |
getType()
Returns the type of the object whose field is being modified, |
java.util.List |
getUseBoxes()
|
boolean |
isSingular()
|
abstract void |
setCastType(soot.Type t)
|
void |
setKind(int k)
Sets the kind of the location. |
void |
setModifiedAccessor(Accessor a)
Sets modifiedField to sf,
used in side-effects analysis, where modified fields
are identified. |
void |
setModifiedType(soot.Type t)
|
void |
setSingular(boolean s)
|
void |
setType(soot.Type t)
Setd typeOfFieldBase to t,
needed for reachable locations and unknown locations,
where the type of the base of the field reference is needed. |
abstract java.lang.String |
toString()
|
void |
toString(soot.UnitPrinter up)
|
| Methods inherited from class envgen.analysis.stat.locs.SymLocValue |
equals |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
int kind
soot.Type type
Accessor modifiedAccessor
soot.Type modifiedType
boolean singular
int debug
| Constructor Detail |
public SymLoc()
public SymLoc(int kind)
public SymLoc(int kind,
soot.Type type)
public SymLoc(SymLoc loc)
| Method Detail |
public boolean isSingular()
public int getKind()
public void setKind(int k)
kind of the location.
public boolean getSingular()
public void setSingular(boolean s)
public abstract void setCastType(soot.Type t)
public Accessor getModifiedAccessor()
public void setModifiedAccessor(Accessor a)
modifiedField to sf,
used in side-effects analysis, where modified fields
are identified.
public soot.Type getModifiedType()
public void setModifiedType(soot.Type t)
public soot.Type getType()
getType in interface soot.Valuepublic void setType(soot.Type t)
typeOfFieldBase to t,
needed for reachable locations and unknown locations,
where the type of the base of the field reference is needed.
public boolean equals(SymLoc second)
public abstract java.lang.String getCode()
getCode in class SymLocValuepublic abstract java.lang.String toString()
toString in class SymLocValuepublic java.util.List getUseBoxes()
getUseBoxes in interface soot.Valuepublic boolean equivTo(java.lang.Object obj)
equivTo in interface soot.EquivTopublic void apply(soot.util.Switch sw)
apply in interface soot.util.Switchablepublic int equivHashCode()
equivHashCode in interface soot.EquivTopublic java.lang.Object clone()
clone in interface soot.Valueclone in class java.lang.Objectpublic void toString(soot.UnitPrinter up)
toString in interface soot.Value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||