public static enum CSSParserFactory.SourceType extends Enum<CSSParserFactory.SourceType>
| Modifier and Type | Method and Description |
|---|---|
abstract org.antlr.runtime.tree.CommonTree |
getAST(CSSParser parser)
Creates AST tree for CSSTreeParser
|
abstract CSSInputStream |
getInput(Object source,
String encoding)
Creates input for CSSLexer
|
abstract StyleSheet |
parse(CSSTreeParser parser)
Creates StyleSheet from AST tree
|
static CSSParserFactory.SourceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CSSParserFactory.SourceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CSSParserFactory.SourceType INLINE
public static final CSSParserFactory.SourceType EMBEDDED
public static final CSSParserFactory.SourceType URL
public static CSSParserFactory.SourceType[] values()
for (CSSParserFactory.SourceType c : CSSParserFactory.SourceType.values()) System.out.println(c);
public static CSSParserFactory.SourceType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic abstract CSSInputStream getInput(Object source, String encoding) throws IOException
source - Source, either raw data (String) or URLIOException - When file is not found or other IO exception occurspublic abstract org.antlr.runtime.tree.CommonTree getAST(CSSParser parser) throws CSSException
parser - Source parserCSSException - When unrecoverable exception during parse occurs.
RuntimeException are also encapsulated at this pointpublic abstract StyleSheet parse(CSSTreeParser parser) throws CSSException
parser - ParserCSSException - When unrecoverable exception during parse occurs.
RuntimeException are also encapsulated at this pointCopyright © 2014. All rights reserved.