/** * Parses selectors using the current scanner. */ protected SelectorList parseSelectorsInternal() throws CSSException, IOException { nextIgnoreSpaces(); SelectorList ret = parseSelectorList(); scanner.close(); scanner = null; return ret; }
/** * Parses selectors using the current scanner. */ protected SelectorList parseSelectorsInternal() throws CSSException, IOException { nextIgnoreSpaces(); SelectorList ret = parseSelectorList(); scanner.close(); scanner = null; return ret; }
/** * Parses selectors using the current scanner. */ protected SelectorList parseSelectorsInternal() throws CSSException, IOException { nextIgnoreSpaces(); SelectorList ret = parseSelectorList(); scanner.close(); scanner = null; return ret; }
/** * Parses a ruleset. */ protected void parseRuleSet() { SelectorList sl = null; try { sl = parseSelectorList(); } catch (CSSParseException e) { reportError(e); return; } try { documentHandler.startSelector(sl); if (current != LexicalUnits.LEFT_CURLY_BRACE) { reportError("left.curly.brace"); if (current == LexicalUnits.RIGHT_CURLY_BRACE) { nextIgnoreSpaces(); } } else { nextIgnoreSpaces(); try { parseStyleDeclaration(true); } catch (CSSParseException e) { reportError(e); } } } finally { documentHandler.endSelector(sl); } }
/** * Parses a ruleset. */ protected void parseRuleSet() { SelectorList sl = null; try { sl = parseSelectorList(); } catch (CSSParseException e) { reportError(e); return; } try { documentHandler.startSelector(sl); if (current != LexicalUnits.LEFT_CURLY_BRACE) { reportError("left.curly.brace"); if (current == LexicalUnits.RIGHT_CURLY_BRACE) { nextIgnoreSpaces(); } } else { nextIgnoreSpaces(); try { parseStyleDeclaration(true); } catch (CSSParseException e) { reportError(e); } } } finally { documentHandler.endSelector(sl); } }
/** * Parses a ruleset. */ protected void parseRuleSet() { SelectorList sl = null; try { sl = parseSelectorList(); } catch (CSSParseException e) { reportError(e); return; } try { documentHandler.startSelector(sl); if (current != LexicalUnits.LEFT_CURLY_BRACE) { reportError("left.curly.brace"); if (current == LexicalUnits.RIGHT_CURLY_BRACE) { nextIgnoreSpaces(); } } else { nextIgnoreSpaces(); try { parseStyleDeclaration(true); } catch (CSSParseException e) { reportError(e); } } } finally { documentHandler.endSelector(sl); } }