public class TopLevelTranslation extends SceneObject implements JimpleToAbstractSemantics
The translation process is started by translate().
This class does not specify actual translation rules for statements/values/types. Those
can be found in the translation hierarchy starting in firstLevel
| Constructor and Description |
|---|
TopLevelTranslation(SceneObject sceneObject)
Default initialization for TopLevelTranslation.
|
TopLevelTranslation(SceneObject sceneObject,
JimpleToAbstractSemantics firstLevel)
Initializes the TopLevelTranslation with a custom first level.
|
| Modifier and Type | Method and Description |
|---|---|
Method |
getMethod(String signature)
Gets the abstract method for the given signature.
|
void |
setTopLevel(TopLevelTranslation topLevel)
Determines the highest level in the translation hierarchy.
|
void |
translate()
First fills the methodMapping with new abstractMethods for each method in
the main class.
|
Statement |
translateStatement(soot.jimple.Stmt input,
int pc)
Translates Jimple statements to instances of
Statement. |
Type |
translateType(soot.Type input)
Translates Jimple types into
Type. |
Value |
translateValue(soot.Value input)
Translates Jimple values to instances of
Value. |
scenepublic TopLevelTranslation(SceneObject sceneObject)
StandardAbstractSemanticspublic TopLevelTranslation(SceneObject sceneObject, JimpleToAbstractSemantics firstLevel)
firstLevel - The custom first level of the translation process.public void translate()
translateMethod(SootMethod)public Statement translateStatement(soot.jimple.Stmt input, int pc)
JimpleToAbstractSemanticsStatement.translateStatement in interface JimpleToAbstractSemanticsinput - The Jimple statement to translate.pc - The program counter associated to this statement.public Value translateValue(soot.Value input)
JimpleToAbstractSemanticsValue.translateValue in interface JimpleToAbstractSemanticsinput - the Jimple value to translate.public Type translateType(soot.Type input)
JimpleToAbstractSemanticsType.translateType in interface JimpleToAbstractSemanticsinput - The type to translate.public Method getMethod(String signature)
signature - The signature of the requested method.public void setTopLevel(TopLevelTranslation topLevel)
JimpleToAbstractSemanticssetTopLevel in interface JimpleToAbstractSemanticstopLevel - The first level that is invoked during the translation.Copyright © 2018. All rights reserved.