jodd.lagarto.csselly
Class CSSelly
java.lang.Object
jodd.lagarto.csselly.CSSelly
public class CSSelly
- extends java.lang.Object
CSS selector parser. Works with one query, i.e. does not support groups
of selectors (selectors separated by a comma). To parse selectors group,
manually split the group query into single queries and parse each.
- See Also:
http://www.w3.org/TR/css3-selectors/#w3cselgrammar
|
Field Summary |
protected jodd.lagarto.csselly.CSSellyLexer |
lexer
|
|
Constructor Summary |
CSSelly(java.nio.CharBuffer input)
|
CSSelly(java.lang.CharSequence charSequence)
|
|
Method Summary |
java.util.List<CssSelector> |
parse()
Parses selector string. |
static java.lang.String |
toString(java.util.List<CssSelector> selectors)
Returns string representation of given list of selectors. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lexer
protected final jodd.lagarto.csselly.CSSellyLexer lexer
CSSelly
public CSSelly(java.lang.CharSequence charSequence)
CSSelly
public CSSelly(java.nio.CharBuffer input)
parse
public java.util.List<CssSelector> parse()
- Parses selector string.
Returns
null if no selector can be parsed.
toString
public static java.lang.String toString(java.util.List<CssSelector> selectors)
- Returns string representation of given list of selectors.
Copyright © 2003-2011 Jodd Team