use of com.gargoylesoftware.css.dom.Property in project LoboEvolution by LoboEvolution.
the class CSS3Parser method mediaExpression.
//
// expression
// : '(' S* media_feature S* [ ':' S* expr ]? ')' S*
// ;
//
public final Property mediaExpression() throws ParseException {
String p;
LexicalUnit e = null;
Property prop;
jj_consume_token(LROUND);
label_18: while (true) {
switch((jj_ntk == -1) ? jj_ntk_f() : jj_ntk) {
case S:
{
;
break;
}
default:
jj_la1[30] = jj_gen;
break label_18;
}
jj_consume_token(S);
}
p = property();
switch((jj_ntk == -1) ? jj_ntk_f() : jj_ntk) {
case COLON:
{
jj_consume_token(COLON);
label_19: while (true) {
switch((jj_ntk == -1) ? jj_ntk_f() : jj_ntk) {
case S:
{
;
break;
}
default:
jj_la1[31] = jj_gen;
break label_19;
}
jj_consume_token(S);
}
e = expr();
break;
}
default:
jj_la1[32] = jj_gen;
;
}
jj_consume_token(RROUND);
label_20: while (true) {
switch((jj_ntk == -1) ? jj_ntk_f() : jj_ntk) {
case S:
{
;
break;
}
default:
jj_la1[33] = jj_gen;
break label_20;
}
jj_consume_token(S);
}
if (e == null) {
prop = new Property(p, null, false);
} else {
prop = new Property(p, new CSSValueImpl(e), false);
}
return prop;
}
Aggregations