public class ParserCSS30 extends AbstractParserCSS implements ParserCSS30TreeConstants, ParserCSS30Constants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
protected JJTParserCSS30State |
jjtree |
Token |
token
Current token.
|
ParserCSS30TokenManager |
token_source
Generated Token Manager.
|
m_aCustomErrorHandler, m_bBrowserCompliantMode
JJTATTRIB, JJTATTRIBOPERATOR, JJTATTRIBVALUE, JJTCHARSETRULE, JJTCLASS, JJTELEMENTNAME, JJTERRORSKIPTO, JJTEXPR, JJTEXPROPERATOR, JJTEXPRTERM, JJTFONTFACERULE, JJTFUNCTION, JJTHASH, JJTIMPORTANT, JJTIMPORTRULE, JJTINVALID, JJTKEYFRAMESIDENTIFIER, JJTKEYFRAMESRULE, JJTKEYFRAMESSELECTOR, JJTLINENAME, JJTLINENAMES, JJTMATH, JJTMATHPRODUCT, JJTMATHPRODUCTOPERATOR, JJTMATHSUMOPERATOR, JJTMATHUNIT, JJTMEDIAEXPR, JJTMEDIAFEATURE, JJTMEDIALIST, JJTMEDIAMODIFIER, JJTMEDIAQUERY, JJTMEDIARULE, JJTMEDIUM, JJTNAMESPACEPREFIX, JJTNAMESPACERULE, JJTNAMESPACERULEPREFIX, JJTNAMESPACERULEURL, JJTNEGATION, jjtNodeName, JJTNTH, JJTPAGEMARGINSYMBOL, JJTPAGERULE, JJTPAGERULEBLOCK, JJTPAGESELECTOR, JJTPROPERTY, JJTPSEUDO, JJTROOT, JJTSELECTOR, JJTSELECTORCOMBINATOR, JJTSINGLEKEYFRAMESELECTOR, JJTSTYLEDECLARATION, JJTSTYLEDECLARATIONLIST, JJTSTYLERULE, JJTSUPPORTSCONDITION, JJTSUPPORTSCONDITIONINPARENS, JJTSUPPORTSCONDITIONOPERATOR, JJTSUPPORTSNEGATION, JJTSUPPORTSRULE, JJTUNKNOWNRULE, JJTUNKNOWNRULEBODY, JJTUNKNOWNRULEPARAMETERLIST, JJTURL, JJTVIEWPORTRULE, JJTVOID
AND_SYM, ANGLE_DEG, ANGLE_GRAD, ANGLE_RAD, ANGLE_TURN, ASTERISK, AT_UNKNOWN, BOTTOMCENTER_SYM, BOTTOMLEFT_SYM, BOTTOMLEFTCORNER_SYM, BOTTOMRIGHT_SYM, BOTTOMRIGHTCORNER_SYM, CDC, CDO, CH, CHARSET_SYM, COLON, COMMA, DASH, DASHMATCH, DEFAULT, DOT, DPCM, DPI, DPPX, EM, EOF, EQUALS, ESCAPE, ESCAPE_OTHER, ESCAPE_UNICODE, EVEN, EX, FONTFACE_SYM, FR, FREQ_HZ, FREQ_KHZ, FROM_SYM, FUNCTION, FUNCTION_CALC, FUNCTION_EXPRESSION, FUNCTION_NOT, FUNCTION_NTH, GREATER, H, HASH, HNUM, IDENT, IMPORT_SYM, IMPORTANT_SYM, IN_COMMENT, IN_NTH, IN_UNKNOWN_RULE, INCLUDES, INHERIT, INTEGER, INVALID_STRING1, INVALID_STRING2, KEYFRAMES_SYM, LBRACE, LEFTBOTTOM_SYM, LEFTMIDDLE_SYM, LEFTTOP_SYM, LENGTH_CM, LENGTH_IN, LENGTH_MM, LENGTH_PC, LENGTH_PT, LENGTH_Q, LROUND, LSQUARE, MEDIA_SYM, MINUS, N, NAME, NAMESPACE_SYM, NMCHAR, NMSTART, NONASCII, NOT_SYM, NUM, NUMBER, ODD, ONLY_SYM, OR_SYM, PAGE_SYM, PERCENTAGE, PLUS, PREFIXMATCH, PX, RBRACE, REM, RIGHTBOTTOM_SYM, RIGHTMIDDLE_SYM, RIGHTTOP_SYM, RROUND, RSQUARE, S, SEMICOLON, SINGLE_LINE_COMMENT, SLASH, STRING_EOL, STRING1, STRING2, SUBFIXMATCH, SUBSTRINGMATCH, SUPPORTS_SYM, TILDE, TIME_MS, TIME_S, TO_SYM, tokenImage, TOPCENTER_SYM, TOPLEFT_SYM, TOPLEFTCORNER_SYM, TOPRIGHT_SYM, TOPRIGHTCORNER_SYM, UNKNOWN, URANGE, URANGE_H, URANGE_PLACEHOLDER, URL, URL_CONTENT, URLCHAR, VH, VIEWPORT_SYM, VMAX, VMIN, VW, W
Constructor and Description |
---|
ParserCSS30(CharStream stream)
Constructor with user supplied CharStream.
|
ParserCSS30(ParserCSS30TokenManager tm)
Constructor with generated Token Manager.
|
getCustomErrorHandler, isBrowserCompliantMode, jjtreeCloseNodeScope, jjtreeOpenNodeScope, setBrowserCompliantMode, setCustomErrorHandler
protected JJTParserCSS30State jjtree
public ParserCSS30TokenManager token_source
public Token token
public Token jj_nt
public ParserCSS30(CharStream stream)
stream
- stream to init withpublic ParserCSS30(ParserCSS30TokenManager tm)
tm
- Token manager to usepublic final CSSNode styleSheet() throws ParseException
ParseException
public final void syntaxCrap() throws ParseException
ParseException
public final String string() throws ParseException
ParseException
public final String anyIdentifier() throws ParseException
ParseException
public final void url() throws ParseException
ParseException
public final void function() throws ParseException
ParseException
public final String unaryOperator() throws ParseException
ParseException
public final Token dimension() throws ParseException
ParseException
public final void mathUnit() throws ParseException
ParseException
public final void mathProductOperator() throws ParseException
ParseException
public final void mathProduct() throws ParseException
ParseException
public final void mathSumOperator() throws ParseException
ParseException
public final void mathSum() throws ParseException
ParseException
public final void math() throws ParseException
ParseException
public final void lineName() throws ParseException
ParseException
public final void lineNames() throws ParseException
ParseException
public final void exprTerm() throws ParseException
ParseException
public final void exprOperator() throws ParseException
ParseException
public final void expr() throws ParseException
ParseException
public final void charsetRule() throws ParseException
ParseException
public final void importRule() throws ParseException
ParseException
public final void namespaceRulePrefix() throws ParseException
ParseException
public final void namespaceRuleURL() throws ParseException
ParseException
public final void namespaceRule() throws ParseException
ParseException
public final void namespacePrefix() throws ParseException
ParseException
public final void elementName() throws ParseException
ParseException
public final void typeSelector() throws ParseException
ParseException
public final void hash() throws ParseException
ParseException
public final void _class() throws ParseException
ParseException
public final void attribOperator() throws ParseException
ParseException
public final void attribValue() throws ParseException
ParseException
public final void attrib() throws ParseException
ParseException
public final void pseudoNth() throws ParseException
ParseException
public final void pseudo() throws ParseException
ParseException
public final void negation() throws ParseException
ParseException
public final void simpleSelectorSequence() throws ParseException
ParseException
public final void selectorCombinator() throws ParseException
ParseException
public final void selector() throws ParseException
ParseException
public final void property() throws ParseException
ParseException
public final void important() throws ParseException
ParseException
public final void styleDeclaration() throws ParseException
ParseException
public final void styleDeclarationOrRule() throws ParseException
ParseException
public final CSSNode styleDeclarationList() throws ParseException
ParseException
public final void styleDeclarationBlock() throws ParseException
ParseException
public final void styleRule() throws ParseException
ParseException
public final void mediaModifier() throws ParseException
ParseException
public final void medium() throws ParseException
ParseException
public final void mediaFeature() throws ParseException
ParseException
public final void mediaExpr() throws ParseException
ParseException
public final void mediaQuery() throws ParseException
ParseException
public final void mediaList() throws ParseException
ParseException
public final void mediaRuleList() throws ParseException
ParseException
public final void mediaRule() throws ParseException
ParseException
public final String pseudoPage() throws ParseException
ParseException
public final void pageSelector() throws ParseException
ParseException
public final void pageSelectorList() throws ParseException
ParseException
public final void pageMarginSymbol() throws ParseException
ParseException
public final void pageBody() throws ParseException
ParseException
public final void pageRuleBlock() throws ParseException
ParseException
public final void pageRule() throws ParseException
ParseException
public final void fontfaceRule() throws ParseException
ParseException
public final void keyframesIdentifier() throws ParseException
ParseException
public final void singleKeyframeSelector() throws ParseException
ParseException
public final void keyframesSelector() throws ParseException
ParseException
public final void keyframesBlocks() throws ParseException
ParseException
public final void keyframesRule() throws ParseException
ParseException
public final void viewportRule() throws ParseException
ParseException
public final void supportsConditionInParens() throws ParseException
ParseException
public final void supportsNegation() throws ParseException
ParseException
public final void supportsConditionOperator() throws ParseException
ParseException
public final void supportsCondition() throws ParseException
ParseException
public final void supportsRuleBodyRule() throws ParseException
ParseException
public final void supportsRuleBody() throws ParseException
ParseException
public final void supportsRule() throws ParseException
ParseException
public final void unknownRuleParameterList() throws ParseException
ParseException
public final void unknownRuleBody() throws ParseException
ParseException
public final void unknownRule() throws ParseException
ParseException
public final void invalid() throws ParseException
ParseException
public void ReInit(CharStream stream)
stream
- stream to init withpublic void ReInit(ParserCSS30TokenManager tm)
tm
- Token manager to usepublic final Token getNextToken()
public final Token getToken(int index)
index
- index to be retrievedpublic ParseException generateParseException()
null
public final boolean trace_enabled()
false
.public final void enable_tracing()
public final void disable_tracing()
Copyright © 2014–2020 Philip Helger. All rights reserved.