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