public class FieldRenamer extends SceneTransformer implements IJbcoTransform
| Modifier and Type | Field and Description |
|---|---|
static int[] |
handedOutPairs |
static int[] |
handedOutRunPairs |
static String |
name |
debug, out, output| Constructor and Description |
|---|
FieldRenamer(Singletons.Global global)
Singleton constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getDependencies()
Gets array of
jbco transformer code names on which current transformer depends on. |
String |
getName()
Gets the code name of
jbco transformer implementation. |
String |
getOrAddNewName(String originalName)
Generates new unique name that have not existed before and mapping for it, or gets new name if one was
already generated.
|
SootField[] |
getRandomOpaques() |
int |
getRandomOpaquesForRunnable() |
Set<String> |
getSkipFields() |
protected void |
internalTransform(String phaseName,
Map<String,String> options)
Performs the transformation on the Scene, under the given phaseName and with the given Options.
|
boolean |
isRenameFields() |
void |
outputSummary()
Prints summary of the produced changes.
|
protected void |
renameField(SootClass sootClass,
SootField field) |
protected void |
setBooleanTo(SootClass sootClass,
SootField field,
boolean value) |
void |
setRenameFields(boolean renameFields) |
void |
setSkipFields(Collection<String> fields) |
static void |
updateOpaqueRunnableCount(int i) |
static FieldRenamer |
v()
Singleton getter.
|
transform, transform, transformclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisDebugEnabled, isVerbosepublic static final String name
public static int[] handedOutPairs
public static int[] handedOutRunPairs
public FieldRenamer(Singletons.Global global)
global - the singletons container. Must not be nullNullPointerException - when global argument is nullpublic static FieldRenamer v()
FieldRenamerpublic String getName()
IJbcoTransformjbco transformer implementation.getName in interface IJbcoTransformjbco transformerpublic String[] getDependencies()
IJbcoTransformjbco transformer code names on which current transformer depends on.getDependencies in interface IJbcoTransformpublic void outputSummary()
IJbcoTransformoutputSummary in interface IJbcoTransformpublic boolean isRenameFields()
public void setRenameFields(boolean renameFields)
public void setSkipFields(Collection<String> fields)
protected void internalTransform(String phaseName, Map<String,String> options)
SceneTransformerinternalTransform in class SceneTransformerpublic String getOrAddNewName(String originalName)
originalName - the original field name. If null then will be the same as generated onepublic SootField[] getRandomOpaques()
public int getRandomOpaquesForRunnable()
public static void updateOpaqueRunnableCount(int i)
Copyright © 2020 Soot OSS. All rights reserved.