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 Parser
protected String getGrammarUri()
public final void styleSheet() throws ParseException
ParseException
public final void styleSheetRuleList() throws ParseException
ParseException
public final void styleSheetRuleSingle() throws ParseException
ParseException
public final void charsetRule() throws ParseException
ParseException
public final void unknownAtRule() throws ParseException
ParseException
public final void importRule(boolean nonImportRuleFoundBefore) throws ParseException
ParseException
public final void mediaRule() throws ParseException
ParseException
public final void mediaList(SACMediaListImpl ml) throws ParseException
ParseException
public final MediaQuery mediaQuery() throws ParseException
ParseException
public final Property mediaExpression() throws ParseException
ParseException
public final void mediaRuleList() throws ParseException
ParseException
public final String medium() throws ParseException
ParseException
public final void pageRule() throws ParseException
ParseException
public final String pageSelectorList() throws ParseException
ParseException
public final String pageSelector() throws ParseException
ParseException
public final String pseudoPage() throws ParseException
ParseException
public final void fontFaceRule() throws ParseException
ParseException
public final LexicalUnit operator(LexicalUnit prev) throws ParseException
ParseException
public final char combinator() throws ParseException
ParseException
public final char unaryOperator() throws ParseException
ParseException
public final String property() throws ParseException
ParseException
public final void styleRule() throws ParseException
ParseException
public final SelectorList parseSelectorsInternal() throws ParseException
ParseException
public final SelectorList selectorList() throws ParseException
ParseException
public final Selector selector() throws ParseException
ParseException
public final Selector simpleSelector(Selector sel, char comb) throws ParseException
ParseException
public final Condition _class(Condition pred, boolean pseudoElementFound) throws ParseException
ParseException
public final SimpleSelector elementName() throws ParseException
ParseException
public final Condition attrib(Condition pred, boolean pseudoElementFound) throws ParseException
ParseException
public final Object pseudo(Condition pred, boolean pseudoElementFound) throws ParseException
ParseException
public final Condition hash(Condition pred, boolean pseudoElementFound) throws ParseException
ParseException
public final void styleDeclaration() throws ParseException
ParseException
public final void declaration() throws ParseException
ParseException
public final boolean prio() throws ParseException
ParseException
public final LexicalUnit expr() throws ParseException
ParseException
public final LexicalUnit term(LexicalUnit prev) throws ParseException
ParseException
public final LexicalUnit function(LexicalUnit prev) throws ParseException
ParseException
public final LexicalUnit calc(LexicalUnit prev) throws ParseException
ParseException
public final LexicalUnit calcSum(LexicalUnit prev) throws ParseException
ParseException
public final LexicalUnit calcProduct(LexicalUnit prev) throws ParseException
ParseException
public final LexicalUnit calcValue(LexicalUnit prev) throws ParseException
ParseException
public final LexicalUnit calcNumberSum(LexicalUnit prev) throws ParseException
ParseException
public final LexicalUnit calcNumberProduct(LexicalUnit prev) throws ParseException
ParseException
public final LexicalUnit calcNumberValue(LexicalUnit prev) throws ParseException
ParseException
public final LexicalUnit var(LexicalUnit prev) throws ParseException
ParseException
public final Selector negation_arg() throws ParseException
ParseException
public final LexicalUnit number(LexicalUnit prev, char op) throws ParseException
ParseException
public final LexicalUnit percentage(LexicalUnit prev, char op) throws ParseException
ParseException
public final LexicalUnit dimension(LexicalUnit prev, char op) throws ParseException
ParseException
public final LexicalUnit unicodeRange(LexicalUnit prev) throws ParseException
ParseException
public final LexicalUnit hexcolor(LexicalUnit prev) throws ParseException
ParseException
public 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 Parser
protected ErrorHandler getErrorHandler()
public void setErrorHandler(ErrorHandler eh)
setErrorHandler
in interface Parser
protected InputSource getInputSource()
public void setIeStarHackAccepted(boolean accepted)
setIeStarHackAccepted
in interface SACParser
public boolean isIeStarHackAccepted()
isIeStarHackAccepted
in interface SACParser
protected Locale getLocale()
protected SelectorFactoryExt getSelectorFactory()
public void setSelectorFactory(SelectorFactory selectorFactory)
setSelectorFactory
in interface Parser
protected ConditionFactoryExt getConditionFactory()
public void setConditionFactory(ConditionFactory conditionFactory)
setConditionFactory
in interface Parser
protected 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 Parser
IOException
public void parseStyleSheet(String uri) throws IOException
parseStyleSheet
in interface Parser
IOException
public void parseStyleDeclaration(InputSource source) throws IOException
parseStyleDeclaration
in interface Parser
IOException
public void parseRule(InputSource source) throws IOException
parseRule
in interface Parser
IOException
public SelectorList parseSelectors(InputSource source) throws IOException
parseSelectors
in interface Parser
IOException
public LexicalUnit parsePropertyValue(InputSource source) throws IOException
parsePropertyValue
in interface Parser
IOException
public boolean parsePriority(InputSource source) throws IOException
parsePriority
in interface Parser
IOException
public SACMediaList parseMedia(InputSource source) throws IOException
IOException
protected 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.