aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.matcher
diff options
context:
space:
mode:
authorAndy Clement <andrew.clement@gmail.com>2013-02-04 13:33:26 -0800
committerAndy Clement <andrew.clement@gmail.com>2013-02-04 13:33:26 -0800
commit4af4b1e634c9dbb8af1741aad22a2c3441aa1751 (patch)
treedf6ff6764f8c204ee7857cbb78e17536ba8d0faf /org.aspectj.matcher
parentd524403d64f7d5d8f84ddb3e91afa4e3b91fd958 (diff)
downloadaspectj-4af4b1e634c9dbb8af1741aad22a2c3441aa1751.tar.gz
aspectj-4af4b1e634c9dbb8af1741aad22a2c3441aa1751.zip
399590
Diffstat (limited to 'org.aspectj.matcher')
-rw-r--r--org.aspectj.matcher/src/org/aspectj/weaver/BoundedReferenceType.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/BoundedReferenceType.java b/org.aspectj.matcher/src/org/aspectj/weaver/BoundedReferenceType.java
index 30a2e4e4c..dc28ad3c1 100644
--- a/org.aspectj.matcher/src/org/aspectj/weaver/BoundedReferenceType.java
+++ b/org.aspectj.matcher/src/org/aspectj/weaver/BoundedReferenceType.java
@@ -115,6 +115,28 @@ public class BoundedReferenceType extends ReferenceType {
}
}
+ @Override
+ public String getSignatureForAttribute() {
+ StringBuilder ret = new StringBuilder();
+ if (kind==SUPER){
+ ret.append("-");
+ ret.append(lowerBound.getSignatureForAttribute());
+ for (int i=0;i<additionalInterfaceBounds.length;i++) {
+ ret.append(additionalInterfaceBounds[i].getSignatureForAttribute());
+ }
+ } else if (kind==EXTENDS) {
+ ret.append("+");
+ ret.append(upperBound.getSignatureForAttribute());
+ for (int i=0;i<additionalInterfaceBounds.length;i++) {
+ ret.append(additionalInterfaceBounds[i].getSignatureForAttribute());
+ }
+ } else if (kind==UNBOUND) {
+ ret.append("*");
+ }
+ return ret.toString();
+ }
+
+
public boolean hasLowerBound() {
return lowerBound != null;
}