| Modifier and Type | Field and Description |
|---|---|
static TokenRole |
IMPORT_KEYWORD_RULE |
static ImportDeclaration |
NULL |
AST_NODE_USED_FLAGS, flagsCHILD_ITERATOR| Constructor and Description |
|---|
ImportDeclaration() |
ImportDeclaration(AstType type) |
ImportDeclaration(PackageReference pkg) |
ImportDeclaration(java.lang.String packageOrTypeName) |
ImportDeclaration(TypeReference type) |
| Modifier and Type | Method and Description |
|---|---|
<T,R> R |
acceptVisitor(IAstVisitor<? super T,? extends R> visitor,
T data) |
java.lang.String |
getImport() |
Identifier |
getImportIdentifier() |
JavaTokenNode |
getImportToken() |
NodeType |
getNodeType() |
JavaTokenNode |
getSemicolonToken() |
boolean |
matches(INode other,
Match match) |
void |
setImport(java.lang.String value) |
void |
setImportIdentifier(Identifier value) |
addChild, clone, contains, contains, copyUserDataFrom, forPattern, freezeCore, getAncestors, getAncestors, getAncestorsAndSelf, getChildByRole, getChildren, getChildrenByRole, getDescendants, getDescendantsAndSelf, getEndLocation, getFirstChild, getLastChild, getNextNode, getNextSibling, getNextSibling, getParent, getParent, getPreviousNode, getPreviousSibling, getPreviousSibling, getRegion, getRole, getStartLocation, getText, getText, getUserData, hasChildren, insertChildAfter, insertChildBefore, insertChildrenAfter, insertChildrenBefore, isAncestorOf, isDescendantOf, isInside, isInside, isLoop, isNull, isReference, isUnconditionalBranch, match, matches, matchesCollection, matchString, putUserData, putUserDataIfAbsent, remove, replace, replaceWith, replaceWith, setChildByRole, setRole, toStringpublic static final TokenRole IMPORT_KEYWORD_RULE
public static final ImportDeclaration NULL
public ImportDeclaration()
public ImportDeclaration(java.lang.String packageOrTypeName)
public ImportDeclaration(PackageReference pkg)
public ImportDeclaration(TypeReference type)
public ImportDeclaration(AstType type)
public final java.lang.String getImport()
public final void setImport(java.lang.String value)
public final Identifier getImportIdentifier()
public final void setImportIdentifier(Identifier value)
public final JavaTokenNode getImportToken()
public final JavaTokenNode getSemicolonToken()
public NodeType getNodeType()
getNodeType in class AstNodepublic <T,R> R acceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
acceptVisitor in class AstNode