Class PackageDeclaration

java.lang.Object
com.github.javaparser.ast.Node
com.github.javaparser.ast.PackageDeclaration
All Implemented Interfaces:
NodeWithAnnotations<PackageDeclaration>, NodeWithName<PackageDeclaration>, NodeWithRange<Node>, NodeWithTokenRange<Node>, Observable, Visitable, HasParentNode<Node>, Cloneable

public class PackageDeclaration extends Node implements NodeWithAnnotations<PackageDeclaration>, NodeWithName<PackageDeclaration>
A package declaration.
package com.github.javaparser.ast;
@Wonderful package anything.can.be.annotated.nowadays;
Author:
Julio Vilmar Gesser
  • Constructor Details

    • PackageDeclaration

      public PackageDeclaration()
    • PackageDeclaration

      public PackageDeclaration(Name name)
    • PackageDeclaration

      public PackageDeclaration(NodeList<AnnotationExpr> annotations, Name name)
    • PackageDeclaration

      public PackageDeclaration(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, Name name)
      This constructor is used by the parser and is considered private.
  • Method Details