|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.codegen.merge.java.facade.AbstractJNode
org.eclipse.emf.codegen.merge.java.facade.ast.ASTJNode<T>
org.eclipse.emf.codegen.merge.java.facade.ast.ASTJMember<T>
T - wrapped body declaration typepublic abstract class ASTJMember<T extends org.eclipse.jdt.core.dom.BodyDeclaration>
Each ASTJMember has a reference to BodyDeclaration as a wrapped object.
| Field Summary | |
|---|---|
protected java.lang.String |
comment
Cached value of member comment. |
| Fields inherited from class org.eclipse.emf.codegen.merge.java.facade.ast.ASTJNode |
|---|
isCommentedOut, name, rewriter, UNITIALIZED_STRING |
| Fields inherited from class org.eclipse.emf.codegen.merge.java.facade.AbstractJNode |
|---|
EMPTY_STRING_ARRAY, qualifiedName |
| Constructor Summary | |
|---|---|
ASTJMember(T bodyDeclaration)
|
|
| Method Summary | |
|---|---|
boolean |
addChild(ASTJNode<?> child)
Adds a child to this node. |
void |
dispose()
|
protected java.util.List<JNode> |
getAnnotationList()
|
java.util.List<JNode> |
getChildren()
Returns the children of this node. |
java.lang.String |
getComment()
Returns the comment associated with this member (including comment delimiters). |
int |
getFlags()
Returns original flags of the member. |
protected void |
insertLastAnnotation(ASTJAnnotation annotation)
Insert annotation after the last annotation of the given body declaration. |
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 a node. |
void |
setComment(java.lang.String comment)
Sets the comment associated with this member. |
void |
setFlags(int flags)
Sets the flags of the member. |
| Methods inherited from class org.eclipse.emf.codegen.merge.java.facade.ast.ASTJNode |
|---|
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 |
| Methods inherited from class org.eclipse.emf.codegen.merge.java.facade.AbstractJNode |
|---|
computeQualifiedName, computeQualifiedName, computeQualifiedName, computeQualifiedName, getName, getQualifiedName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.emf.codegen.merge.java.facade.JNode |
|---|
getContents, getName, getParent, getQualifiedName, setName |
| Field Detail |
|---|
protected java.lang.String comment
getComment(),
setComment(String)| Constructor Detail |
|---|
public ASTJMember(T bodyDeclaration)
bodyDeclaration - | Method Detail |
|---|
public void dispose()
dispose in class ASTJNode<T extends org.eclipse.jdt.core.dom.BodyDeclaration>public int getFlags()
getFlags in interface JNodegetFlags in class AbstractJNodeAbstractJNode.getFlags()public void setFlags(int flags)
Note that getFlags() will not return the new value.
setFlags in interface JNodesetFlags in class ASTJNode<T extends org.eclipse.jdt.core.dom.BodyDeclaration>flags - the flagsASTJNode.setFlags(int)public java.lang.String getComment()
JMember
getComment in interface JMembernull if this member has no associated
commentpublic void setComment(java.lang.String comment)
JMembernull comment indicates no comment.
setComment in interface JMembercomment - the comment, including comment delimiters, or
null indicating this member should have no associated commentpublic boolean remove(ASTJNode<?> node)
ASTJNode
Default implementation does nothing and returns false.
remove in class ASTJNode<T extends org.eclipse.jdt.core.dom.BodyDeclaration>node - must be a child of this node
true if operation successful, false otherwise
public 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 ASTJNode<T extends org.eclipse.jdt.core.dom.BodyDeclaration>newSibling - to insertbefore - true if newSibling must be before node, false if after
true if operation successful, false otherwisepublic boolean addChild(ASTJNode<?> child)
ASTJNode
Default implementation does nothing and returns false.
addChild in class ASTJNode<T extends org.eclipse.jdt.core.dom.BodyDeclaration>child - to add
true if operation successful, false otherwisepublic java.util.List<JNode> getChildren()
JNodeThe list must be unmodifiable if the implementation doesn't support direct manipulation.
getChildren in interface JNodegetChildren in class AbstractJNodeprotected java.util.List<JNode> getAnnotationList()
protected void insertLastAnnotation(ASTJAnnotation annotation)
Note that modifiers and annotations can alternate in the modifiers list. This method inserts the new annotation after the last existing annotation.
annotation -
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||