T - wrapped AST AbstractTypepublic abstract class ASTJAbstractType<T extends AbstractTypeDeclaration> extends ASTJMember<T> implements JAbstractType
commentisCommentedOut, name, rewriter, UNITIALIZED_STRINGEMPTY_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, setFlagsaddValueToListProperty, 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, trackAndReplacecomputeQualifiedName, computeQualifiedName, computeQualifiedName, getName, getQualifiedNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComment, setCommentgetContents, getFlags, getParent, getQualifiedName, setFlagsprotected ASTJAbstractType(T abstractTypeDeclaration)
public java.lang.String getName()
JNodepublic void setName(java.lang.String name)
JNodesetName in interface JNodeJNode.getQualifiedName()protected java.lang.String computeQualifiedName()
computeQualifiedName in class AbstractJNodepublic java.util.List<JNode> getChildren()
getChildren in interface JNodegetChildren 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)
ASTJNodenewSibling 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()
Copyright © 2021. Licensed under the Eclipse Public License v2.0. All rights reserved.
Submit a bug or feature