soot.javaToJimple
Class PolyglotMethodSource

java.lang.Object
  extended by soot.javaToJimple.PolyglotMethodSource
All Implemented Interfaces:
MethodSource
Direct Known Subclasses:
AnonClassInitMethodSource

public class PolyglotMethodSource
extends Object
implements MethodSource


Constructor Summary
PolyglotMethodSource()
           
PolyglotMethodSource(polyglot.ast.Block block, List formals)
           
 
Method Summary
 void addAssertInits(Body body)
           
 Body getBody(SootMethod sm, String phaseName)
          Returns a filled-out body for the given SootMethod.
 ArrayList<polyglot.ast.FieldDecl> getFieldInits()
           
 ArrayList<SootField> getFinalsList()
           
 ArrayList<polyglot.ast.Block> getInitializerBlocks()
           
 HashMap getNewToOuterMap()
           
 Local getOuterClassThisInit()
           
 ArrayList<polyglot.ast.FieldDecl> getStaticFieldInits()
           
 ArrayList<polyglot.ast.Block> getStaticInitializerBlocks()
           
 boolean hasAssert()
           
 void hasAssert(boolean val)
           
 void setFieldInits(ArrayList<polyglot.ast.FieldDecl> fieldInits)
           
 void setFinalsList(ArrayList<SootField> list)
           
 void setInitializerBlocks(ArrayList<polyglot.ast.Block> inits)
           
 void setJBB(AbstractJimpleBodyBuilder ajbb)
           
 void setNewToOuterMap(HashMap map)
           
 void setOuterClassThisInit(Local l)
           
 void setStaticFieldInits(ArrayList<polyglot.ast.FieldDecl> staticFieldInits)
           
 void setStaticInitializerBlocks(ArrayList<polyglot.ast.Block> staticInits)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolyglotMethodSource

public PolyglotMethodSource()

PolyglotMethodSource

public PolyglotMethodSource(polyglot.ast.Block block,
                            List formals)
Method Detail

getBody

public Body getBody(SootMethod sm,
                    String phaseName)
Description copied from interface: MethodSource
Returns a filled-out body for the given SootMethod.

Specified by:
getBody in interface MethodSource

setJBB

public void setJBB(AbstractJimpleBodyBuilder ajbb)

setFieldInits

public void setFieldInits(ArrayList<polyglot.ast.FieldDecl> fieldInits)

setStaticFieldInits

public void setStaticFieldInits(ArrayList<polyglot.ast.FieldDecl> staticFieldInits)

getFieldInits

public ArrayList<polyglot.ast.FieldDecl> getFieldInits()

getStaticFieldInits

public ArrayList<polyglot.ast.FieldDecl> getStaticFieldInits()

setStaticInitializerBlocks

public void setStaticInitializerBlocks(ArrayList<polyglot.ast.Block> staticInits)

setInitializerBlocks

public void setInitializerBlocks(ArrayList<polyglot.ast.Block> inits)

getStaticInitializerBlocks

public ArrayList<polyglot.ast.Block> getStaticInitializerBlocks()

getInitializerBlocks

public ArrayList<polyglot.ast.Block> getInitializerBlocks()

setOuterClassThisInit

public void setOuterClassThisInit(Local l)

getOuterClassThisInit

public Local getOuterClassThisInit()

hasAssert

public boolean hasAssert()

hasAssert

public void hasAssert(boolean val)

addAssertInits

public void addAssertInits(Body body)

setFinalsList

public void setFinalsList(ArrayList<SootField> list)

getFinalsList

public ArrayList<SootField> getFinalsList()

setNewToOuterMap

public void setNewToOuterMap(HashMap map)

getNewToOuterMap

public HashMap getNewToOuterMap()