Package com.fizzed.rocker.compiler
Class JavaSourceUtil
- java.lang.Object
-
- com.fizzed.rocker.compiler.JavaSourceUtil
-
public class JavaSourceUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description JavaSourceUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SourcePositionfindSourcePosition(java.io.File javaFile, int lineNumber, int columnNumber)Finds the template source reference embedded within the the prior two lines from the generate Java source.static SourcePositionfindSourcePositionInComment(java.lang.String line)
-
-
-
Method Detail
-
findSourcePosition
public static SourcePosition findSourcePosition(java.io.File javaFile, int lineNumber, int columnNumber) throws java.io.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:
java.io.IOException
-
findSourcePositionInComment
public static SourcePosition findSourcePositionInComment(java.lang.String line)
-
-