/** * Skips the white spaces. */ protected int skipSpaces() { int lex = scanner.getType(); while (lex == LexicalUnits.SPACE) { lex = next(); } return lex; }
reportError("semicolon"); next();
reportError("semicolon"); next();
/** * Skips the white spaces. */ protected int skipSpaces() { int lex = scanner.getType(); while (lex == LexicalUnits.SPACE) { lex = next(); } return lex; }
reportError("semicolon"); next();
/** * Skips the white spaces. */ protected int skipSpaces() { int lex = scanner.getType(); while (lex == LexicalUnits.SPACE) { lex = next(); } return lex; }
result = selectorFactory.createElementSelector (null, scanner.getStringValue()); next(); break; case LexicalUnits.ANY: next(); default: result = selectorFactory.createElementSelector(null, null); c = conditionFactory.createIdCondition (scanner.getStringValue()); next(); break; case LexicalUnits.DOT: if (next() != LexicalUnits.IDENTIFIER) { throw createCSSParseException("identifier"); next(); break; case LexicalUnits.LEFT_BRACKET: throw createCSSParseException("right.bracket"); case LexicalUnits.RIGHT_BRACKET: next(); c = conditionFactory.createAttributeCondition (name, null, false, null); next(); switch (op) {
/** * Skips the white spaces and CDO/CDC units. */ protected int skipSpacesAndCDOCDC() { loop: for (;;) { switch (current) { default: break loop; case LexicalUnits.COMMENT: case LexicalUnits.SPACE: case LexicalUnits.CDO: case LexicalUnits.CDC: } scanner.clearBuffer(); next(); } return current; }
/** * Parses an import rule. Assumes the current token is '@import'. */ protected void parseImportRule() { String uri = null; switch (current) { default: reportError("string.or.uri"); return; case LexicalUnits.STRING: case LexicalUnits.URI: uri = scanner.getStringValue(); nextIgnoreSpaces(); } CSSSACMediaList ml; if (current != LexicalUnits.IDENTIFIER) { ml = new CSSSACMediaList(); ml.append("all"); } else { ml = parseMediaList(); } documentHandler.importStyle(uri, ml, null); if (current != LexicalUnits.SEMI_COLON) { reportError("semicolon"); } else { next(); } }
/** * Skips the white spaces and CDO/CDC units. */ protected int skipSpacesAndCDOCDC() { loop: for (;;) { switch (current) { default: break loop; case LexicalUnits.COMMENT: case LexicalUnits.SPACE: case LexicalUnits.CDO: case LexicalUnits.CDC: } scanner.clearBuffer(); next(); } return current; }
/** * Parses an import rule. Assumes the current token is '@import'. */ protected void parseImportRule() { String uri = null; switch (current) { default: reportError("string.or.uri"); return; case LexicalUnits.STRING: case LexicalUnits.URI: uri = scanner.getStringValue(); nextIgnoreSpaces(); } CSSSACMediaList ml; if (current != LexicalUnits.IDENTIFIER) { ml = new CSSSACMediaList(); ml.append("all"); } else { ml = parseMediaList(); } documentHandler.importStyle(uri, ml, null); if (current != LexicalUnits.SEMI_COLON) { reportError("semicolon"); } else { next(); } }
/** * Skips the white spaces and CDO/CDC units. */ protected int skipSpacesAndCDOCDC() { loop: for (;;) { switch (current) { default: break loop; case LexicalUnits.COMMENT: case LexicalUnits.SPACE: case LexicalUnits.CDO: case LexicalUnits.CDC: } scanner.clearBuffer(); next(); } return current; }
result = selectorFactory.createElementSelector (null, scanner.getStringValue()); next(); break; case LexicalUnits.ANY: next(); default: result = selectorFactory.createElementSelector(null, null); c = conditionFactory.createIdCondition (scanner.getStringValue()); next(); break; case LexicalUnits.DOT: if (next() != LexicalUnits.IDENTIFIER) { throw createCSSParseException("identifier"); next(); break; case LexicalUnits.LEFT_BRACKET: throw createCSSParseException("right.bracket"); case LexicalUnits.RIGHT_BRACKET: next(); c = conditionFactory.createAttributeCondition (name, null, false, null); next(); switch (op) {
result = selectorFactory.createElementSelector (null, scanner.getStringValue()); next(); break; case LexicalUnits.ANY: next(); default: result = selectorFactory.createElementSelector(null, null); c = conditionFactory.createIdCondition (scanner.getStringValue()); next(); break; case LexicalUnits.DOT: if (next() != LexicalUnits.IDENTIFIER) { throw createCSSParseException("identifier"); next(); break; case LexicalUnits.LEFT_BRACKET: throw createCSSParseException("right.bracket"); case LexicalUnits.RIGHT_BRACKET: next(); c = conditionFactory.createAttributeCondition (name, null, false, null); next(); switch (op) {
/** * Parses an import rule. Assumes the current token is '@import'. */ protected void parseImportRule() { String uri = null; switch (current) { default: reportError("string.or.uri"); return; case LexicalUnits.STRING: case LexicalUnits.URI: uri = scanner.getStringValue(); nextIgnoreSpaces(); } CSSSACMediaList ml; if (current != LexicalUnits.IDENTIFIER) { ml = new CSSSACMediaList(); ml.append("all"); } else { ml = parseMediaList(); } documentHandler.importStyle(uri, ml, null); if (current != LexicalUnits.SEMI_COLON) { reportError("semicolon"); } else { next(); } }
plus = false; case LexicalUnits.PLUS: next(); sgn = true; default:
plus = false; case LexicalUnits.PLUS: next(); sgn = true; default:
plus = false; case LexicalUnits.PLUS: next(); sgn = true; default: