|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectro.isdc.wro.extensions.processor.js.AbstractLinterProcessor
@SupportedResourceType(value=JS) public abstract class AbstractLinterProcessor
Processor which analyze the js code and warns you about any problems. The processing result won't change no matter if the processed script contains errors or not.
| Constructor Summary | |
|---|---|
AbstractLinterProcessor()
|
|
| Method Summary | |
|---|---|
protected String |
createDefaultOptions()
|
protected abstract AbstractLinter |
newLinter()
|
protected void |
onException(WroRuntimeException e)
Invoked when a processing exception occurs. |
protected void |
onLinterException(LinterException e,
Resource resource)
Called when LinterException is thrown. |
void |
process(Reader reader,
Writer writer)
|
void |
process(Resource resource,
Reader reader,
Writer writer)
|
AbstractLinterProcessor |
setOptions(String... options)
Deprecated. |
AbstractLinterProcessor |
setOptionsAsString(String options)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractLinterProcessor()
| Method Detail |
|---|
public void process(Resource resource,
Reader reader,
Writer writer)
throws IOException
process in interface ResourcePreProcessorIOExceptionprotected void onException(WroRuntimeException e)
public void process(Reader reader,
Writer writer)
throws IOException
process in interface ResourcePostProcessorIOException
protected void onLinterException(LinterException e,
Resource resource)
LinterException is thrown. Allows subclasses to re-throw this exception as a
RuntimeException or handle it differently. The default implementation simply logs the errors.
e - LinterException which has occurred.resource - the processed resource which caused the exception.protected String createDefaultOptions()
public AbstractLinterProcessor setOptionsAsString(String options)
options - comma separated list of options.@Deprecated public AbstractLinterProcessor setOptions(String... options)
setOptionsAsString(String) instead.
protected abstract AbstractLinter newLinter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||