View Javadoc

    1   /* Generated By:JJTree: Do not edit this line. ASTClassOrInterfaceDeclaration.java */
    2
    3   package net.sourceforge.pmd.lang.java.ast;
    4
    5   public class ASTClassOrInterfaceDeclaration extends AbstractJavaAccessTypeNode {
    6       public ASTClassOrInterfaceDeclaration(int id) {
    7           super(id);
    8       }
    9
    10      public ASTClassOrInterfaceDeclaration(JavaParser p, int id) {
    11          super(p, id);
    12      }
    13
    14      @Override
    15      public boolean isFindBoundary() {
    16  	return isNested();
    17      }
    18
    19      /**
    20       * Accept the visitor. *
    21       */
    22      public Object jjtAccept(JavaParserVisitor visitor, Object data) {
    23          return visitor.visit(this, data);
    24      }
    25
    26      public boolean isNested() {
    27          return jjtGetParent() instanceof ASTClassOrInterfaceBodyDeclaration;
    28      }
    29
    30      private boolean isInterface;
    31
    32      public boolean isInterface() {
    33          return this.isInterface;
    34      }
    35
    36      public void setInterface() {
    37          this.isInterface = true;
    38      }
    39  }