Class RewriterFactory


  • public class RewriterFactory
    extends Object
    Implements the rewriter factory class. The rewriter factory class is responsible for choosing and creating the corresponding rewriter object.
    Version:
    1.0
    Author:
    Kleanthi Georgala (georgala@informatik.uni-leipzig.de)
    • Constructor Detail

      • RewriterFactory

        public RewriterFactory()
    • Method Detail

      • getDefaultRewriter

        public static Rewriter getDefaultRewriter()
        Returns:
        default rewriter implementation
      • getRewriterType

        public static RewriterFactory.RewriterType getRewriterType​(String name)
        Factory function for retrieving an rewriter name from the set of allowed types.
        Parameters:
        name - , The name/type of the rewriter.
        Returns:
        a specific rewriter type
      • getRewriter

        public static Rewriter getRewriter​(RewriterFactory.RewriterType type)
        Factory function for retrieving the desired rewriter instance.
        Parameters:
        type - , type of the Rewriter
        Returns:
        a specific rewriter instance