예제 #1
0
 @Override
 public Void visitSwitchDefault(SwitchDefault node) {
   visitList(node.getLabels(), " ", " ");
   writer.print("default: ");
   visitList(node.getStatements(), " ");
   return null;
 }
예제 #2
0
 @Override
 public Void visitSwitchDefault(SwitchDefault node) {
   for (Label label : node.getLabels()) {
     LabelElementImpl element = new LabelElementImpl(label.getLabel(), false, true);
     currentHolder.addLabel(element);
   }
   return null;
 }
예제 #3
0
  @Override
  public Void visitSwitchDefault(SwitchDefault 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 visitSwitchDefault(SwitchDefault node) {
   node.visitChildren(this);
   return null;
 }