Class SourceCodeURLTool


  • public final class SourceCodeURLTool
    extends Object
    Author:
    snshor
    • Method Detail

      • printCodeAndError

        public static void printCodeAndError​(ILocation location,
                                             String src,
                                             PrintWriter pw)
        Prints source code fragment and underlines a fragment where an error had been occurred

        Openl Code Fragment:
        =======================
        Double getRAWPremium(Policy p)
        ^^^^^^
        =======================

        Parameters:
        location - source location
        src - source code
        pw - writer
      • printSourceLocation

        public static void printSourceLocation​(String sourceLocation,
                                               PrintWriter pw)