Class CSSParser
- java.lang.Object
-
- org.nuiton.jaxx.compiler.css.parser.CSSParser
-
- All Implemented Interfaces:
CSSParserConstants,CSSParserTreeConstants
public class CSSParser extends Object implements CSSParserTreeConstants, CSSParserConstants
-
-
Field Summary
Fields Modifier and Type Field Description Tokenjj_ntprotected org.nuiton.jaxx.compiler.css.parser.JJTCSSParserStatejjtreeTokentokenCSSParserTokenManagertoken_source-
Fields inherited from interface org.nuiton.jaxx.compiler.css.parser.CSSParserConstants
COLON, DECIMAL_LITERAL, DEFAULT, DIGIT, EMS, EOF, EXS, HEXCOLOR, HEXDIGIT, IDENTIFIER, IN_PSEUDOCLASS, IN_RULE, INTEGER_LITERAL, JAVA_CODE, JAVA_CODE_END, JAVA_CODE_RULE, JAVA_CODE_START, LEFT_BRACE, LENGTH, LETTER, PROGRAMMATIC_PSEUDOCLASS, PSEUDOCLASS_COLON, PSEUDOCLASS_IDENTIFIER, RIGHT_BRACE, SEMICOLON, STRING, tokenImage
-
Fields inherited from interface org.nuiton.jaxx.compiler.css.parser.CSSParserTreeConstants
JJTANIMATIONPROPERTIES, JJTANIMATIONPROPERTY, JJTCLASS, JJTDECLARATION, JJTEXPRESSION, JJTID, JJTIDENTIFIER, JJTJAVACLASS, JJTJAVACODE, jjtNodeName, JJTPROPERTY, JJTPSEUDOCLASS, JJTRULE, JJTSELECTOR, JJTSELECTORS, JJTSTYLESHEET
-
-
Constructor Summary
Constructors Constructor Description CSSParser(InputStream stream)CSSParser(InputStream stream, String encoding)CSSParser(Reader stream)CSSParser(CSSParserTokenManager tm)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidAnimationProperties()voidAnimationProperty()voidClass()voidDeclaration()voiddisable_tracing()voidenable_tracing()voidExpression()ParseExceptiongenerateParseException()TokengetNextToken()TokengetToken(int index)voidId()voidIdentifier()voidJavaClass()voidJavaCode()static voidmain(String[] args)SimpleNodepopNode()voidProperty()voidPseudoClass()voidReInit(InputStream stream)voidReInit(InputStream stream, String encoding)voidReInit(Reader stream)voidReInit(CSSParserTokenManager tm)voidRule()voidSelector()voidSelectors()SimpleNodeStylesheet()
-
-
-
Field Detail
-
jjtree
protected final org.nuiton.jaxx.compiler.css.parser.JJTCSSParserState jjtree
-
token_source
public CSSParserTokenManager token_source
-
token
public Token token
-
jj_nt
public Token jj_nt
-
-
Constructor Detail
-
CSSParser
public CSSParser(InputStream stream)
-
CSSParser
public CSSParser(InputStream stream, String encoding)
-
CSSParser
public CSSParser(Reader stream)
-
CSSParser
public CSSParser(CSSParserTokenManager tm)
-
-
Method Detail
-
popNode
public SimpleNode popNode()
-
main
public static void main(String[] args)
-
Stylesheet
public final SimpleNode Stylesheet() throws ParseException
- Throws:
ParseException
-
Rule
public final void Rule() throws ParseException- Throws:
ParseException
-
Selectors
public final void Selectors() throws ParseException- Throws:
ParseException
-
Selector
public final void Selector() throws ParseException- Throws:
ParseException
-
JavaClass
public final void JavaClass() throws ParseException- Throws:
ParseException
-
Id
public final void Id() throws ParseException- Throws:
ParseException
-
Class
public final void Class() throws ParseException- Throws:
ParseException
-
PseudoClass
public final void PseudoClass() throws ParseException- Throws:
ParseException
-
AnimationProperties
public final void AnimationProperties() throws ParseException- Throws:
ParseException
-
AnimationProperty
public final void AnimationProperty() throws ParseException- Throws:
ParseException
-
Declaration
public final void Declaration() throws ParseException- Throws:
ParseException
-
Property
public final void Property() throws ParseException- Throws:
ParseException
-
Expression
public final void Expression() throws ParseException- Throws:
ParseException
-
JavaCode
public final void JavaCode() throws ParseException- Throws:
ParseException
-
Identifier
public final void Identifier() throws ParseException- Throws:
ParseException
-
ReInit
public void ReInit(InputStream stream)
-
ReInit
public void ReInit(InputStream stream, String encoding)
-
ReInit
public void ReInit(Reader stream)
-
ReInit
public void ReInit(CSSParserTokenManager tm)
-
getNextToken
public final Token getNextToken()
-
getToken
public final Token getToken(int index)
-
generateParseException
public ParseException generateParseException()
-
enable_tracing
public final void enable_tracing()
-
disable_tracing
public final void disable_tracing()
-
-