public final class ImportDeclaration extends Node
 This class represents a import declaration. Imports are optional for the
 CompilationUnit.
 
| ImportDeclaration | ::= | "import" ( "static" )? NameExpr( "." "*" )? ";" | 
| Constructor and Description | 
|---|
| ImportDeclaration() | 
| ImportDeclaration(int beginLine,
                 int beginColumn,
                 int endLine,
                 int endColumn,
                 NameExpr name,
                 boolean isStatic,
                 boolean isAsterisk) | 
| ImportDeclaration(NameExpr name,
                 boolean isStatic,
                 boolean isAsterisk) | 
| Modifier and Type | Method and Description | 
|---|---|
| <R,A> R | accept(GenericVisitor<R,A> v,
      A arg)Accept method for visitor support. | 
| <A> void | accept(VoidVisitor<A> v,
      A arg)Accept method for visitor support. | 
| NameExpr | getName()Retrieves the name of the import. | 
| boolean | isAsterisk()Return if the import ends with "*". | 
| boolean | isStatic()Return if the import is static. | 
| void | setAsterisk(boolean asterisk)Sets if this import is asterisk. | 
| void | setName(NameExpr name)Sets the name this import. | 
| void | setStatic(boolean static_)Sets if this import is static. | 
equals, getBeginColumn, getBeginLine, getData, getEndColumn, getEndLine, hashCode, setBeginColumn, setBeginLine, setData, setEndColumn, setEndLine, toStringpublic ImportDeclaration()
public ImportDeclaration(NameExpr name, boolean isStatic, boolean isAsterisk)
public ImportDeclaration(int beginLine,
                         int beginColumn,
                         int endLine,
                         int endColumn,
                         NameExpr name,
                         boolean isStatic,
                         boolean isAsterisk)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic NameExpr getName()
public boolean isAsterisk()
true if the import ends with "*", false
         otherwisepublic boolean isStatic()
true if the import is static, false
         otherwisepublic void setAsterisk(boolean asterisk)
asterisk - true if this import is asteriskpublic void setName(NameExpr name)
name - the name to setpublic void setStatic(boolean static_)
static_ - true if this import is static