Class CFGBuilderFactory


  • public class CFGBuilderFactory
    extends java.lang.Object
    Factory object to create CFGBuilders for methods. Using a CFGBuilderFactory is preferable to direct instantiation of CFGBuilders, because it gives us an easy hook for plugging in new CFGBuilder implementations. (CFGs for Java are a little tricky to get right.)
    Author:
    David Hovemeyer
    See Also:
    CFG, CFGBuilder
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static CFGBuilder create​(MethodDescriptor descriptor, org.apache.bcel.generic.MethodGen methodGen)
      Create a CFGBuilder to build a CFG for given method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CFGBuilderFactory

        public CFGBuilderFactory()
    • Method Detail

      • create

        public static CFGBuilder create​(@Nonnull
                                        MethodDescriptor descriptor,
                                        @Nonnull
                                        org.apache.bcel.generic.MethodGen methodGen)
        Create a CFGBuilder to build a CFG for given method.
        Parameters:
        methodGen - the method
        Returns:
        a CFGBuilder for the method