Updated switch statement in PseudoClass method to correctly handle default case.