*/
public Semantics getSemantics(String styleName) throws Exception {
RuleDesc ruleDesc = getRule(styleName);
// if no rule, use empty Semantics, to avoid null checks in many places
if (ruleDesc == null) {
return new Semantics();
}
// create Semantics for rule
CssRuleNode rule = ruleDesc.rule;
Semantics semantics = m_semantics.get(rule);
if (semantics == null) {
semantics = new Semantics();
semantics.parse(rule);
m_semantics.put(rule, semantics);
}
return semantics;
}