public class SACParserCSSmobileOKBasic1 extends Object implements SACParserCSSmobileOKBasic1Constants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
SACParserCSSmobileOKBasic1TokenManager |
token_source
Generated Token Manager.
|
ACTIVE_PSCLASS, ASTERISK, ATKEYWORD, CDC, CDO, COLON, COMMA, COMMENT, D, DEFAULT, DOT, EMS, EOF, EQUALS, ESCAPE, EXS, FIRST_LETTER, FIRST_LINE, GT, H, HASH, HNUM, IDENT, IMPORT_SYM, IMPORTANT_SYM, LBRACE, LENGTH_CM, LENGTH_IN, LENGTH_MM, LENGTH_PC, LENGTH_PT, LENGTH_PX, LINK_PSCLASS, LSQUARE, MEDIA_SYM, MINUS, NAME, NL, NMCHAR, NMSTART, NONASCII, NUM, NUMBER, PERCENTAGE, PLUS, Q11, Q12, Q13, Q14, Q15, Q16, RANGE, RBRACE, RGB, RROUND, RSQUARE, S, SEMICOLON, SLASH, STRING, STRING1, STRING2, tokenImage, UNICODE, UNICODERANGE, UNKNOWN, URL, VISITED_PSCLASS
Constructor and Description |
---|
SACParserCSSmobileOKBasic1() |
SACParserCSSmobileOKBasic1(CharStream stream)
Constructor with user supplied CharStream.
|
SACParserCSSmobileOKBasic1(SACParserCSSmobileOKBasic1TokenManager tm)
Constructor with generated Token Manager.
|
public SACParserCSSmobileOKBasic1TokenManager token_source
public Token token
public Token jj_nt
public SACParserCSSmobileOKBasic1()
public SACParserCSSmobileOKBasic1(CharStream stream)
public SACParserCSSmobileOKBasic1(SACParserCSSmobileOKBasic1TokenManager 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 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 void mediaRuleList() throws ParseException
ParseException
public final String medium() throws ParseException
ParseException
public final LexicalUnit operator(LexicalUnit prev) 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) throws ParseException
ParseException
public final SimpleSelector elementName() throws ParseException
ParseException
public final Condition pseudoClass(Condition pred) throws ParseException
ParseException
public final SimpleSelector pseudoElement() throws ParseException
ParseException
public final Condition hash(Condition pred) 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 rgb(LexicalUnit prev) throws ParseException
ParseException
public final LexicalUnit hexcolor(LexicalUnit prev) throws ParseException
ParseException
public void ReInit(CharStream stream)
public void ReInit(SACParserCSSmobileOKBasic1TokenManager 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.