Esempio n. 1
0
 @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()) {
     LabelElementImpl element = new LabelElementImpl(label.getLabel(), false, true);
     currentHolder.addLabel(element);
   }
   return null;
 }
Esempio n. 3
0
  @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;
  }
 @Override
 public R visitSwitchCase(SwitchCase node) {
   node.visitChildren(this);
   return null;
 }