isCommentedOut, name, rewriter, UNITIALIZED_STRING
EMPTY_STRING_ARRAY, qualifiedName
Constructor and Description |
---|
ASTJPackage(PackageDeclaration packageDeclaration) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
fixPackageContent(java.lang.String content)
Fixes package contents to not include the header or the javadoc.
|
java.lang.String |
getContents()
Returns original contents of the package declaration without the javadoc of the package.
|
java.lang.String |
getName()
Returns the name of this node.
|
void |
setName(java.lang.String name)
Sets the name of this node.
|
addChild, addValueToListProperty, addValueToListProperty, ancestorInserted, ancestorToBeRemoved, childToBeChanged, combineArrayAndList, commentOut, convertASTNodeListToStringArray, disableTrackAndReplace, dispose, enableTrackAndReplace, getASTNode, getFacadeHelper, getParent, getRemovedASTNode, getRewriter, getWrappedObject, insert, insertFirst, insertLast, insertSibling, isDisposed, nodeToBeMoved, nodeToBeRemoved, remove, remove, removeNodeFromListProperty, removeTrackAndReplace, setASTNode, setFacadeHelper, setFlags, setListNodeProperty, setNodeProperty, setNodeProperty, setParent, setRemovedASTNode, setRewriter, setTrackedNodeProperty, setWrappedObject, trackAndReplace
computeQualifiedName, computeQualifiedName, computeQualifiedName, computeQualifiedName, getChildren, getFlags, getName, getQualifiedName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildren, getFlags, getParent, getQualifiedName, setFlags
public ASTJPackage(PackageDeclaration packageDeclaration)
packageDeclaration
- public java.lang.String getName()
JNode
public void setName(java.lang.String name)
JNode
setName
in interface JNode
JNode.getQualifiedName()
public java.lang.String getContents()
getContents
in interface JNode
getContents
in class ASTJNode<PackageDeclaration>
null
if this node has no contentsASTJNode.getContents()
protected java.lang.String fixPackageContent(java.lang.String content)
content
- PackageDeclaration