abc.weaving.weaver
Class CflowCodeGenUtils

java.lang.Object
  extended by abc.weaving.weaver.CflowCodeGenUtils

public class CflowCodeGenUtils
extends java.lang.Object

A class for generating code for the cflow operations. The cflow operations are:

push(locals)

pop()

peek()

isValid()

The nested (abstract) class CflowCodeGen encapsulates the code generation functions for these operations. Instances of CflowCodeGen are constructed using the nested CflowCodeGenFactory class, which picks the appropriate flavour of cflow codegen.

Author:
Damien Sereni

Nested Class Summary
static class CflowCodeGenUtils.CflowCodeGen
           
static class CflowCodeGenUtils.CflowCodeGenFactory
          A factory class for constructing Cflow CodeGen objects.
 
Constructor Summary
CflowCodeGenUtils()
           
 
Method Summary
static void addBasicClassesToSoot()
          Register all the classes that Cflow codegen might use with Soot
static void reset()
          Reset any static data used in the various cflow codegens
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CflowCodeGenUtils

public CflowCodeGenUtils()
Method Detail

addBasicClassesToSoot

public static void addBasicClassesToSoot()
Register all the classes that Cflow codegen might use with Soot


reset

public static void reset()
Reset any static data used in the various cflow codegens