Search in sources :

Example 1 with IdCondition

use of com.gargoylesoftware.css.parser.condition.IdCondition in project LoboEvolution by LoboEvolution.

the class CSS3Parser method hash.

public final Condition hash(boolean pseudoElementFound) throws ParseException {
    Token t;
    ParseException pe = null;
    try {
        if (pseudoElementFound) {
            pe = generateParseException();
        }
        t = jj_consume_token(HASH);
        if (pseudoElementFound) {
            throw pe;
        }
        return new IdCondition(unescape(t.image.substring(1), false), createLocator(t));
    } catch (ParseException e) {
        throw toCSSParseException("invalidHash", e);
    }
}
Also used : IdCondition(com.gargoylesoftware.css.parser.condition.IdCondition) CSSParseException(com.gargoylesoftware.css.parser.CSSParseException)

Aggregations

CSSParseException (com.gargoylesoftware.css.parser.CSSParseException)1 IdCondition (com.gargoylesoftware.css.parser.condition.IdCondition)1