Class 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)
    • Constructor Detail

      • JFlexMojo

        public JFlexMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Generate java parsers from lexer definition files.

        This methods is checks parameters, sets options and calls JFlex.Main.generate()

        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException