Package jflex.maven.plugin.cup
Class JavaUtils
java.lang.Object
jflex.maven.plugin.cup.JavaUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic File
Returns the path to associated with a Java package.static File
Returns the Java source file associated with a class name.static String
packageToPath
(String javaPackage)
-
Field Details
-
JAVA_FILE_EXT
Constant.java
.- See Also:
-
-
Constructor Details
-
JavaUtils
private JavaUtils()
-
-
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
.
-