Class JFlexMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
jflex.maven.plugin.jflex.JFlexMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="generate",
defaultPhase=GENERATE_SOURCES,
threadSafe=false)
public class JFlexMojo
extends org.apache.maven.plugin.AbstractMojo
Generates lexical scanners from one or more JFlex grammar files.
- Author:
- Régis Décamps (decamps@users.sf.net)
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Generate java parsers from lexer definition files.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
JFlexMojo
public JFlexMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionGenerate java parsers from lexer definition files.This methods is checks parameters, sets options and calls JFlex.Main.generate()
- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-