Package jflex.maven.plugin.cup
Class JavaUtils
java.lang.Object
jflex.maven.plugin.cup.JavaUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileReturns the path to associated with a Java package.static FileReturns the Java source file associated with a class name.static StringpackageToPath(String javaPackage)
-
Method Details
-
packageToPath
-
file
Returns the Java source file associated with a class name.- Parameters:
srcDirectory- The root source directory, e.g./src.javaPackage- The java package, e.g.foo.bar.className- The Java class name, e.g.MyLexer.- Returns:
- source file associated with the class name.
-
directory
Returns the path to associated with a Java package.- Parameters:
srcDirectory- The root source directory, e.g./src.javaPackage- The java package, e.g.foo.bar.
-