public class ConstantInitializerToTagTransformer extends SceneTransformer
ConstantValueToInitializerTransformer. We scan for <clinit> methods
that initialize a final field with a constant value and create a ConstantValueTag from this value. Afterwards, the
assignment in the <clinit> method is removed. If <clinit> runs empty, it is deleted as well.| Constructor and Description |
|---|
ConstantInitializerToTagTransformer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
internalTransform(String phaseName,
Map<String,String> options)
Performs the transformation on the Scene, under the given phaseName and with the given Options.
|
void |
transformClass(SootClass sc,
boolean removeAssignments)
Transforms the given class, i.e.
|
static ConstantInitializerToTagTransformer |
v() |
transform, transform, transformpublic static ConstantInitializerToTagTransformer v()
protected void internalTransform(String phaseName, Map<String,String> options)
SceneTransformerinternalTransform in class SceneTransformerpublic void transformClass(SootClass sc, boolean removeAssignments)
<clinit> method and generates new constant value tags for all
constant assignments to static final fields.sc - The class to transformremoveAssignments - True if the assignments inside the <clinit> method shall be removed, otherwise falseCopyright © 2024 Soot OSS. All rights reserved.