soot.javaToJimple
Class InitialResolver
java.lang.Object
soot.javaToJimple.InitialResolver
- public class InitialResolver
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InitialResolver
public InitialResolver(soot.Singletons.Global g)
setJBBFactory
public void setJBBFactory(AbstractJBBFactory jbbFactory)
getJBBFactory
public AbstractJBBFactory getJBBFactory()
hasASTForSootName
public boolean hasASTForSootName(String name)
- returns true if there is an AST avail for given soot class
setASTForSootName
public void setASTForSootName(String name)
- sets AST for given soot class if possible
v
public static InitialResolver v()
formAst
public void formAst(String fullPath,
List locations)
- Invokes polyglot and gets the AST for the source given in fullPath
setAst
public void setAst(polyglot.ast.Node ast)
- if you have a special AST set it here then call resolveFormJavaFile
on the soot class
addNameToAST
protected void addNameToAST(String name)
- add name to AST to map - used mostly for inner and non public
top-level classes
resolveAST
public void resolveAST()
resolveFromJavaFile
public List resolveFromJavaFile(SootClass sc)
getNextAnonNum
protected int getNextAnonNum()
hasClassInnerTag
public boolean hasClassInnerTag(SootClass sc,
String innerName)
isAnonInCCall
public boolean isAnonInCCall(polyglot.types.ClassType anonType)
getAnonClassMap
public BiMap getAnonClassMap()
getLocalClassMap
public BiMap getLocalClassMap()
getAnonTypeMap
public HashMap getAnonTypeMap()
getLocalTypeMap
public HashMap getLocalTypeMap()
finalLocalInfo
public HashMap finalLocalInfo()
getNextPrivateAccessCounter
public int getNextPrivateAccessCounter()
getHasOuterRefInInit
public ArrayList getHasOuterRefInInit()
setHasOuterRefInInit
public void setHasOuterRefInInit(ArrayList list)
specialAnonMap
public HashMap specialAnonMap()
setSpecialAnonMap
public void setSpecialAnonMap(HashMap map)
hierarchy
public void hierarchy(FastHierarchy fh)
hierarchy
public FastHierarchy hierarchy()
getInnerClassInfoMap
public HashMap getInnerClassInfoMap()
setInnerClassInfoMap
public void setInnerClassInfoMap(HashMap map)
classToSourceMap
protected HashMap classToSourceMap()
addToPrivateFieldGetAccessMap
public void addToPrivateFieldGetAccessMap(polyglot.ast.Field field,
SootMethod meth)
getPrivateFieldGetAccessMap
public HashMap getPrivateFieldGetAccessMap()
addToPrivateFieldSetAccessMap
public void addToPrivateFieldSetAccessMap(polyglot.ast.Field field,
SootMethod meth)
getPrivateFieldSetAccessMap
public HashMap getPrivateFieldSetAccessMap()
addToPrivateMethodGetAccessMap
public void addToPrivateMethodGetAccessMap(polyglot.ast.Call call,
SootMethod meth)
getPrivateMethodGetAccessMap
public HashMap getPrivateMethodGetAccessMap()
getInterfacesList
public ArrayList getInterfacesList()