@SupportedResourceType(value=JS) public abstract class AbstractLinterProcessor extends Object implements ResourcePreProcessor, ResourcePostProcessor
| Constructor and Description |
|---|
AbstractLinterProcessor() |
| Modifier and Type | Method and Description |
|---|---|
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) |
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 ResourcePostProcessorIOExceptionprotected 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)
@Deprecated public AbstractLinterProcessor setOptions(String... options)
setOptionsAsString(String) instead.protected abstract AbstractLinter newLinter()
Copyright © 2008-2013. All Rights Reserved.