|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.steadystate.css.parser.SACParserCSS2
public class SACParserCSS2
Field Summary | |
---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
SACParserCSS2TokenManager |
token_source
Generated Token Manager. |
Fields inherited from interface com.steadystate.css.parser.SACParserCSS2Constants |
---|
ANGLE_DEG, ANGLE_GRAD, ANGLE_RAD, ASTERISK, ATKEYWORD, CDC, CDO, CHARSET_SYM, COLON, COMMA, COMMENT, DASHMATCH, DEFAULT, DIMEN, DOT, EMS, EOF, EQUALS, ESCAPE, EXS, FONT_FACE_SYM, FREQ_HZ, FREQ_KHZ, FUNCTION, GT, H, HASH, HNUM, IDENT, IMPORT_SYM, IMPORTANT_SYM, INCLUDES, INHERIT, LBRACE, LENGTH_CM, LENGTH_IN, LENGTH_MM, LENGTH_PC, LENGTH_PT, LENGTH_PX, LSQUARE, MEDIA_SYM, MINUS, NAME, NL, NMCHAR, NMSTART, NONASCII, NUM, NUMBER, PAGE_SYM, PERCENTAGE, PLUS, Q11, Q12, Q13, Q14, Q15, Q16, RANGE, RBRACE, RGB, RROUND, RSQUARE, S, SEMICOLON, SLASH, STRING, STRING1, STRING2, TIME_MS, TIME_S, tokenImage, UNICODE, UNICODERANGE, UNKNOWN, URI, URL |
Constructor Summary | |
---|---|
SACParserCSS2()
|
|
SACParserCSS2(CharStream stream)
Constructor with user supplied CharStream. |
|
SACParserCSS2(SACParserCSS2TokenManager tm)
Constructor with generated Token Manager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.w3c.css.sac.Parser |
---|
parsePriority, parsePropertyValue, parseRule, parseSelectors, parseStyleDeclaration, parseStyleSheet, parseStyleSheet, setConditionFactory, setDocumentHandler, setErrorHandler, setLocale, setSelectorFactory |
Field Detail |
---|
public SACParserCSS2TokenManager token_source
public Token token
public Token jj_nt
Constructor Detail |
---|
public SACParserCSS2()
public SACParserCSS2(CharStream stream)
public SACParserCSS2(SACParserCSS2TokenManager tm)
Method Detail |
---|
public String getParserVersion()
getParserVersion
in interface Parser
protected String getGrammarUri()
protected Token getToken()
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 unknownRule() throws ParseException
ParseException
public final void importRule() throws ParseException
ParseException
public final void importRuleIgnored() 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 void mediaRuleSingle() throws ParseException
ParseException
public final String medium() throws ParseException
ParseException
public final void pageRule() 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 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 attrib(Condition pred) throws ParseException
ParseException
public final Condition pseudo(Condition pred) 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 function(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(SACParserCSS2TokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
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 setLocale(Locale locale)
setLocale
in interface Parser
protected Locale getLocale()
protected SelectorFactory getSelectorFactory()
public void setSelectorFactory(SelectorFactory selectorFactory)
setSelectorFactory
in interface Parser
protected ConditionFactory getConditionFactory()
public void setConditionFactory(ConditionFactory conditionFactory)
setConditionFactory
in interface Parser
protected ResourceBundle getSACParserMessages()
public Locator getLocator()
protected String add_escapes(String str)
protected CSSParseException toCSSParseException(String key, ParseException e)
protected CSSParseException toCSSParseException(TokenMgrError e)
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 handleIgnorableAtRule(String s)
protected void handleCharset(String characterEncoding)
protected void handleImportStyle(String uri, SACMediaList media, String defaultNamespaceURI)
protected void handleStartMedia(SACMediaList media)
protected void handleMedium(String medium)
protected void handleEndMedia(SACMediaList media)
protected void handleStartPage(String name, String pseudo_page)
protected void handleEndPage(String name, String pseudo_page)
protected void handleStartFontFace()
protected void handleEndFontFace()
protected void handleSelector(Selector selector)
protected void handleStartSelector(SelectorList selectors)
protected void handleEndSelector(SelectorList selectors)
protected void handleProperty(String name, LexicalUnit value, boolean important)
protected LexicalUnit functionInternal(LexicalUnit prev, Token t, LexicalUnit params)
protected LexicalUnit hexcolorInternal(LexicalUnit prev, Token t)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |