soot.jbco.jimpleTransformations
Class FieldRenamer

java.lang.Object
  extended by soot.Transformer
      extended by soot.SceneTransformer
          extended by soot.jbco.jimpleTransformations.FieldRenamer
All Implemented Interfaces:
IJbcoTransform

public class FieldRenamer
extends SceneTransformer
implements IJbcoTransform

Author:
Michael Batchelder Created on 26-Jan-2006

Field Summary
static String[] dependancies
           
static int[] handedOutPairs
           
static int[] handedOutRunPairs
           
static String name
           
static Vector namesToNotRename
           
static Hashtable<String,String> oldToNewFieldNames
           
static SootField[][] opaquePairs
           
static Hashtable<SootClass,SootField> opaquePreds1ByClass
           
static Hashtable<SootClass,SootField> opaquePreds2ByClass
           
static boolean rename_fields
           
static ArrayList<SootField> sootFieldsRenamed
           
 
Fields inherited from interface soot.jbco.IJbcoTransform
debug, out, output
 
Constructor Summary
FieldRenamer()
           
 
Method Summary
static void addOldAndNewName(String oldn, String newn)
           
 String[] getDependancies()
           
 String getName()
           
static String getNewName()
           
static SootField[] getRandomOpaques()
           
static int getRandomOpaquesForRunnable()
           
protected  void internalTransform(String phaseName, Map options)
          Performs the transformation on the Scene, under the given phaseName and with the given Options.
static boolean isJavaIdentifier(String s)
           
 void outputSummary()
           
protected  void renameField(String cName, SootField f)
           
protected  void setBooleanTo(SootClass c, SootField f, boolean value)
           
static void updateOpaqueRunnableCount(int i)
           
 
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
 

Field Detail

dependancies

public static String[] dependancies

name

public static String name

namesToNotRename

public static Vector namesToNotRename

oldToNewFieldNames

public static Hashtable<String,String> oldToNewFieldNames

opaquePreds1ByClass

public static Hashtable<SootClass,SootField> opaquePreds1ByClass

opaquePreds2ByClass

public static Hashtable<SootClass,SootField> opaquePreds2ByClass

sootFieldsRenamed

public static ArrayList<SootField> sootFieldsRenamed

opaquePairs

public static SootField[][] opaquePairs

handedOutPairs

public static int[] handedOutPairs

handedOutRunPairs

public static int[] handedOutRunPairs

rename_fields

public static boolean rename_fields
Constructor Detail

FieldRenamer

public FieldRenamer()
Method Detail

outputSummary

public void outputSummary()
Specified by:
outputSummary in interface IJbcoTransform

getDependancies

public String[] getDependancies()
Specified by:
getDependancies in interface IJbcoTransform

getName

public String getName()
Specified by:
getName in interface IJbcoTransform

internalTransform

protected void internalTransform(String phaseName,
                                 Map options)
Description copied from class: SceneTransformer
Performs the transformation on the Scene, under the given phaseName and with the given Options.

Specified by:
internalTransform in class SceneTransformer

setBooleanTo

protected void setBooleanTo(SootClass c,
                            SootField f,
                            boolean value)

renameField

protected void renameField(String cName,
                           SootField f)

getNewName

public static String getNewName()

addOldAndNewName

public static void addOldAndNewName(String oldn,
                                    String newn)

isJavaIdentifier

public static boolean isJavaIdentifier(String s)

getRandomOpaques

public static SootField[] getRandomOpaques()

getRandomOpaquesForRunnable

public static int getRandomOpaquesForRunnable()

updateOpaqueRunnableCount

public static void updateOpaqueRunnableCount(int i)