Class 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 SourcePosition findSourcePosition​(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 SourcePosition findSourcePositionInComment​(java.lang.String line)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JavaSourceUtil

        public JavaSourceUtil()
    • 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)