public class SACParserCSS3 extends Object implements SACParserCSS3Constants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
SACParserCSS3TokenManager |
token_source
Generated Token Manager.
|
A_LETTER, AND, ANGLE_DEG, ANGLE_GRAD, ANGLE_RAD, ASTERISK, ATKEYWORD, C_LETTER, CDC, CDO, CH, CHARSET_SYM, COLON, COMMA, COMMENT, COMMENT_, CUSTOM_PROPERTY_NAME, D_LETTER, DASHMATCH, DEFAULT, DIMENSION, DOT, E_LETTER, EMS, EOF, EQUALS, ESCAPE, EXS, F_LETTER, FONT_FACE_SYM, FREQ_HZ, FREQ_KHZ, FUNCTION, FUNCTION_CALC, FUNCTION_LANG, FUNCTION_NOT, FUNCTION_VAR, G_LETTER, GREATER, H, H_LETTER, H_PLACEHOLDER, HASH, HNUM, I_LETTER, IDENT, IMPORT_SYM, IMPORTANT_SYM, INCLUDES, INHERIT, K_LETTER, L_LETTER, LBRACE, LENGTH_CM, LENGTH_IN, LENGTH_MM, LENGTH_PC, LENGTH_PT, LENGTH_PX, LROUND, LSQUARE, M_LETTER, MEDIA_SYM, MINUS, N_LETTER, NAME, NL, NMCHAR, NMSTART, NONASCII, NOT, NUM, NUMBER, O_LETTER, ONLY, P_LETTER, PAGE_SYM, PERCENTAGE, PLUS, PREFIXMATCH, R_LETTER, RBRACE, REM, RESOLUTION_DPCM, RESOLUTION_DPI, RROUND, RSQUARE, S, S_LETTER, SEMICOLON, SLASH, STRING, STRING1, STRING2, SUBSTRINGMATCH, SUFFIXMATCH, T_LETTER, TILDE, TIME_MS, TIME_S, tokenImage, U_LETTER, UNICODE, UNICODE_RANGE, UNKNOWN, URI, URL, VH, VMAX, VMIN, VW, W, X_LETTER, Z_LETTER| Constructor and Description |
|---|
SACParserCSS3() |
SACParserCSS3(CharStream stream)
Constructor with user supplied CharStream.
|
SACParserCSS3(SACParserCSS3TokenManager tm)
Constructor with generated Token Manager.
|
public SACParserCSS3TokenManager token_source
public Token token
public Token jj_nt
public SACParserCSS3()
public SACParserCSS3(CharStream stream)
public SACParserCSS3(SACParserCSS3TokenManager tm)
public String getParserVersion()
getParserVersion in interface Parserprotected String getGrammarUri()
public final void styleSheet()
throws ParseException
ParseExceptionpublic final void styleSheetRuleList()
throws ParseException
ParseExceptionpublic final void styleSheetRuleSingle()
throws ParseException
ParseExceptionpublic final void charsetRule()
throws ParseException
ParseExceptionpublic final void unknownAtRule()
throws ParseException
ParseExceptionpublic final void importRule(boolean nonImportRuleFoundBefore)
throws ParseException
ParseExceptionpublic final void mediaRule()
throws ParseException
ParseExceptionpublic final void mediaList(SACMediaListImpl ml) throws ParseException
ParseExceptionpublic final MediaQuery mediaQuery() throws ParseException
ParseExceptionpublic final Property mediaExpression() throws ParseException
ParseExceptionpublic final void mediaRuleList()
throws ParseException
ParseExceptionpublic final String medium() throws ParseException
ParseExceptionpublic final void pageRule()
throws ParseException
ParseExceptionpublic final String pageSelectorList() throws ParseException
ParseExceptionpublic final String pageSelector() throws ParseException
ParseExceptionpublic final String pseudoPage() throws ParseException
ParseExceptionpublic final void fontFaceRule()
throws ParseException
ParseExceptionpublic final LexicalUnit operator(LexicalUnit prev) throws ParseException
ParseExceptionpublic final char combinator()
throws ParseException
ParseExceptionpublic final char unaryOperator()
throws ParseException
ParseExceptionpublic final String property() throws ParseException
ParseExceptionpublic final void styleRule()
throws ParseException
ParseExceptionpublic final SelectorList parseSelectorsInternal() throws ParseException
ParseExceptionpublic final SelectorList selectorList() throws ParseException
ParseExceptionpublic final Selector selector() throws ParseException
ParseExceptionpublic final Selector simpleSelector(Selector sel, char comb) throws ParseException
ParseExceptionpublic final Condition _class(Condition pred, boolean pseudoElementFound) throws ParseException
ParseExceptionpublic final SimpleSelector elementName() throws ParseException
ParseExceptionpublic final Condition attrib(Condition pred, boolean pseudoElementFound) throws ParseException
ParseExceptionpublic final Object pseudo(Condition pred, boolean pseudoElementFound) throws ParseException
ParseExceptionpublic final Condition hash(Condition pred, boolean pseudoElementFound) throws ParseException
ParseExceptionpublic final void styleDeclaration()
throws ParseException
ParseExceptionpublic final void declaration()
throws ParseException
ParseExceptionpublic final boolean prio()
throws ParseException
ParseExceptionpublic final LexicalUnit expr() throws ParseException
ParseExceptionpublic final LexicalUnit term(LexicalUnit prev) throws ParseException
ParseExceptionpublic final LexicalUnit function(LexicalUnit prev) throws ParseException
ParseExceptionpublic final LexicalUnit calc(LexicalUnit prev) throws ParseException
ParseExceptionpublic final LexicalUnit calcSum(LexicalUnit prev) throws ParseException
ParseExceptionpublic final LexicalUnit calcProduct(LexicalUnit prev) throws ParseException
ParseExceptionpublic final LexicalUnit calcValue(LexicalUnit prev) throws ParseException
ParseExceptionpublic final LexicalUnit calcNumberSum(LexicalUnit prev) throws ParseException
ParseExceptionpublic final LexicalUnit calcNumberProduct(LexicalUnit prev) throws ParseException
ParseExceptionpublic final LexicalUnit calcNumberValue(LexicalUnit prev) throws ParseException
ParseExceptionpublic final LexicalUnit var(LexicalUnit prev) throws ParseException
ParseExceptionpublic final Selector negation_arg() throws ParseException
ParseExceptionpublic final LexicalUnit number(LexicalUnit prev, char op) throws ParseException
ParseExceptionpublic final LexicalUnit percentage(LexicalUnit prev, char op) throws ParseException
ParseExceptionpublic final LexicalUnit dimension(LexicalUnit prev, char op) throws ParseException
ParseExceptionpublic final LexicalUnit unicodeRange(LexicalUnit prev) throws ParseException
ParseExceptionpublic final LexicalUnit hexcolor(LexicalUnit prev) throws ParseException
ParseExceptionpublic void ReInit(CharStream stream)
public void ReInit(SACParserCSS3TokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final boolean trace_enabled()
public final void enable_tracing()
public final void disable_tracing()
protected DocumentHandlerExt getDocumentHandler()
public void setDocumentHandler(DocumentHandler handler)
setDocumentHandler in interface Parserprotected ErrorHandler getErrorHandler()
public void setErrorHandler(ErrorHandler eh)
setErrorHandler in interface Parserprotected InputSource getInputSource()
public void setIeStarHackAccepted(boolean accepted)
setIeStarHackAccepted in interface SACParserpublic boolean isIeStarHackAccepted()
isIeStarHackAccepted in interface SACParserprotected Locale getLocale()
protected SelectorFactoryExt getSelectorFactory()
public void setSelectorFactory(SelectorFactory selectorFactory)
setSelectorFactory in interface Parserprotected ConditionFactoryExt getConditionFactory()
public void setConditionFactory(ConditionFactory conditionFactory)
setConditionFactory in interface Parserprotected ResourceBundle getSACParserMessages()
protected CSSParseException toCSSParseException(String key, ParseException e)
protected CSSParseException toCSSParseException(DOMException e)
protected CSSParseException toCSSParseException(TokenMgrError e)
protected CSSParseException toCSSParseException(String messageKey, Object[] msgParams, Locator locator)
protected CSSParseException createSkipWarning(String key, CSSParseException e)
public void parseStyleSheet(InputSource source) throws IOException
parseStyleSheet in interface ParserIOExceptionpublic void parseStyleSheet(String uri) throws IOException
parseStyleSheet in interface ParserIOExceptionpublic void parseStyleDeclaration(InputSource source) throws IOException
parseStyleDeclaration in interface ParserIOExceptionpublic void parseRule(InputSource source) throws IOException
parseRule in interface ParserIOExceptionpublic SelectorList parseSelectors(InputSource source) throws IOException
parseSelectors in interface ParserIOExceptionpublic LexicalUnit parsePropertyValue(InputSource source) throws IOException
parsePropertyValue in interface ParserIOExceptionpublic boolean parsePriority(InputSource source) throws IOException
parsePriority in interface ParserIOExceptionpublic SACMediaList parseMedia(InputSource source) throws IOException
IOExceptionprotected void handleStartDocument()
protected void handleEndDocument()
protected void handleImportStyle(String uri, SACMediaList media, String defaultNamespaceURI, Locator locator)
protected void handleStartMedia(SACMediaList media, Locator locator)
protected void handleEndMedia(SACMediaList media)
protected void handleStartFontFace(Locator locator)
protected void handleEndFontFace()
protected void handleSelector(Selector selector)
protected void handleStartSelector(SelectorList selectors, Locator locator)
protected void handleEndSelector(SelectorList selectors)
protected void handleProperty(String name, LexicalUnit value, boolean important, Locator locator)
protected LexicalUnit functionInternal(LexicalUnit prev, String funct, LexicalUnit params)
protected LexicalUnit hexcolorInternal(LexicalUnit prev, Token t)
public String unescape(String s, boolean unescapeDoubleQuotes)
Copyright © 1999–2022. All rights reserved.