fnug.util
Class JSLintWrapper

java.lang.Object
  extended by fnug.util.JSLintWrapper

public class JSLintWrapper
extends Object

Wrapper around JSLint4Java since that package doesn't manage the rhino Context thread local appropriately.


Constructor Summary
JSLintWrapper(String... args)
          Construct passing the configuration arguments.
 
Method Summary
 com.googlecode.jslint4java.JSLintResult lint(String systemId, String javaScript)
          Check for problems in JavaScript source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSLintWrapper

public JSLintWrapper(String... args)
Construct passing the configuration arguments.

Parameters:
args - configs
Method Detail

lint

public com.googlecode.jslint4java.JSLintResult lint(String systemId,
                                                    String javaScript)
Check for problems in JavaScript source.

Parameters:
systemId - a filename
javaScript - a String of JavaScript source code.
Returns:
a JSLintResult.


Copyright © 2012. All Rights Reserved.