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
621622623624625626627628629630631
/** * Parses a selector. */ protected Selector parseSelector() { SimpleSelector ss = parseSimpleSelector(); Selector result = ss; pseudoElement = null; loop: for (;;) { switch (current) {
618619620621622623624625626627628
598599600601602603604605606607608
} int length = selectors.getLength(); for (int i = 0; i < length; i++) { final Selector selector = selectors.item(i); try { final CSSStyleRule rule = (CSSStyleRule) styleRule.clone(); rule.setSelector((CSSSelector) selector); styleSheet.addRule(rule);
16361637163816391640164116421643164416451646
} } 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:
16731674167516761677167816791680168116821683
/** * @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) {
629630631632633634635636637638639
615616617618619620621622623624625
630631632633634635636637638639640
578579580581582583584585586587588
} final int length = selectors.getLength(); for (int i = 0; i < length; i++) { final Selector selector = selectors.item(i); try { final CSSStyleRule rule = (CSSStyleRule) styleRule.clone(); rule.setSelector((CSSSelector) selector); styleSheet.addRule(rule);
16201621162216231624162516261627162816291630