|
||||||||||
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<org.eclipse.jdt.core.dom.Annotation>
org.eclipse.emf.codegen.merge.java.facade.ast.ASTJAnnotation
public class ASTJAnnotation
Wraps Annotation
object. ASTJAnnotation nodes are
children of ASTJMember
.
Field Summary | |
---|---|
protected java.lang.String |
contents
Cached contents of this annotation |
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 | |
---|---|
protected |
ASTJAnnotation(org.eclipse.jdt.core.dom.Annotation annotation)
|
Method Summary | |
---|---|
void |
dispose()
|
java.lang.String |
getContents()
Get the original contents of the node using the source. |
java.lang.String |
getName()
Returns name of annotation type with preceding @ sign. |
protected org.eclipse.jdt.core.dom.Annotation |
getRewrittenASTNode()
|
void |
setContents(java.lang.String contents)
Overwrites the contents of the annotation with the given contents. |
void |
setName(java.lang.String name)
Sets the name of annotation type. |
protected void |
setRewrittenASTNode(org.eclipse.jdt.core.dom.Annotation rewrittenAnnotation)
|
Methods inherited from class org.eclipse.emf.codegen.merge.java.facade.ast.ASTJNode |
---|
addChild, addValueToListProperty, addValueToListProperty, ancestorInserted, ancestorToBeRemoved, childToBeChanged, combineArrayAndList, commentOut, convertASTNodeListToStringArray, disableTrackAndReplace, 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 |
Methods inherited from class org.eclipse.emf.codegen.merge.java.facade.AbstractJNode |
---|
computeQualifiedName, computeQualifiedName, computeQualifiedName, computeQualifiedName, getChildren, getFlags, 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 |
---|
getChildren, getFlags, getParent, getQualifiedName, setFlags |
Field Detail |
---|
protected java.lang.String contents
getContents()
,
setContents(String)
Constructor Detail |
---|
protected ASTJAnnotation(org.eclipse.jdt.core.dom.Annotation annotation)
annotation
- Method Detail |
---|
public void dispose()
dispose
in class ASTJNode<org.eclipse.jdt.core.dom.Annotation>
protected org.eclipse.jdt.core.dom.Annotation getRewrittenASTNode()
protected void setRewrittenASTNode(org.eclipse.jdt.core.dom.Annotation rewrittenAnnotation)
rewrittenAnnotation
- the annotation to use in set methodspublic 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
name
- name to setJNode.setName(java.lang.String)
public java.lang.String getContents()
ASTJNode
The contents of the node in AST implementation includes only the node itself without the leading or trailing whitespace. If the node has a Javadoc comment, it is included in the contents. No other leading or trailing comments are included in the node contents.
Note that this method returns the contents before any modifications. This method will not return the correct contents if the node has been cloned, removed or moved.
getContents
in interface JNode
getContents
in class ASTJNode<org.eclipse.jdt.core.dom.Annotation>
null
if this node has no contentsJNode.getContents()
public void setContents(java.lang.String contents)
JAnnotation
setContents
in interface JAnnotation
|
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 |