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. ASTClassOrInterfaceDeclaration.java */
5   
6   package net.sourceforge.pmd.lang.java.ast;
7   
8   public class ASTClassOrInterfaceDeclaration extends AbstractJavaAccessTypeNode {
9       public ASTClassOrInterfaceDeclaration(int id) {
10          super(id);
11      }
12  
13      public ASTClassOrInterfaceDeclaration(JavaParser p, int id) {
14          super(p, id);
15      }
16      
17      @Override
18      public boolean isFindBoundary() {
19  	return isNested();
20      }
21  
22      /**
23       * Accept the visitor. *
24       */
25      public Object jjtAccept(JavaParserVisitor visitor, Object data) {
26          return visitor.visit(this, data);
27      }
28  
29      public boolean isNested() {
30          return jjtGetParent() instanceof ASTClassOrInterfaceBodyDeclaration;
31      }
32  
33      private boolean isInterface;
34  
35      public boolean isInterface() {
36          return this.isInterface;
37      }
38  
39      public void setInterface() {
40          this.isInterface = true;
41      }
42  }