Package jflex.maven.plugin.cup
Class CliCupInvoker
java.lang.Object
jflex.maven.plugin.cup.CliCupInvoker
Wrapper around the dirty CUP API.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(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.
-
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
-