]> source.dussan.org Git - aspectj.git/commitdiff
Added support for getting/setting formal comments
authormkersten <mkersten>
Wed, 7 Apr 2004 04:11:06 +0000 (04:11 +0000)
committermkersten <mkersten>
Wed, 7 Apr 2004 04:11:06 +0000 (04:11 +0000)
asm/src/org/aspectj/asm/IProgramElement.java
asm/src/org/aspectj/asm/internal/ProgramElement.java

index 825db4cd300747fcea4c55c2cc3820582754e846..83374889a70b8a88300582e8b8bbc917dea1f8c2 100644 (file)
@@ -82,7 +82,8 @@ public interface IProgramElement extends Serializable {
         * @return the javadoc comment for this program element, null if not available
         */
        public String getFormalComment();
-       
+       public void setFormalComment(String comment);
+         
        /**
         * Includes information about the origin of the node.
         */
index 1beec6173a4cb4c4995f46b5de2a7305411e87f9..3cff3287dc1d70435c1d9f1a453377f9c309dc75 100644 (file)
@@ -474,6 +474,10 @@ public class ProgramElement implements IProgramElement {
                details = string;
        }
        
+       public void setFormalComment(String formalComment) {
+               this.formalComment = formalComment;
+       }
+       
        /** AMC added to speed up findByHandle lookups in AspectJElementHierarchy */
        private void cacheByHandle() {
                String handle = getHandleIdentifier();