java.lang.Object
net.alchim31.maven.yuicompressor.ErrorReporter4Mojo
All Implemented Interfaces:
org.mozilla.javascript.ErrorReporter

public class ErrorReporter4Mojo extends Object implements org.mozilla.javascript.ErrorReporter
The Class ErrorReporter4Mojo.
  • Constructor Details

    • ErrorReporter4Mojo

      public ErrorReporter4Mojo(org.apache.maven.plugin.logging.Log log, boolean jswarn, org.codehaus.plexus.build.BuildContext buildContext)
      Instantiates a new error reporter 4 mojo.
      Parameters:
      log - the log
      jswarn - the jswarn
      buildContext - the build context
  • Method Details

    • setDefaultFileName

      public void setDefaultFileName(String v)
      Sets the default file name.
      Parameters:
      v - the new default file name
    • getErrorCnt

      public int getErrorCnt()
      Gets the error cnt.
      Returns:
      the error cnt
    • getWarningCnt

      public int getWarningCnt()
      Gets the warning cnt.
      Returns:
      the warning cnt
    • error

      public void error(String message, String sourceName, int line, String lineSource, int lineOffset)
      Specified by:
      error in interface org.mozilla.javascript.ErrorReporter
    • runtimeError

      public org.mozilla.javascript.EvaluatorException runtimeError(String message, String sourceName, int line, String lineSource, int lineOffset)
      Specified by:
      runtimeError in interface org.mozilla.javascript.ErrorReporter
    • warning

      public void warning(String message, String sourceName, int line, String lineSource, int lineOffset)
      Specified by:
      warning in interface org.mozilla.javascript.ErrorReporter
    • setFile

      public void setFile(File file)
      Sets the file.
      Parameters:
      file - the new file