throw new IllegalStateException("Unexpected selector " + selector);
}
// Javadoc inherited.
public void visit(PseudoClassSelector selector) {
PseudoClassTypeEnum type = selector.getPseudoClassType();
StatefulPseudoClass pseudoClass = pseudoStyleEntities.
getStatefulPseudoClass(type.getType());
if (pseudoClass == null) {
throw new IllegalStateException(
"Unexpected pseudo class " + type);
}