aboutsummaryrefslogtreecommitdiffstats
path: root/asm
diff options
context:
space:
mode:
authormkersten <mkersten>2004-04-07 04:11:06 +0000
committermkersten <mkersten>2004-04-07 04:11:06 +0000
commit0838dbbc6b02c59485da9cda1dccc27423aab799 (patch)
tree44f15748e22f41a0a9375d400d4478a2b3fdbb35 /asm
parentb112bc9ab992a16d1270dec069772dbf74bfce1e (diff)
downloadaspectj-0838dbbc6b02c59485da9cda1dccc27423aab799.tar.gz
aspectj-0838dbbc6b02c59485da9cda1dccc27423aab799.zip
Added support for getting/setting formal comments
Diffstat (limited to 'asm')
-rw-r--r--asm/src/org/aspectj/asm/IProgramElement.java3
-rw-r--r--asm/src/org/aspectj/asm/internal/ProgramElement.java4
2 files changed, 6 insertions, 1 deletions
diff --git a/asm/src/org/aspectj/asm/IProgramElement.java b/asm/src/org/aspectj/asm/IProgramElement.java
index 825db4cd3..83374889a 100644
--- a/asm/src/org/aspectj/asm/IProgramElement.java
+++ b/asm/src/org/aspectj/asm/IProgramElement.java
@@ -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.
*/
diff --git a/asm/src/org/aspectj/asm/internal/ProgramElement.java b/asm/src/org/aspectj/asm/internal/ProgramElement.java
index 1beec6173..3cff3287d 100644
--- a/asm/src/org/aspectj/asm/internal/ProgramElement.java
+++ b/asm/src/org/aspectj/asm/internal/ProgramElement.java
@@ -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();