Class CliCupInvoker


  • class CliCupInvoker
    extends java.lang.Object
    Wrapper around the dirty CUP API.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  CliCupInvoker.ArgBuilder  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.maven.plugin.logging.Log log  
    • Constructor Summary

      Constructors 
      Constructor Description
      CliCupInvoker​(org.apache.maven.plugin.logging.Log log)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static java.lang.String[] buildArgv​(java.lang.String javaPackage, java.io.File outputDirectory, java.lang.String parserClassName, java.lang.String symClassName, boolean symbolInterface, java.lang.String cupFileName)  
      (package private) void invoke​(java.lang.String javaPackage, java.io.File outputDirectory, java.lang.String parserClassName, java.lang.String symClassName, boolean symbolInterface, java.lang.String cupFileName)
      Invokes CUP.
      • Methods inherited from class java.lang.Object

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

      • log

        private final org.apache.maven.plugin.logging.Log log
    • Constructor Detail

      • CliCupInvoker

        CliCupInvoker​(org.apache.maven.plugin.logging.Log log)
    • Method Detail

      • invoke

        void invoke​(java.lang.String javaPackage,
                    java.io.File outputDirectory,
                    java.lang.String parserClassName,
                    java.lang.String symClassName,
                    boolean symbolInterface,
                    java.lang.String cupFileName)
             throws java.lang.Exception
        Invokes CUP.
        Parameters:
        javaPackage - Specify that the parser and sym classes are to be placed in the named package. By default, no package specification is put in the generated code (hence the classes default to the special "unnamed" package).
        outputDirectory - Directory in which to output the generated Java Parser.
        parserClassName - Output parser and action code into a file (and class) with the given name instead of the default of "parser".
        symClassName - Output the symbol constant code into a class with the given name instead of the default of "sym".
        symbolInterface - Output the symbol constant code as an interface rather than as a class.
        cupFileName - input specification.
        Throws:
        java.lang.Exception
      • buildArgv

        static java.lang.String[] buildArgv​(java.lang.String javaPackage,
                                            java.io.File outputDirectory,
                                            java.lang.String parserClassName,
                                            java.lang.String symClassName,
                                            boolean symbolInterface,
                                            java.lang.String cupFileName)