org.codehaus.mojo.javascript.compress
Class ErrorReporter4Mojo

java.lang.Object
  extended by org.codehaus.mojo.javascript.compress.ErrorReporter4Mojo
All Implemented Interfaces:
org.mozilla.javascript.ErrorReporter

public class ErrorReporter4Mojo
extends java.lang.Object
implements org.mozilla.javascript.ErrorReporter


Constructor Summary
ErrorReporter4Mojo(JSCompressorLogger log, boolean jswarn)
           
 
Method Summary
 void error(java.lang.String message, java.lang.String sourceName, int line, java.lang.String lineSource, int lineOffset)
           
 int getErrorCnt()
           
 JSCompressorLogger getLogger()
           
 int getWarningCnt()
           
 org.mozilla.javascript.EvaluatorException runtimeError(java.lang.String message, java.lang.String sourceName, int line, java.lang.String lineSource, int lineOffset)
           
 void setDefaultFileName(java.lang.String v)
           
 void warning(java.lang.String message, java.lang.String sourceName, int line, java.lang.String lineSource, int lineOffset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorReporter4Mojo

public ErrorReporter4Mojo(JSCompressorLogger log,
                          boolean jswarn)
Method Detail

getLogger

public JSCompressorLogger getLogger()

setDefaultFileName

public void setDefaultFileName(java.lang.String v)

getErrorCnt

public int getErrorCnt()

getWarningCnt

public int getWarningCnt()

error

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

runtimeError

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

warning

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


Copyright © 2011 SOFTEC sa. All Rights Reserved.