import com.github.javaparser.JavaParser;
import com.github.javaparser.*;
import com.github.javaparser.JavaParser.*;
import static com.github.javaparser.JavaParser.*;
import static com.github.javaparser.JavaParser.parse;
The name does not include the asterisk or the static keyword.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private Name |
| Access | Constructor and Description |
|---|---|
| private | |
| public | |
| public | |
| public | ImportDeclaration(TokenRange tokenRange, Name name, boolean isStatic, boolean isAsterisk)
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 ImportDeclaration | |
| public ImportDeclarationMetaModel | |
| public Name | getName()
Implements com. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public ImportDeclaration | |
| public ImportDeclaration | |
| public ImportDeclaration |
| isAsterisk | back to summary |
|---|---|
| private boolean isAsterisk | |
| isStatic | back to summary |
|---|---|
| private boolean isStatic | |
| name | back to summary |
|---|---|
| private Name name | |
| ImportDeclaration | back to summary |
|---|---|
| private ImportDeclaration() | |
| ImportDeclaration | back to summary |
|---|---|
| public ImportDeclaration(String name, boolean isStatic, boolean isAsterisk) | |
| ImportDeclaration | back to summary |
|---|---|
public ImportDeclaration(Name name, boolean isStatic, boolean isAsterisk)
| |
| ImportDeclaration | back to summary |
|---|---|
| public ImportDeclaration(TokenRange tokenRange, Name name, boolean isStatic, boolean isAsterisk) 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 ImportDeclaration 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
| |
| getMetaModel | back to summary |
|---|---|
| public ImportDeclarationMetaModel getMetaModel() Overrides com.
| |
| getName | back to summary |
|---|---|
| public Name getName() Implements com. Retrieves the name of the import (.* is not included.)
| |
| isAsterisk | back to summary |
|---|---|
| public boolean isAsterisk() Return if the import ends with "*".
| |
| isStatic | back to summary |
|---|---|
public boolean isStatic()
| |
| remove | back to summary |
|---|---|
| public boolean remove(Node node) Overrides com.
| |
| replace | back to summary |
|---|---|
| public boolean replace(Node node, Node replacementNode) Overrides com.
| |
| setAsterisk | back to summary |
|---|---|
public ImportDeclaration setAsterisk(final boolean isAsterisk)
| |
| setName | back to summary |
|---|---|
| public ImportDeclaration setName(final Name name) Implements com.
| |
| setStatic | back to summary |
|---|---|
public ImportDeclaration setStatic(final boolean isStatic)
| |