A ConditionalSelector can only accept a simple selector or a negative selector.
ConditionalSelector
15671568156915701571157215731574157515761577
/** * @exception ParseException exception during the parse */ final public Selector simple_selector(Selector selector, char comb) throws ParseException { SimpleSelector simple_current = null; Condition cond = null; pseudoElt = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ANY:
648649650651652653654655656657658
/** * Parses a selector. */ protected Selector parseSelector() { SimpleSelector ss = parseSimpleSelector(); Selector result = ss; pseudoElement = null; loop: for (;;) {
693694695696697698699700701702703
/** * Parses a simple selector. */ protected SimpleSelector parseSimpleSelector() { SimpleSelector result; switch (current) { case LexicalUnits.IDENTIFIER: result = selectorFactory.createElementSelector(null, scanner.getStringValue());
645646647648649650651652653654655
690691692693694695696697698699700
667668669670671672673674675676677
712713714715716717718719720721722