use of com.gargoylesoftware.css.parser.condition.ClassCondition in project LoboEvolution by LoboEvolution.
the class CSS3Parser method _class.
//
// class
// : '.' IDENT
// ;
//
public final Condition _class(boolean pseudoElementFound) throws ParseException {
Token t;
Locator locator;
ParseException pe = null;
try {
if (pseudoElementFound) {
pe = generateParseException();
}
jj_consume_token(DOT);
locator = createLocator(token);
t = jj_consume_token(IDENT);
if (pseudoElementFound) {
throw pe;
}
return new ClassCondition(unescape(t.image, false), locator);
} catch (ParseException e) {
throw toCSSParseException("invalidClassSelector", e);
}
}
Aggregations