org.codehaus.jam.mutable
Interface MAnnotatedElement

All Superinterfaces:
JAnnotatedElement, JElement, MElement
All Known Subinterfaces:
MClass, MConstructor, MField, MInvokable, MMember, MMethod, MPackage, MParameter

public interface MAnnotatedElement
extends MElement, JAnnotatedElement

Mutable version of JAnnotatedElement.

Author:
Patrick Calahan <email: pcal-at-bea-dot-com>

Method Summary
 MAnnotation addLiteralAnnotation(java.lang.String annotationName)
           
 MComment createComment()
           
 MAnnotation findOrCreateAnnotation(java.lang.String annotationName)
          Returns the annotation having the given name, creating it if it doesn't exist.
 MAnnotation getMutableAnnotation(java.lang.String named)
           
 MAnnotation[] getMutableAnnotations()
           
 MComment getMutableComment()
           
 void removeComment()
           
 
Methods inherited from interface org.codehaus.jam.mutable.MElement
accept, createSourcePosition, getClassLoader, getMutableSourcePosition, removeSourcePosition, setArtifact, setSimpleName
 
Methods inherited from interface org.codehaus.jam.JElement
accept, getArtifact, getParent, getQualifiedName, getSimpleName, getSourcePosition, isSourceAvailable, toString
 
Methods inherited from interface org.codehaus.jam.JAnnotatedElement
getAllJavadocTags, getAnnotation, getAnnotation, getAnnotations, getAnnotationValue, getComment
 

Method Detail

findOrCreateAnnotation

public MAnnotation findOrCreateAnnotation(java.lang.String annotationName)
Returns the annotation having the given name, creating it if it doesn't exist.


getMutableAnnotations

public MAnnotation[] getMutableAnnotations()

getMutableAnnotation

public MAnnotation getMutableAnnotation(java.lang.String named)

addLiteralAnnotation

public MAnnotation addLiteralAnnotation(java.lang.String annotationName)

getMutableComment

public MComment getMutableComment()

createComment

public MComment createComment()

removeComment

public void removeComment()