sidekick.css.parser
Class CSS2Parser

java.lang.Object
  extended by sidekick.css.parser.CSS2Parser
All Implemented Interfaces:
CSS2ParserConstants

public class CSS2Parser
extends java.lang.Object
implements CSS2ParserConstants


Field Summary
 Token jj_nt
          Next token.
 Token token
          Current token.
 CSS2ParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface sidekick.css.parser.CSS2ParserConstants
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 Summary
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.
 
Method Summary
 CSSNode _class()
           
 CSSNode attrib()
           
 CSSNode charsetRule()
           
 CSSNode combinator()
           
 CSSNode createNode(Token t)
           
 CSSNode declaration()
           
 void disable_tracing()
          Disable tracing.
 CSSNode elementName()
           
 void enable_tracing()
          Enable tracing.
 CSSNode expr()
           
 CSSNode fontFaceRule()
           
 CSSNode function()
           
 ParseException generateParseException()
          Generate ParseException.
 sidekick.util.Location getEndLocation(Token t)
           
 Token getNextToken()
          Get the next Token.
 java.util.List<sidekick.util.ParseError> getParseErrors()
           
 sidekick.util.Location getStartLocation(Token t)
           
 int getTabSize()
           
 Token getToken(int index)
          Get the specific Token.
 CSSNode hash()
           
 CSSNode hexcolor()
           
 CSSNode importRule()
           
 CSSNode importRuleIgnored()
           
 CSSNode mediaList()
           
 CSSNode mediaRule()
           
 java.util.List<CSSNode> mediaRuleList()
           
 CSSNode mediaRuleSingle()
           
 CSSNode medium()
           
 boolean notNull(java.lang.Object... args)
          Simple check to verify that all arguments are not null.
 CSSNode operator()
           
 CSSNode pageRule()
           
 CSSNode prio()
           
 CSSNode property()
           
 CSSNode pseudo()
           
 CSSNode pseudoPage()
           
 void ReInit(CSS2ParserTokenManager tm)
          Reinitialise.
 void ReInit(java.io.InputStream stream)
          Reinitialise.
 void ReInit(java.io.InputStream stream, java.lang.String encoding)
          Reinitialise.
 void ReInit(java.io.Reader stream)
          Reinitialise.
 CSSNode rgb()
           
 CSSNode selector()
           
 CSSNode selectorList()
           
 void setLineOffset(int offset)
           
 void setProprietaryAsError(boolean b)
           
 void setTabSize(int size)
           
 CSSNode simpleSelector()
           
 java.util.List<CSSNode> styleDeclaration()
           
 CSSNode styleRule()
           
 CSSNode styleSheet()
           
 java.util.List<CSSNode> styleSheetRuleList()
           
 CSSNode styleSheetRuleSingle()
           
 CSSNode term()
           
 CSSNode unaryOperator()
           
 CSSNode unknownRule()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public CSS2ParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

CSS2Parser

public CSS2Parser(java.io.InputStream stream)
Constructor with InputStream.


CSS2Parser

public CSS2Parser(java.io.InputStream stream,
                  java.lang.String encoding)
Constructor with InputStream and supplied encoding


CSS2Parser

public CSS2Parser(java.io.Reader stream)
Constructor.


CSS2Parser

public CSS2Parser(CSS2ParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

getStartLocation

public sidekick.util.Location getStartLocation(Token t)

getEndLocation

public sidekick.util.Location getEndLocation(Token t)

createNode

public CSSNode createNode(Token t)

setLineOffset

public void setLineOffset(int offset)

setTabSize

public void setTabSize(int size)

getTabSize

public int getTabSize()

setProprietaryAsError

public void setProprietaryAsError(boolean b)

getParseErrors

public java.util.List<sidekick.util.ParseError> getParseErrors()

notNull

public boolean notNull(java.lang.Object... args)
Simple check to verify that all arguments are not null.


styleSheet

public final CSSNode styleSheet()
                         throws ParseException
Throws:
ParseException

styleSheetRuleList

public final java.util.List<CSSNode> styleSheetRuleList()
                                                 throws ParseException
Throws:
ParseException

styleSheetRuleSingle

public final CSSNode styleSheetRuleSingle()
                                   throws ParseException
Throws:
ParseException

charsetRule

public final CSSNode charsetRule()
                          throws ParseException
Throws:
ParseException

unknownRule

public final CSSNode unknownRule()
                          throws ParseException
Throws:
ParseException

importRule

public final CSSNode importRule()
                         throws ParseException
Throws:
ParseException

importRuleIgnored

public final CSSNode importRuleIgnored()
                                throws ParseException
Throws:
ParseException

mediaRule

public final CSSNode mediaRule()
                        throws ParseException
Throws:
ParseException

mediaList

public final CSSNode mediaList()
                        throws ParseException
Throws:
ParseException

mediaRuleList

public final java.util.List<CSSNode> mediaRuleList()
                                            throws ParseException
Throws:
ParseException

mediaRuleSingle

public final CSSNode mediaRuleSingle()
                              throws ParseException
Throws:
ParseException

medium

public final CSSNode medium()
                     throws ParseException
Throws:
ParseException

pageRule

public final CSSNode pageRule()
                       throws ParseException
Throws:
ParseException

pseudoPage

public final CSSNode pseudoPage()
                         throws ParseException
Throws:
ParseException

fontFaceRule

public final CSSNode fontFaceRule()
                           throws ParseException
Throws:
ParseException

operator

public final CSSNode operator()
                       throws ParseException
Throws:
ParseException

combinator

public final CSSNode combinator()
                         throws ParseException
Throws:
ParseException

unaryOperator

public final CSSNode unaryOperator()
                            throws ParseException
Throws:
ParseException

property

public final CSSNode property()
                       throws ParseException
Throws:
ParseException

styleRule

public final CSSNode styleRule()
                        throws ParseException
Throws:
ParseException

selectorList

public final CSSNode selectorList()
                           throws ParseException
Throws:
ParseException

selector

public final CSSNode selector()
                       throws ParseException
Throws:
ParseException

simpleSelector

public final CSSNode simpleSelector()
                             throws ParseException
Throws:
ParseException

_class

public final CSSNode _class()
                     throws ParseException
Throws:
ParseException

elementName

public final CSSNode elementName()
                          throws ParseException
Throws:
ParseException

attrib

public final CSSNode attrib()
                     throws ParseException
Throws:
ParseException

pseudo

public final CSSNode pseudo()
                     throws ParseException
Throws:
ParseException

hash

public final CSSNode hash()
                   throws ParseException
Throws:
ParseException

styleDeclaration

public final java.util.List<CSSNode> styleDeclaration()
                                               throws ParseException
Throws:
ParseException

declaration

public final CSSNode declaration()
                          throws ParseException
Throws:
ParseException

prio

public final CSSNode prio()
                   throws ParseException
Throws:
ParseException

expr

public final CSSNode expr()
                   throws ParseException
Throws:
ParseException

term

public final CSSNode term()
                   throws ParseException
Throws:
ParseException

function

public final CSSNode function()
                       throws ParseException
Throws:
ParseException

rgb

public final CSSNode rgb()
                  throws ParseException
Throws:
ParseException

hexcolor

public final CSSNode hexcolor()
                       throws ParseException
Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)
Reinitialise.


ReInit

public void ReInit(java.io.InputStream stream,
                   java.lang.String encoding)
Reinitialise.


ReInit

public void ReInit(java.io.Reader stream)
Reinitialise.


ReInit

public void ReInit(CSS2ParserTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.