public class CSS2Parser extends java.lang.Object implements CSS2ParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
CSS2ParserTokenManager |
token_source
Generated Token Manager.
|
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, JSP, 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 and Description |
---|
CSS2Parser(CSS2ParserTokenManager tm)
Constructor with generated Token Manager.
|
CSS2Parser(java.io.InputStream stream)
Constructor with InputStream.
|
CSS2Parser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding
|
CSS2Parser(java.io.Reader stream)
Constructor.
|
public CSS2ParserTokenManager token_source
public Token token
public Token jj_nt
public CSS2Parser(java.io.InputStream stream)
public CSS2Parser(java.io.InputStream stream, java.lang.String encoding)
public CSS2Parser(java.io.Reader stream)
public CSS2Parser(CSS2ParserTokenManager tm)
public sidekick.util.Location getStartLocation(Token t)
public sidekick.util.Location getEndLocation(Token t)
public void setLineOffset(int offset)
public void setTabSize(int size)
public int getTabSize()
public void setProprietaryAsError(boolean b)
public java.util.List<sidekick.util.ParseError> getParseErrors()
public boolean notNull(java.lang.Object... args)
public final CSSNode styleSheet() throws ParseException
ParseException
public final java.util.List<CSSNode> styleSheetRuleList() throws ParseException
ParseException
public final CSSNode styleSheetRuleSingle() throws ParseException
ParseException
public final CSSNode charsetRule() throws ParseException
ParseException
public final CSSNode unknownRule() throws ParseException
ParseException
public final CSSNode importRule() throws ParseException
ParseException
public final CSSNode importRuleIgnored() throws ParseException
ParseException
public final CSSNode mediaRule() throws ParseException
ParseException
public final CSSNode mediaList() throws ParseException
ParseException
public final java.util.List<CSSNode> mediaRuleList() throws ParseException
ParseException
public final CSSNode mediaRuleSingle() throws ParseException
ParseException
public final CSSNode medium() throws ParseException
ParseException
public final CSSNode pageRule() throws ParseException
ParseException
public final CSSNode pseudoPage() throws ParseException
ParseException
public final CSSNode fontFaceRule() throws ParseException
ParseException
public final CSSNode operator() throws ParseException
ParseException
public final CSSNode combinator() throws ParseException
ParseException
public final CSSNode unaryOperator() throws ParseException
ParseException
public final CSSNode property() throws ParseException
ParseException
public final CSSNode styleRule() throws ParseException
ParseException
public final CSSNode selectorList() throws ParseException
ParseException
public final CSSNode selector() throws ParseException
ParseException
public final CSSNode simpleSelector() throws ParseException
ParseException
public final CSSNode _class() throws ParseException
ParseException
public final CSSNode elementName() throws ParseException
ParseException
public final CSSNode attrib() throws ParseException
ParseException
public final CSSNode pseudo() throws ParseException
ParseException
public final CSSNode hash() throws ParseException
ParseException
public final java.util.List<CSSNode> styleDeclaration() throws ParseException
ParseException
public final CSSNode declaration() throws ParseException
ParseException
public final CSSNode prio() throws ParseException
ParseException
public final CSSNode expr() throws ParseException
ParseException
public final CSSNode term() throws ParseException
ParseException
public final CSSNode function() throws ParseException
ParseException
public final CSSNode rgb() throws ParseException
ParseException
public final CSSNode hexcolor() throws ParseException
ParseException
public void ReInit(java.io.InputStream stream)
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
public void ReInit(java.io.Reader stream)
public void ReInit(CSS2ParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()