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. ASTPackageDeclaration.java */
5   
6   package net.sourceforge.pmd.lang.java.ast;
7   
8   public class ASTPackageDeclaration extends AbstractJavaNode {
9       public ASTPackageDeclaration(int id) {
10  	super(id);
11      }
12  
13      public ASTPackageDeclaration(JavaParser p, int id) {
14  	super(p, id);
15      }
16  
17      /**
18       * Accept the visitor. *
19       */
20      @Override
21      public Object jjtAccept(JavaParserVisitor visitor, Object data) {
22  	return visitor.visit(this, data);
23      }
24  
25      public String getPackageNameImage() {
26  	return ((ASTName) jjtGetChild(this.jjtGetNumChildren() - 1)).getImage();
27      }
28  }