T
- wrapped AST AbstractTypepublic abstract class ASTJAbstractType<T extends AbstractTypeDeclaration> extends ASTJMember<T> implements JAbstractType
comment
isCommentedOut, name, rewriter, UNITIALIZED_STRING
EMPTY_STRING_ARRAY, qualifiedName
Modifier | Constructor and Description |
---|---|
protected |
ASTJAbstractType(T abstractTypeDeclaration) |
Modifier and Type | Method and Description |
---|---|
boolean |
addChild(ASTJNode<?> child)
Adds a child to this node.
|
protected java.lang.String |
computeQualifiedName() |
java.util.List<JNode> |
getChildren()
Returns the list of children.
|
protected java.util.List<JNode> |
getMembers() |
java.lang.String |
getName()
Returns the name of this node.
|
boolean |
insertSibling(ASTJNode<?> node,
ASTJNode<?> newSibling,
boolean before)
Inserts
newSibling as a child of this node before or after the given node . |
boolean |
remove(ASTJNode<?> node)
Removes the node.
|
void |
setName(java.lang.String name)
Sets the name of this node.
|
dispose, getAnnotationList, getComment, getFlags, insertLastAnnotation, setComment, setFlags
addValueToListProperty, addValueToListProperty, ancestorInserted, ancestorToBeRemoved, childToBeChanged, combineArrayAndList, commentOut, convertASTNodeListToStringArray, disableTrackAndReplace, enableTrackAndReplace, getASTNode, getContents, getFacadeHelper, getParent, getRemovedASTNode, getRewriter, getWrappedObject, insert, insertFirst, insertLast, isDisposed, nodeToBeMoved, nodeToBeRemoved, remove, removeNodeFromListProperty, removeTrackAndReplace, setASTNode, setFacadeHelper, setListNodeProperty, setNodeProperty, setNodeProperty, setParent, setRemovedASTNode, setRewriter, setTrackedNodeProperty, setWrappedObject, trackAndReplace
computeQualifiedName, computeQualifiedName, computeQualifiedName, getName, getQualifiedName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComment, setComment
getContents, getFlags, getParent, getQualifiedName, setFlags
protected ASTJAbstractType(T abstractTypeDeclaration)
public java.lang.String getName()
JNode
public void setName(java.lang.String name)
JNode
setName
in interface JNode
JNode.getQualifiedName()
protected java.lang.String computeQualifiedName()
computeQualifiedName
in class AbstractJNode
public java.util.List<JNode> getChildren()
getChildren
in interface JNode
getChildren
in class ASTJMember<T extends AbstractTypeDeclaration>
FacadeHelper.convertToNode(Object)
,
AbstractJNode.getChildren()
public boolean addChild(ASTJNode<?> child)
ASTJNode
Default implementation does nothing and returns false
.
addChild
in class ASTJMember<T extends AbstractTypeDeclaration>
child
- to addtrue
if operation successful, false
otherwisepublic boolean insertSibling(ASTJNode<?> node, ASTJNode<?> newSibling, boolean before)
ASTJNode
newSibling
as a child of this node before or after the given node
.
Default implementation does nothing and returns false
.
insertSibling
in class ASTJMember<T extends AbstractTypeDeclaration>
newSibling
- to insertbefore
- true
if newSibling
must be before node
, false
if aftertrue
if operation successful, false
otherwisepublic boolean remove(ASTJNode<?> node)
This implementation supports moving the nodes by calling remove(ASTJNode)
and
then insertSibling(ASTJNode, ASTJNode, boolean)
or addChild(ASTJNode)
.
remove
in class ASTJMember<T extends AbstractTypeDeclaration>
node
- must be a child of this nodetrue
if operation successful, false
otherwiseASTJNode.remove(ASTJNode)
protected java.util.List<JNode> getMembers()