|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsoot.Transformer
soot.SceneTransformer
ptolemy.copernicus.java.FieldsForEntitiesTransformer
public class FieldsForEntitiesTransformer
A transformer that is responsible for replacing references to entities. Any calls to the getContainer(), and getEntity() methods are replaced with a field reference to the field of the appropriate class. FIXME: deal with this also?
Red (cxh) |
Red (cxh) |
Method Summary | |
---|---|
static void |
_createContainerField(soot.SootClass theClass)
|
java.lang.String |
getDeclaredOptions()
|
java.lang.String |
getDefaultOptions()
|
static Entity |
getEntityContainerOfObject(Nameable object)
Given an object in the model, return the first object above it in the hierarchy that is an entity. |
static soot.Local |
getLocalReferenceForEntity(Entity entity,
soot.SootClass sourceClass,
soot.Local local,
soot.jimple.JimpleBody body,
soot.Unit unit,
java.util.Map options)
Insert code into the given body of a method in the given class before the given unit to get a reference to the object generated for the given entity. |
java.lang.String |
getPhaseName()
|
protected void |
internalTransform(java.lang.String phaseName,
java.util.Map options)
|
static boolean |
isContained(Nameable object1,
Nameable object2)
Return true if the first object is contained in the second. |
static boolean |
isDeeplyContained(Nameable object1,
Nameable object2)
Return true if the first object is contained in the second. |
static FieldsForEntitiesTransformer |
v(CompositeActor model)
Return an instance of this transformer that will operate on the given model. |
Methods inherited from class soot.SceneTransformer |
---|
transform, transform, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static FieldsForEntitiesTransformer v(CompositeActor model)
public java.lang.String getPhaseName()
getPhaseName
in interface soot.HasPhaseOptions
public java.lang.String getDefaultOptions()
getDefaultOptions
in interface soot.HasPhaseOptions
public java.lang.String getDeclaredOptions()
getDeclaredOptions
in interface soot.HasPhaseOptions
public static Entity getEntityContainerOfObject(Nameable object)
public static boolean isContained(Nameable object1, Nameable object2)
public static boolean isDeeplyContained(Nameable object1, Nameable object2)
public static soot.Local getLocalReferenceForEntity(Entity entity, soot.SootClass sourceClass, soot.Local local, soot.jimple.JimpleBody body, soot.Unit unit, java.util.Map options)
java.lang.RuntimeException
- If no field was created for the
given entity.protected void internalTransform(java.lang.String phaseName, java.util.Map options)
internalTransform
in class soot.SceneTransformer
public static void _createContainerField(soot.SootClass theClass)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |