public interface IImportDeclaration extends IJavaScriptElement, ISourceReference, ISourceManipulation
This interface is not intended to be implemented by clients.
This Interface only applies to ECMAScript 4 which is not yet supported Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.CLASS_FILE, EXPORT_CONTAINER, EXPORT_DECLARATION, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVASCRIPT_MODEL, JAVASCRIPT_PROJECT, JAVASCRIPT_UNIT, LOCAL_VARIABLE, METHOD, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getElementName()
Returns the name that has been imported.
|
int |
getFlags()
Returns the modifier flags for this import.
|
boolean |
isOnDemand() |
exists, getAncestor, getAttachedJavadoc, getCommonSuperType, getCorrespondingResource, getDisplayName, getElementType, getHandleIdentifier, getHostPath, getJavaScriptModel, getJavaScriptProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnown, isVirtual
newNameLookup, newNameLookup, newSearchableNameEnvironment, newSearchableNameEnvironment
exists, getSource, getSourceRange
copy, delete, move, rename
java.lang.String getElementName()
getElementName
in interface IJavaScriptElement
int getFlags() throws JavaScriptModelException
Flags
. Only the static flag is meaningful for import declarations.JavaScriptModelException
- if this element does not exist or if an
exception occurs while accessing its corresponding resource.Flags
boolean isOnDemand()
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.