org.nanoko.coffee.mill.processors
Class JSLintProcessor

java.lang.Object
  extended by org.nanoko.coffee.mill.processors.DefaultProcessor
      extended by org.nanoko.coffee.mill.processors.JSLintProcessor
All Implemented Interfaces:
Processor

public class JSLintProcessor
extends DefaultProcessor

Validates a JS file using JSHint


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.nanoko.coffee.mill.processors.Processor
Processor.ProcessorException, Processor.ProcessorWarning
 
Field Summary
 
Fields inherited from class org.nanoko.coffee.mill.processors.DefaultProcessor
mojo, options
 
Constructor Summary
JSLintProcessor()
           
 
Method Summary
 boolean accept(File file)
           
 void fileCreated(File file)
           
 void fileUpdated(File file)
           
 void processAll()
           
 List<Processor.ProcessorWarning> validate(File file)
           
 
Methods inherited from class org.nanoko.coffee.mill.processors.DefaultProcessor
computeRelativeFile, configure, copyFileToDir, fileDeleted, getLog, isFileContainedInDirectory, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSLintProcessor

public JSLintProcessor()
Method Detail

processAll

public void processAll()
                throws Processor.ProcessorException
Specified by:
processAll in interface Processor
Overrides:
processAll in class DefaultProcessor
Throws:
Processor.ProcessorException

accept

public boolean accept(File file)
Specified by:
accept in interface Processor
Overrides:
accept in class DefaultProcessor

fileCreated

public void fileCreated(File file)
                 throws Processor.ProcessorException
Specified by:
fileCreated in interface Processor
Overrides:
fileCreated in class DefaultProcessor
Throws:
Processor.ProcessorException

fileUpdated

public void fileUpdated(File file)
                 throws Processor.ProcessorException
Specified by:
fileUpdated in interface Processor
Overrides:
fileUpdated in class DefaultProcessor
Throws:
Processor.ProcessorException

validate

public List<Processor.ProcessorWarning> validate(File file)


Copyright © 2012-2013 OW2. All Rights Reserved.