View Javadoc
1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   /* Generated By:JJTree: Do not edit this line. ASTSwitchLabel.java */
5   
6   package net.sourceforge.pmd.lang.java.ast;
7   
8   public class ASTSwitchLabel extends AbstractJavaNode {
9       public ASTSwitchLabel(int id) {
10          super(id);
11      }
12  
13      public ASTSwitchLabel(JavaParser p, int id) {
14          super(p, id);
15      }
16  
17      private boolean isDefault;
18  
19      public void setDefault() {
20          isDefault = true;
21      }
22  
23      public boolean isDefault() {
24          return isDefault;
25      }
26  
27  
28      /**
29       * Accept the visitor. *
30       */
31      public Object jjtAccept(JavaParserVisitor visitor, Object data) {
32          return visitor.visit(this, data);
33      }
34  }