@Override public Void visitSwitchCase(SwitchCase node) { for (Label label : node.getLabels()) { LabelElementImpl element = new LabelElementImpl(label.getLabel(), false, true); currentHolder.addLabel(element); } return null; }
@Override public Void visitSwitchCase(SwitchCase node) { visitList(node.getLabels(), " ", " "); writer.print("case "); visit(node.getExpression()); writer.print(": "); visitList(node.getStatements(), " "); return null; }
@Override public Void visitSwitchCase(SwitchCase node) { for (Label label : node.getLabels()) { SimpleIdentifier labelName = label.getLabel(); LabelElementImpl element = new LabelElementImpl(labelName, false, true); currentHolder.addLabel(element); labelName.setElement(element); } return null; }