aboutsummaryrefslogtreecommitdiffstats
path: root/asm
diff options
context:
space:
mode:
authormkersten <mkersten>2004-03-10 21:18:21 +0000
committermkersten <mkersten>2004-03-10 21:18:21 +0000
commitd5165134df129951544fa354b74b256bdb482688 (patch)
tree6a321c5e738308191e4b6fb033688a3894abd179 /asm
parent799a74bf1cb3350cb0ab8ec55d23075524d4f240 (diff)
downloadaspectj-d5165134df129951544fa354b74b256bdb482688.tar.gz
aspectj-d5165134df129951544fa354b74b256bdb482688.zip
Fixed generation and access of return types on IProgramElements(s).
Diffstat (limited to 'asm')
-rw-r--r--asm/src/org/aspectj/asm/IProgramElement.java16
-rw-r--r--asm/src/org/aspectj/asm/internal/ProgramElement.java6
2 files changed, 17 insertions, 5 deletions
diff --git a/asm/src/org/aspectj/asm/IProgramElement.java b/asm/src/org/aspectj/asm/IProgramElement.java
index f45493e4e..8bf641ce8 100644
--- a/asm/src/org/aspectj/asm/IProgramElement.java
+++ b/asm/src/org/aspectj/asm/IProgramElement.java
@@ -49,8 +49,15 @@ public interface IProgramElement extends Serializable {
public String getDeclaringType(); // TODO: remove (Emacs uses it)
public String getPackageName();
- public void setReturnType(String returnType);
- public String getReturnType();
+ /**
+ * @param method return types or field types
+ */
+ public void setCorrespondingType(String returnType);
+
+ /**
+ * This correponds to both method return types and field types.
+ */
+ public String getCorrespondingType();
public String toSignatureString();
@@ -72,6 +79,11 @@ public interface IProgramElement extends Serializable {
public String toString();
/**
+ * @return the javadoc comment for this program element, null if not available
+ */
+ public String getFormalComment();
+
+ /**
* Includes information about the origin of the node.
*/
public String toLinkLabelString();
diff --git a/asm/src/org/aspectj/asm/internal/ProgramElement.java b/asm/src/org/aspectj/asm/internal/ProgramElement.java
index 559abd353..6f83e3be9 100644
--- a/asm/src/org/aspectj/asm/internal/ProgramElement.java
+++ b/asm/src/org/aspectj/asm/internal/ProgramElement.java
@@ -33,7 +33,7 @@ public class ProgramElement implements IProgramElement {
protected List children = new ArrayList();
protected IMessage message = null;
protected ISourceLocation sourceLocation = null;
-
+
private List modifiers = new ArrayList();
private List relations = new ArrayList();
@@ -281,11 +281,11 @@ public class ProgramElement implements IProgramElement {
this.kind = kind;
}
- public void setReturnType(String returnType) {
+ public void setCorrespondingType(String returnType) {
this.returnType = returnType;
}
- public String getReturnType() {
+ public String getCorrespondingType() {
return returnType;
}