@SupportedResourceType(value=CSS) public class CssLintProcessor extends Object implements ResourcePreProcessor, ResourcePostProcessor
://github.com/stubbornella/csslint.| Constructor and Description |
|---|
CssLintProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createDefaultOptions() |
protected CssLint |
newCssLint() |
protected void |
onCssLintException(CssLintException e,
Resource resource)
Called when
CssLintException is thrown. |
protected void |
onException(WroRuntimeException e)
Invoked when an unexpected exception occurred during processing.
|
void |
process(Reader reader,
Writer writer) |
void |
process(Resource resource,
Reader reader,
Writer writer) |
CssLintProcessor |
setOptions(String... options)
Deprecated.
|
CssLintProcessor |
setOptionsAsString(String options) |
public static final String ALIAS
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 onCssLintException(CssLintException e, Resource resource)
CssLintException is thrown. Allows subclasses to re-throw this exception as a
RuntimeException or handle it differently.e - CssLintException which has occurred.resource - the processed resource which caused the exception.public CssLintProcessor setOptionsAsString(String options)
options - a CSV representation of options.@Deprecated public CssLintProcessor setOptions(String... options)
setOptionsAsString(String) instead.protected String createDefaultOptions()
Copyright © 2008-2013. All Rights Reserved.