Class JavaSourceUtil

java.lang.Object
com.fizzed.rocker.compiler.JavaSourceUtil

public class JavaSourceUtil extends Object
  • 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

      public static SourcePosition findSourcePositionInComment(String line)