public interface IImportNode extends IASNode
import directive.
The shape of this node is:
IImportNode IExpressionNode <-- getImportNameNode()For example,
import flash.display.Sprite;is represented as
IImportNode
IFullNameNode
IFullNameNode
IIdentifierNode "flash"
IIdentifierNode "display"
IIdentifierNode "Sprite"
| Modifier and Type | Interface and Description |
|---|---|
static class |
IImportNode.ImportKind
Represents a kind of import that his node represents
|
UNKNOWN| Modifier and Type | Method and Description |
|---|---|
IImportNode.ImportKind |
getImportKind()
Returns the type that this import represents
|
String |
getImportName()
Get the name of the target definition we are importing
|
IExpressionNode |
getImportNameNode()
Returns the expression underlying this import node
|
IImportTarget |
getImportTarget()
Creates an import target for the given import
|
boolean |
isWildcardImport()
Returns whether an import statement is a wildcard import or not
|
IDefinition |
resolveImport(ICompilerProject project)
Returns the definition being imported, or
null
if this is a wildcard import or if the import name
cannot be resolved. |
contains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getNodeID, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminalgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartString getImportName()
IExpressionNode getImportNameNode()
IExpressionNode for this importIImportNode.ImportKind getImportKind()
IImportNodeIImportTarget getImportTarget()
IImportTargetboolean isWildcardImport()
IDefinition resolveImport(ICompilerProject project)
null
if this is a wildcard import or if the import name
cannot be resolved.project - An ICompilerProject within which references
are resolved.IDefinition or null.Copyright © 2016 The Apache Software Foundation. All rights reserved.