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. ASTIfStatement.java */
5   
6   package net.sourceforge.pmd.lang.java.ast;
7   
8   public class ASTIfStatement extends AbstractJavaNode {
9       public ASTIfStatement(int id) {
10          super(id);
11      }
12  
13      public ASTIfStatement(JavaParser p, int id) {
14          super(p, id);
15      }
16  
17      private boolean hasElse;
18  
19      public void setHasElse() {
20          this.hasElse = true;
21      }
22  
23      public boolean hasElse() {
24          return this.hasElse;
25      }
26  
27      /**
28       * Accept the visitor. *
29       */
30      public Object jjtAccept(JavaParserVisitor visitor, Object data) {
31          return visitor.visit(this, data);
32      }
33  }