com.github.wuic.engine.yuicompressor
Class JavascriptYuiCompressorErrorReporter

java.lang.Object
  extended by com.github.wuic.engine.yuicompressor.JavascriptYuiCompressorErrorReporter
All Implemented Interfaces:
org.mozilla.javascript.ErrorReporter

public class JavascriptYuiCompressorErrorReporter
extends Object
implements org.mozilla.javascript.ErrorReporter

ErrorReporter which logs warning and errors when some Javascript code is compressed using the YUI Compressor library.

Since:
0.1.0
Version:
1.1
Author:
Guillaume DROUET

Constructor Summary
JavascriptYuiCompressorErrorReporter()
           
 
Method Summary
 void error(String message, String sourceName, int line, String lineSource, int lineOffset)
          
 org.mozilla.javascript.EvaluatorException runtimeError(String message, String sourceName, int line, String lineSource, int lineOffset)
          
 void warning(String message, String sourceName, int line, String lineSource, int lineOffset)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavascriptYuiCompressorErrorReporter

public JavascriptYuiCompressorErrorReporter()
Method Detail

warning

public void warning(String message,
                    String sourceName,
                    int line,
                    String lineSource,
                    int lineOffset)

Specified by:
warning in interface org.mozilla.javascript.ErrorReporter

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


Copyright © 2012-2014. All Rights Reserved.