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);
}
}
Aggregations