Remarks: Not all the following selectors are supported (or will be supported) by CSS.
All examples are CSS2 compliant. @version $Revision: 1.12 $ @author Philippe Le Hegaret
16571658165916601661166216631664166516661667
/** * @exception ParseException exception during the parse */ final public Selector selector() throws ParseException { Selector selector; char comb; try { selector = simple_selector(null, ' '); label_49: while (true) {
16201621162216231624162516261627162816291630
} } final public SelectorList selectorList() throws ParseException { SelectorListImpl selectors = new SelectorListImpl(); Selector selector; selector = selector(); label_47: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMA:
819820821822823824825826827828829
/** * Parses a selector. */ protected Selector parseSelector() { pseudoElement = null; Selector result = parseSimpleSelector(); loop: for (;;) { switch (current) { default: break loop;
615616617618619620621622623624625
/** * Parses a selector. */ protected Selector parseSelector() { SimpleSelector ss = parseSimpleSelector(); Selector result = ss; pseudoElement = null; loop: for (;;) { switch (current) {
757677787980818283
public void startSelector(SelectorList selectors) throws CSSException { rule = new RuleObject(); for (int i = 0; i < selectors.getLength(); i++) { Selector selector = selectors.item(i); rule.addSelector(SelectorObject.create(selector)); } }
7374757677787980818283
public void startSelector(SelectorList selectors) throws CSSException { for (int i = 0; i < selectors.getLength(); i++) { Selector selector = selectors.item(i); if (i > 0) { write(","); } write(selector);
237238239240241242243244245246247
write(condition); break; } case Selector.SAC_CHILD_SELECTOR : { DescendantSelector childSel = (DescendantSelector)sel; Selector ancestorSel = childSel.getAncestorSelector(); SimpleSelector simpleSel = childSel.getSimpleSelector(); // if (simpleSel.getSelectorType() == Selector.SAC_PSEUDO_ELEMENT_SELECTOR) {
747576777879808182
687688689690691692693694695696697