package com.github.javaparser.ast;
@Wonderful package anything.can.be.annotated.nowadays;
| Modifier and Type | Field and Description |
|---|---|
| private NodeList | |
| private Name |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | PackageDeclaration(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, Name name)
This constructor is used by the parser and is considered private. |
| Modifier and Type | Method and Description |
|---|---|
| public <R, A> R | accept(final GenericVisitor<R, A>
the visitor implementation v, final A the argument passed to the visitor (of type A) arg)Implements com. |
| public <A> void | accept(final VoidVisitor<A>
the visitor implementation v, final A any value relevant for the visitor (of type A) arg)Implements com. |
| public PackageDeclaration | |
| public NodeList | Returns: list of annotations ornullImplements com. |
| public PackageDeclarationMetaModel | |
| public Name | Returns: the name of the packageImplements com. |
| public boolean | |
| public boolean | |
| public PackageDeclaration | setAnnotations(final NodeList<AnnotationExpr>
the annotations to set annotations)Implements com. |
| public PackageDeclaration | setName(final Name
the name to set name)Implements com. |
| annotations | back to summary |
|---|---|
| private NodeList<AnnotationExpr> annotations | |
| name | back to summary |
|---|---|
| private Name name | |
| PackageDeclaration | back to summary |
|---|---|
| public PackageDeclaration() | |
| PackageDeclaration | back to summary |
|---|---|
| public PackageDeclaration(Name name) | |
| PackageDeclaration | back to summary |
|---|---|
public PackageDeclaration(NodeList<AnnotationExpr> annotations, Name name)
| |
| PackageDeclaration | back to summary |
|---|---|
| public PackageDeclaration(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, Name name) This constructor is used by the parser and is considered private.
| |
| accept | back to summary |
|---|---|
| public <R, A> R accept(final GenericVisitor<R, A> v, final A arg) Implements com. Doc from com. Accept method for visitor support.
| |
| accept | back to summary |
|---|---|
| public <A> void accept(final VoidVisitor<A> v, final A arg) Implements com. Doc from com. Accept method for visitor support.
| |
| clone | back to summary |
|---|---|
| public PackageDeclaration clone() Overrides com. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getAnnotations | back to summary |
|---|---|
| public NodeList Implements com. Retrieves the list of annotations declared before the package
declaration. Return
| |
| getMetaModel | back to summary |
|---|---|
| public PackageDeclarationMetaModel getMetaModel() Overrides com.
| |
| getName | back to summary |
|---|---|
| public Name getName() Implements com. Return the name expression of the package.
| |
| remove | back to summary |
|---|---|
| public boolean remove(Node node) Overrides com.
| |
| replace | back to summary |
|---|---|
| public boolean replace(Node node, Node replacementNode) Overrides com.
| |
| setAnnotations | back to summary |
|---|---|
| public PackageDeclaration setAnnotations(final NodeList<AnnotationExpr> annotations) Implements com.
| |
| setName | back to summary |
|---|---|
| public PackageDeclaration setName(final Name name) Implements com. Sets the name of this package declaration.
| |