fnug.util
Class JSLintWrapper

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

public class JSLintWrapper
extends Object

Wrapper around wro4j jslinter.


Constructor Summary
JSLintWrapper(String args)
          Construct passing the configuration arguments.
 
Method Summary
 String 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 String lint(String systemId,
                   String javaScript)
Check for problems in JavaScript source.

Parameters:
systemId - a filename
javaScript - a String of JavaScript source code.
Returns:
a lint result html string.


Copyright © 2012. All Rights Reserved.