org.codehaus.mojo.jflex
Class LexSimpleAnalyzer

java.lang.Object
  extended by org.codehaus.mojo.jflex.LexSimpleAnalyzer

public class LexSimpleAnalyzer
extends Object


Field Summary
static String DEFAULT_NAME
           
 
Constructor Summary
LexSimpleAnalyzer()
           
 
Method Summary
protected static ClassInfo guessPackageAndClass(File lexFile)
          Guess the package and class name, based on this grammar definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NAME

public static final String DEFAULT_NAME
See Also:
Constant Field Values
Constructor Detail

LexSimpleAnalyzer

public LexSimpleAnalyzer()
Method Detail

guessPackageAndClass

protected static ClassInfo guessPackageAndClass(File lexFile)
                                         throws FileNotFoundException,
                                                IOException
Guess the package and class name, based on this grammar definition. Does not overide the Mojo configuration if it exist.

Returns:
The name of the java code to generate. Credit goes to the authors of the maven-jlex-plugin
Throws:
IOException
FileNotFoundException - if the lex file does not exist


Copyright © 2007-2011. All Rights Reserved.