Class GssParser
- java.lang.Object
-
- com.google.common.css.compiler.ast.AbstractGssParser
-
- com.google.common.css.compiler.ast.GssParser
-
public class GssParser extends AbstractGssParser
A wrapper around the JavaCC generated GSS parser.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.css.compiler.ast.AbstractGssParser
AbstractGssParser.ParseResult
-
-
Field Summary
-
Fields inherited from class com.google.common.css.compiler.ast.AbstractGssParser
EMPTY_CHAR_STREAM
-
-
Constructor Summary
Constructors Constructor Description GssParser(SourceCode source)GssParser(java.util.List<SourceCode> sources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<GssParserException>getHandledErrors()Returns errors from previous call to parse().protected GssParserCCgetParser()Implementations must return an emptyGssParserCCobject.CssTreeparse()CssTreeparse(boolean errorHandling)-
Methods inherited from class com.google.common.css.compiler.ast.AbstractGssParser
parseInternal
-
-
-
-
Constructor Detail
-
GssParser
public GssParser(java.util.List<SourceCode> sources)
-
GssParser
public GssParser(SourceCode source)
-
-
Method Detail
-
parse
public CssTree parse() throws GssParserException
- Throws:
GssParserException
-
parse
public CssTree parse(boolean errorHandling) throws GssParserException
- Throws:
GssParserException
-
getHandledErrors
public java.util.List<GssParserException> getHandledErrors()
Returns errors from previous call to parse().
-
getParser
protected GssParserCC getParser()
Description copied from class:AbstractGssParserImplementations must return an emptyGssParserCCobject. Whether this object is actually new or not isn't important which allows pooling.- Specified by:
getParserin classAbstractGssParser
-
-