Package com.fizzed.rocker.compiler
Class JavaSourceUtil
java.lang.Object
com.fizzed.rocker.compiler.JavaSourceUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SourcePositionfindSourcePosition(File javaFile, int lineNumber, int columnNumber) Finds the template source reference embedded within the the prior two lines from the generate Java source.static SourcePosition
-
Constructor Details
-
JavaSourceUtil
public JavaSourceUtil()
-
-
Method Details
-
findSourcePosition
public static SourcePosition findSourcePosition(File javaFile, int lineNumber, int columnNumber) throws IOException Finds the template source reference embedded within the the prior two lines from the generate Java source. Allows matching compilation errors from the generate Java source to the underlying Rocker template.- Parameters:
javaFile-lineNumber-columnNumber-- Returns:
- Throws:
IOException
-
findSourcePositionInComment
-