View Javadoc

    1   /* Generated By:JJTree: Do not edit this line. ASTPackageDeclaration.java */
    2
    3   package net.sourceforge.pmd.lang.java.ast;
    4
    5   public class ASTPackageDeclaration extends AbstractJavaNode {
    6       public ASTPackageDeclaration(int id) {
    7   	super(id);
    8       }
    9
    10      public ASTPackageDeclaration(JavaParser p, int id) {
    11  	super(p, id);
    12      }
    13
    14      /**
    15       * Accept the visitor. *
    16       */
    17      @Override
    18      public Object jjtAccept(JavaParserVisitor visitor, Object data) {
    19  	return visitor.visit(this, data);
    20      }
    21
    22      public String getPackageNameImage() {
    23  	return ((ASTName) jjtGetChild(this.jjtGetNumChildren() - 1)).getImage();
    24      }
    25  }