|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--luxor.css.CssParser
Field Summary | |
protected ConditionFactory |
_conditionFactory
|
protected int |
_current
The current token. |
protected DocumentHandler |
_documentHandler
|
protected java.lang.String |
_documentUri
|
protected ErrorHandler |
_errorHandler
|
protected CssLexer |
_lexer
The lexer used to break the input source into tokens. |
protected SelectorFactory |
_selectorFactory
|
Constructor Summary | |
CssParser()
|
Method Summary | |
protected java.io.Reader |
characterStream(InputSource source)
Converts the given input source into a Reader. |
protected java.io.Reader |
characterStream(InputSource source,
java.io.InputStream is)
Converts the given input stream into a Reader. |
protected CssParseException |
createCssParseException(java.lang.String key)
|
protected CssParseException |
createCssParseException(java.lang.String key,
java.lang.Object[] params)
|
protected CssValue |
dimension(boolean positive,
CssValue prev)
Converts the current lexical unit to a dimension. |
java.lang.String |
formatMessage(java.lang.String key,
java.lang.Object[] args)
|
protected CssValue |
hexcolor(CssValue prev)
Converts a hash unit to a RGB color. |
protected int |
next()
Advances to the next token, ignoring comments. |
protected int |
nextIgnoreSpaces()
Advances to the next token and skip the spaces, ignoring comments. |
protected float |
number(boolean positive)
Converts the current lexical unit to a float. |
protected CssValue |
parseExpression(boolean param)
Parses a CSS2 expression. |
protected CssValue |
parseFunction(boolean positive,
CssValue prev)
Parses a CSS2 function. |
CssValue |
parsePropertyValue(InputSource source)
|
CssValue |
parsePropertyValue(java.lang.String source)
|
protected CssValue |
parsePropertyValueInternal()
Parses property value using the current scanner. |
protected void |
parseRule()
Parses a rule. |
void |
parseRule(InputSource source)
|
void |
parseRule(java.lang.String source)
|
protected void |
parseRuleInternal()
Parses a rule using the current scanner. |
protected void |
parseRuleSet()
Parses a ruleset. |
protected Selector |
parseSelector()
Parses a selector. |
protected java.util.List |
parseSelectorList()
Parses a selector list |
java.util.List |
parseSelectors(InputSource source)
|
java.util.List |
parseSelectors(java.lang.String source)
|
protected java.util.List |
parseSelectorsInternal()
Parses selectors using the current scanner. |
protected Selector |
parseSimpleSelector()
Parses a simple selector. |
protected void |
parseStyleDeclaration(boolean inSheet)
Parses the given reader. |
void |
parseStyleDeclaration(InputSource source)
|
void |
parseStyleDeclaration(java.lang.String source)
|
protected void |
parseStyleDeclarationInternal()
Parses a style declaration using the current scanner. |
void |
parseStyleSheet(InputSource source)
|
void |
parseStyleSheet(java.lang.String uri)
|
protected CssValue |
parseTerm(CssValue prev)
Parses a CSS2 term. |
protected void |
reportError(CssParseException e)
Reports a parsing error. |
protected void |
reportError(java.lang.String key)
Reports a parsing error. |
protected void |
reportError(java.lang.String key,
java.lang.Object[] params)
Reports a parsing error. |
void |
setConditionFactory(ConditionFactory factory)
|
void |
setDocumentHandler(DocumentHandler handler)
|
void |
setErrorHandler(ErrorHandler handler)
|
void |
setSelectorFactory(SelectorFactory factory)
|
protected int |
skipSpaces()
Skips the white spaces. |
protected int |
skipSpacesAndCDOCDC()
Skips the white spaces and CDO/CDC untis. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ConditionFactory _conditionFactory
protected int _current
protected DocumentHandler _documentHandler
protected java.lang.String _documentUri
protected ErrorHandler _errorHandler
protected CssLexer _lexer
protected SelectorFactory _selectorFactory
Constructor Detail |
public CssParser()
Method Detail |
public void setConditionFactory(ConditionFactory factory)
public void setDocumentHandler(DocumentHandler handler)
public void setErrorHandler(ErrorHandler handler)
public void setSelectorFactory(SelectorFactory factory)
public java.lang.String formatMessage(java.lang.String key, java.lang.Object[] args)
public CssValue parsePropertyValue(InputSource source) throws CssParseException, java.io.IOException
CssParseException
java.io.IOException
public CssValue parsePropertyValue(java.lang.String source) throws CssParseException, java.io.IOException
CssParseException
java.io.IOException
public void parseRule(InputSource source) throws CssParseException, java.io.IOException
CssParseException
java.io.IOException
public void parseRule(java.lang.String source) throws CssParseException, java.io.IOException
CssParseException
java.io.IOException
public java.util.List parseSelectors(InputSource source) throws CssParseException, java.io.IOException
CssParseException
java.io.IOException
public java.util.List parseSelectors(java.lang.String source) throws CssParseException, java.io.IOException
CssParseException
java.io.IOException
public void parseStyleDeclaration(InputSource source) throws CssParseException, java.io.IOException
CssParseException
java.io.IOException
public void parseStyleDeclaration(java.lang.String source) throws CssParseException, java.io.IOException
CssParseException
java.io.IOException
public void parseStyleSheet(InputSource source) throws CssParseException, java.io.IOException
CssParseException
java.io.IOException
public void parseStyleSheet(java.lang.String uri) throws CssParseException, java.io.IOException
CssParseException
java.io.IOException
protected java.io.Reader characterStream(InputSource source) throws CssParseException
CssParseException
protected java.io.Reader characterStream(InputSource source, java.io.InputStream is)
protected CssParseException createCssParseException(java.lang.String key)
protected CssParseException createCssParseException(java.lang.String key, java.lang.Object[] params)
protected CssValue dimension(boolean positive, CssValue prev) throws CssParseException
CssParseException
protected CssValue hexcolor(CssValue prev) throws CssParseException
CssParseException
protected int next()
protected int nextIgnoreSpaces()
protected float number(boolean positive) throws CssParseException
CssParseException
protected CssValue parseExpression(boolean param) throws CssParseException
CssParseException
protected CssValue parseFunction(boolean positive, CssValue prev) throws CssParseException
CssParseException
protected CssValue parsePropertyValueInternal() throws CssParseException, java.io.IOException
CssParseException
java.io.IOException
protected void parseRule()
protected void parseRuleInternal() throws CssParseException, java.io.IOException
CssParseException
java.io.IOException
protected void parseRuleSet()
protected Selector parseSelector() throws CssParseException
CssParseException
protected java.util.List parseSelectorList() throws CssParseException
CssParseException
protected java.util.List parseSelectorsInternal() throws CssParseException, java.io.IOException
CssParseException
java.io.IOException
protected Selector parseSimpleSelector() throws CssParseException
CssParseException
protected void parseStyleDeclaration(boolean inSheet) throws CssParseException
CssParseException
protected void parseStyleDeclarationInternal() throws CssParseException, java.io.IOException
CssParseException
java.io.IOException
protected CssValue parseTerm(CssValue prev) throws CssParseException
CssParseException
protected void reportError(java.lang.String key)
protected void reportError(java.lang.String key, java.lang.Object[] params)
protected void reportError(CssParseException e)
protected int skipSpaces()
protected int skipSpacesAndCDOCDC()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |