Package com.helger.css.parser
Class ParserCSS30
- java.lang.Object
-
- com.helger.css.parser.AbstractParserCSS
-
- com.helger.css.parser.ParserCSS30
-
- All Implemented Interfaces:
ParserCSS30Constants
,ParserCSS30TreeConstants
public class ParserCSS30 extends AbstractParserCSS implements ParserCSS30TreeConstants, ParserCSS30Constants
-
-
Field Summary
Fields Modifier and Type Field Description Token
jj_nt
Next token.protected JJTParserCSS30State
jjtree
Token
token
Current token.ParserCSS30TokenManager
token_source
Generated Token Manager.-
Fields inherited from class com.helger.css.parser.AbstractParserCSS
m_aCustomErrorHandler, m_bBrowserCompliantMode
-
Fields inherited from interface com.helger.css.parser.ParserCSS30Constants
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, DOLLAR, DOT, DPCM, DPI, DPPX, EM, EOF, EQUALS, ESCAPE, ESCAPE_OTHER, ESCAPE_UNICODE, EVEN, EX, FONTFACE_SYM, FOOTNOTE_SYM, FR, FREQ_HZ, FREQ_KHZ, FROM_SYM, FUNCTION, FUNCTION_CALC, FUNCTION_EXPRESSION, FUNCTION_HOST, FUNCTION_HOSTCONTEXT, FUNCTION_NOT, FUNCTION_NTH, FUNCTION_SLOTTED, 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
-
Fields inherited from interface com.helger.css.parser.ParserCSS30TreeConstants
JJTATTRIB, JJTATTRIBOPERATOR, JJTATTRIBVALUE, JJTCALC, JJTCALCPRODUCT, JJTCALCPRODUCTOPERATOR, JJTCALCSUMOPERATOR, JJTCALCVALUE, JJTCHARSETRULE, JJTCLASS, JJTELEMENTNAME, JJTERRORSKIPTO, JJTEXPR, JJTEXPROPERATOR, JJTEXPRTERM, JJTFONTFACERULE, JJTFUNCTION, JJTHASH, JJTHOST, JJTHOSTCONTEXT, JJTIMPORTANT, JJTIMPORTRULE, JJTINVALID, JJTKEYFRAMESIDENTIFIER, JJTKEYFRAMESRULE, JJTKEYFRAMESSELECTOR, JJTLINENAME, JJTLINENAMES, JJTMEDIAEXPR, JJTMEDIAFEATURE, JJTMEDIALIST, JJTMEDIAMODIFIER, JJTMEDIAQUERY, JJTMEDIARULE, JJTMEDIUM, JJTNAMESPACEPREFIX, JJTNAMESPACERULE, JJTNAMESPACERULEPREFIX, JJTNAMESPACERULEURL, JJTNEGATION, jjtNodeName, JJTNTH, JJTPAGEMARGINSYMBOL, JJTPAGERULE, JJTPAGERULEBLOCK, JJTPAGESELECTOR, JJTPROPERTY, JJTPSEUDO, JJTROOT, JJTSELECTOR, JJTSELECTORCOMBINATOR, JJTSINGLEKEYFRAMESELECTOR, JJTSLOTTED, JJTSTYLEDECLARATION, JJTSTYLEDECLARATIONLIST, JJTSTYLERULE, JJTSUPPORTSCONDITION, JJTSUPPORTSCONDITIONINPARENS, JJTSUPPORTSCONDITIONOPERATOR, JJTSUPPORTSNEGATION, JJTSUPPORTSRULE, JJTUNKNOWNRULE, JJTUNKNOWNRULEBODY, JJTUNKNOWNRULEPARAMETERLIST, JJTURL, JJTVIEWPORTRULE, JJTVOID
-
-
Constructor Summary
Constructors Constructor Description ParserCSS30(CharStream stream)
Constructor with user supplied CharStream.ParserCSS30(ParserCSS30TokenManager tm)
Constructor with generated Token Manager.
-
Method Summary
-
Methods inherited from class com.helger.css.parser.AbstractParserCSS
getCustomErrorHandler, isBrowserCompliantMode, jjtreeCloseNodeScope, jjtreeOpenNodeScope, setBrowserCompliantMode, setCustomErrorHandler
-
-
-
-
Field Detail
-
jjtree
protected JJTParserCSS30State jjtree
-
token_source
public ParserCSS30TokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
ParserCSS30
public ParserCSS30(CharStream stream)
Constructor with user supplied CharStream.- Parameters:
stream
- stream to init with
-
ParserCSS30
public ParserCSS30(ParserCSS30TokenManager tm)
Constructor with generated Token Manager.- Parameters:
tm
- Token manager to use
-
-
Method Detail
-
styleSheet
public final CSSNode styleSheet() throws ParseException
- Throws:
ParseException
-
syntaxCrap
public final void syntaxCrap() throws ParseException
- Throws:
ParseException
-
string
public final String string() throws ParseException
- Throws:
ParseException
-
anyIdentifier
public final String anyIdentifier() throws ParseException
- Throws:
ParseException
-
url
public final void url() throws ParseException
- Throws:
ParseException
-
function
public final void function() throws ParseException
- Throws:
ParseException
-
unaryOperator
public final String unaryOperator() throws ParseException
- Throws:
ParseException
-
dimension
public final Token dimension() throws ParseException
- Throws:
ParseException
-
calcValue
public final void calcValue() throws ParseException
- Throws:
ParseException
-
calcProductOperator
public final void calcProductOperator() throws ParseException
- Throws:
ParseException
-
calcProduct
public final void calcProduct() throws ParseException
- Throws:
ParseException
-
calcSumOperator
public final void calcSumOperator() throws ParseException
- Throws:
ParseException
-
calcSum
public final void calcSum() throws ParseException
- Throws:
ParseException
-
calc
public final void calc() throws ParseException
- Throws:
ParseException
-
lineName
public final void lineName() throws ParseException
- Throws:
ParseException
-
lineNames
public final void lineNames() throws ParseException
- Throws:
ParseException
-
exprTerm
public final void exprTerm() throws ParseException
- Throws:
ParseException
-
exprOperator
public final void exprOperator() throws ParseException
- Throws:
ParseException
-
expr
public final void expr() throws ParseException
- Throws:
ParseException
-
charsetRule
public final void charsetRule() throws ParseException
- Throws:
ParseException
-
importRule
public final void importRule() throws ParseException
- Throws:
ParseException
-
namespaceRulePrefix
public final void namespaceRulePrefix() throws ParseException
- Throws:
ParseException
-
namespaceRuleURL
public final void namespaceRuleURL() throws ParseException
- Throws:
ParseException
-
namespaceRule
public final void namespaceRule() throws ParseException
- Throws:
ParseException
-
namespacePrefix
public final void namespacePrefix() throws ParseException
- Throws:
ParseException
-
elementName
public final void elementName() throws ParseException
- Throws:
ParseException
-
typeSelector
public final void typeSelector() throws ParseException
- Throws:
ParseException
-
hash
public final void hash() throws ParseException
- Throws:
ParseException
-
_class
public final void _class() throws ParseException
- Throws:
ParseException
-
attribOperator
public final void attribOperator() throws ParseException
- Throws:
ParseException
-
attribValue
public final void attribValue() throws ParseException
- Throws:
ParseException
-
attrib
public final void attrib() throws ParseException
- Throws:
ParseException
-
pseudoNth
public final void pseudoNth() throws ParseException
- Throws:
ParseException
-
pseudoHost
public final void pseudoHost() throws ParseException
- Throws:
ParseException
-
pseudoHostContext
public final void pseudoHostContext() throws ParseException
- Throws:
ParseException
-
pseudoSlotted
public final void pseudoSlotted() throws ParseException
- Throws:
ParseException
-
pseudo
public final void pseudo() throws ParseException
- Throws:
ParseException
-
negation
public final void negation() throws ParseException
- Throws:
ParseException
-
simpleSelectorSequence
public final void simpleSelectorSequence() throws ParseException
- Throws:
ParseException
-
selectorCombinator
public final void selectorCombinator() throws ParseException
- Throws:
ParseException
-
selector
public final void selector() throws ParseException
- Throws:
ParseException
-
property
public final void property() throws ParseException
- Throws:
ParseException
-
important
public final void important() throws ParseException
- Throws:
ParseException
-
styleDeclaration
public final void styleDeclaration() throws ParseException
- Throws:
ParseException
-
styleDeclarationOrRule
public final void styleDeclarationOrRule() throws ParseException
- Throws:
ParseException
-
styleDeclarationList
public final CSSNode styleDeclarationList() throws ParseException
- Throws:
ParseException
-
styleDeclarationBlock
public final void styleDeclarationBlock() throws ParseException
- Throws:
ParseException
-
styleRule
public final void styleRule() throws ParseException
- Throws:
ParseException
-
mediaModifier
public final void mediaModifier() throws ParseException
- Throws:
ParseException
-
medium
public final void medium() throws ParseException
- Throws:
ParseException
-
mediaFeature
public final void mediaFeature() throws ParseException
- Throws:
ParseException
-
mediaExpr
public final void mediaExpr() throws ParseException
- Throws:
ParseException
-
mediaQuery
public final void mediaQuery() throws ParseException
- Throws:
ParseException
-
mediaList
public final void mediaList() throws ParseException
- Throws:
ParseException
-
mediaRuleList
public final void mediaRuleList() throws ParseException
- Throws:
ParseException
-
mediaRule
public final void mediaRule() throws ParseException
- Throws:
ParseException
-
pseudoPage
public final String pseudoPage() throws ParseException
- Throws:
ParseException
-
pageSelector
public final void pageSelector() throws ParseException
- Throws:
ParseException
-
pageSelectorList
public final void pageSelectorList() throws ParseException
- Throws:
ParseException
-
pageMarginSymbol
public final void pageMarginSymbol() throws ParseException
- Throws:
ParseException
-
pageBody
public final void pageBody() throws ParseException
- Throws:
ParseException
-
pageRuleBlock
public final void pageRuleBlock() throws ParseException
- Throws:
ParseException
-
pageRule
public final void pageRule() throws ParseException
- Throws:
ParseException
-
fontfaceRule
public final void fontfaceRule() throws ParseException
- Throws:
ParseException
-
keyframesIdentifier
public final void keyframesIdentifier() throws ParseException
- Throws:
ParseException
-
singleKeyframeSelector
public final void singleKeyframeSelector() throws ParseException
- Throws:
ParseException
-
keyframesSelector
public final void keyframesSelector() throws ParseException
- Throws:
ParseException
-
keyframesBlocks
public final void keyframesBlocks() throws ParseException
- Throws:
ParseException
-
keyframesRule
public final void keyframesRule() throws ParseException
- Throws:
ParseException
-
viewportRule
public final void viewportRule() throws ParseException
- Throws:
ParseException
-
supportsConditionInParens
public final void supportsConditionInParens() throws ParseException
- Throws:
ParseException
-
supportsNegation
public final void supportsNegation() throws ParseException
- Throws:
ParseException
-
supportsConditionOperator
public final void supportsConditionOperator() throws ParseException
- Throws:
ParseException
-
supportsCondition
public final void supportsCondition() throws ParseException
- Throws:
ParseException
-
supportsRuleBodyRule
public final void supportsRuleBodyRule() throws ParseException
- Throws:
ParseException
-
supportsRuleBody
public final void supportsRuleBody() throws ParseException
- Throws:
ParseException
-
supportsRule
public final void supportsRule() throws ParseException
- Throws:
ParseException
-
unknownRuleParameterList
public final void unknownRuleParameterList() throws ParseException
- Throws:
ParseException
-
unknownRuleBody
public final void unknownRuleBody() throws ParseException
- Throws:
ParseException
-
unknownRule
public final void unknownRule() throws ParseException
- Throws:
ParseException
-
invalid
public final void invalid() throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(CharStream stream)
Reinitialise.- Parameters:
stream
- stream to init with
-
ReInit
public void ReInit(ParserCSS30TokenManager tm)
Reinitialise- Parameters:
tm
- Token manager to use
-
getNextToken
public final Token getNextToken()
- Returns:
- the next Token.
-
getToken
public final Token getToken(int index)
- Parameters:
index
- index to be retrieved- Returns:
- the specific Token.
-
generateParseException
public ParseException generateParseException()
Generate ParseException.- Returns:
- new Exception object. Never
null
-
trace_enabled
public final boolean trace_enabled()
- Returns:
- Always
false
.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
-