isCommentedOut, name, rewriter, UNITIALIZED_STRING
EMPTY_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, trackAndReplace
computeQualifiedName, computeQualifiedName, computeQualifiedName, computeQualifiedName, getChildren, getName, getQualifiedName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildren, getContents, getParent, getQualifiedName
public ASTJImport(ImportDeclaration importDeclaration)
importDeclaration
- public boolean isOnDemand()
true
if original import was an "on demand" import.isOnDemand
in interface JImport
true
if this in an on-demand importJImport.isOnDemand()
public java.lang.String getName()
getName
in interface JNode
null
if it has no nameJNode.getName()
public void setName(java.lang.String name)
setName
in interface JNode
JNode.setName(java.lang.String)
,
JNode.getQualifiedName()
public int getFlags()
For import, only FacadeFlags.STATIC
flag is set.
getFlags
in interface JNode
getFlags
in class AbstractJNode
AbstractJNode.getFlags()
public void setFlags(int flags)
FacadeFlags.STATIC
flag.
Note that getFlags()
will not return the new value.
setFlags
in interface JNode
setFlags
in class ASTJNode<ImportDeclaration>
flags
- the flagsASTJNode.setFlags(int)