isCommentedOut, name, rewriter, UNITIALIZED_STRINGEMPTY_STRING_ARRAY, qualifiedName| Constructor and Description |
|---|
ASTJImport(ImportDeclaration importDeclaration) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFlags()
Returns original flags.
|
java.lang.String |
getName()
Returns the name of the import ending with ".*" for on demand imports.
|
boolean |
isOnDemand()
Return
true if original import was an "on demand" import. |
void |
setFlags(int flags)
Sets
FacadeFlags.STATIC flag. |
void |
setName(java.lang.String name)
Sets the name of the import to the given name and sets "on demand" property to false.
|
addChild, addValueToListProperty, addValueToListProperty, ancestorInserted, ancestorToBeRemoved, childToBeChanged, combineArrayAndList, commentOut, convertASTNodeListToStringArray, disableTrackAndReplace, dispose, enableTrackAndReplace, getASTNode, getContents, getFacadeHelper, getParent, getRemovedASTNode, getRewriter, getWrappedObject, insert, insertFirst, insertLast, insertSibling, isDisposed, nodeToBeMoved, nodeToBeRemoved, remove, remove, removeNodeFromListProperty, removeTrackAndReplace, setASTNode, setFacadeHelper, setListNodeProperty, setNodeProperty, setNodeProperty, setParent, setRemovedASTNode, setRewriter, setTrackedNodeProperty, setWrappedObject, trackAndReplacecomputeQualifiedName, computeQualifiedName, computeQualifiedName, computeQualifiedName, getChildren, getName, getQualifiedNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildren, getContents, getParent, getQualifiedNamepublic ASTJImport(ImportDeclaration importDeclaration)
importDeclaration - public boolean isOnDemand()
true if original import was an "on demand" import.isOnDemand in interface JImporttrue if this in an on-demand importJImport.isOnDemand()public java.lang.String getName()
getName in interface JNodenull if it has no nameJNode.getName()public void setName(java.lang.String name)
setName in interface JNodeJNode.setName(java.lang.String),
JNode.getQualifiedName()public int getFlags()
For import, only FacadeFlags.STATIC flag is set.
getFlags in interface JNodegetFlags in class AbstractJNodeAbstractJNode.getFlags()public void setFlags(int flags)
FacadeFlags.STATIC flag.
Note that getFlags() will not return the new value.
setFlags in interface JNodesetFlags in class ASTJNode<ImportDeclaration>flags - the flagsASTJNode.setFlags(int)Copyright © 2021. Licensed under the Eclipse Public License v2.0. All rights reserved.
Submit a bug or feature