soot.javaToJimple
Class Util

java.lang.Object
  extended by soot.javaToJimple.Util

public class Util
extends Object


Constructor Summary
Util()
           
 
Method Summary
static void addInnerClassTag(SootClass sc, String innerName, String outerName, String simpleName, int access)
           
static void addLineTag(Host host, int sLine, int eLine)
          Line Tag Adder
static void addLineTag(Host host, polyglot.ast.Node node)
          Line Tag Adder
static void addLnPosTags(Host host, int sline, int eline, int spos, int epos)
           
static void addLnPosTags(Host host, polyglot.util.Position pos)
           
static void addMethodLineTag(Host host, int sline, int eline)
           
static void addMethodPosTag(Host meth, int start, int end)
           
static void addPosTag(Host host, int sc, int ec)
          Position Tag Adder
static void addPosTag(Host host, polyglot.util.Position pos)
          Position Tag Adder
static String getFieldNameForClassLit(polyglot.types.Type type)
           
static int getModifier(polyglot.types.Flags flags)
          Modifier Creation
static String getParamNameForClassLit(polyglot.types.Type type)
           
static Local getPrivateAccessFieldInvoke(SootMethodRef toInvoke, ArrayList params, Body body, LocalGenerator lg)
           
static Type getSootType(polyglot.types.Type type)
          Type handling
static String getSourceFileOfClass(SootClass sootClass)
           
static Local getThis(Type sootType, Body body, HashMap getThisMap, LocalGenerator lg)
           
static Local getThisGivenOuter(Type sootType, HashMap getThisMap, Body body, LocalGenerator lg, Local t2)
           
static boolean isSubType(polyglot.types.ClassType type, polyglot.types.ClassType superType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

addInnerClassTag

public static void addInnerClassTag(SootClass sc,
                                    String innerName,
                                    String outerName,
                                    String simpleName,
                                    int access)

getParamNameForClassLit

public static String getParamNameForClassLit(polyglot.types.Type type)

getFieldNameForClassLit

public static String getFieldNameForClassLit(polyglot.types.Type type)

getSourceFileOfClass

public static String getSourceFileOfClass(SootClass sootClass)

addLnPosTags

public static void addLnPosTags(Host host,
                                polyglot.util.Position pos)

addLnPosTags

public static void addLnPosTags(Host host,
                                int sline,
                                int eline,
                                int spos,
                                int epos)

addPosTag

public static void addPosTag(Host host,
                             polyglot.util.Position pos)
Position Tag Adder


addMethodPosTag

public static void addMethodPosTag(Host meth,
                                   int start,
                                   int end)

addPosTag

public static void addPosTag(Host host,
                             int sc,
                             int ec)
Position Tag Adder


addMethodLineTag

public static void addMethodLineTag(Host host,
                                    int sline,
                                    int eline)

addLineTag

public static void addLineTag(Host host,
                              polyglot.ast.Node node)
Line Tag Adder


addLineTag

public static void addLineTag(Host host,
                              int sLine,
                              int eLine)
Line Tag Adder


getThis

public static Local getThis(Type sootType,
                            Body body,
                            HashMap getThisMap,
                            LocalGenerator lg)

getThisGivenOuter

public static Local getThisGivenOuter(Type sootType,
                                      HashMap getThisMap,
                                      Body body,
                                      LocalGenerator lg,
                                      Local t2)

getPrivateAccessFieldInvoke

public static Local getPrivateAccessFieldInvoke(SootMethodRef toInvoke,
                                                ArrayList params,
                                                Body body,
                                                LocalGenerator lg)

isSubType

public static boolean isSubType(polyglot.types.ClassType type,
                                polyglot.types.ClassType superType)

getSootType

public static Type getSootType(polyglot.types.Type type)
Type handling


getModifier

public static int getModifier(polyglot.types.Flags flags)
Modifier Creation