Class CliCupInvoker

java.lang.Object
jflex.maven.plugin.cup.CliCupInvoker

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

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

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

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

    Modifier and Type
    Method
    Description
    (package private) static String[]
    buildArgv(String javaPackage, File outputDirectory, String parserClassName, String symClassName, boolean symbolInterface, String cupFileName)
     
    (package private) void
    invoke(String javaPackage, File outputDirectory, String parserClassName, String symClassName, boolean symbolInterface, String cupFileName)
    Invokes CUP.

    Methods inherited from class java.lang.Object

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

    • log

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

    • CliCupInvoker

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

    • invoke

      void invoke(String javaPackage, File outputDirectory, String parserClassName, String symClassName, boolean symbolInterface, String cupFileName) throws 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:
      Exception
    • buildArgv

      static String[] buildArgv(String javaPackage, File outputDirectory, String parserClassName, String symClassName, boolean symbolInterface, String cupFileName)