aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.matcher
diff options
context:
space:
mode:
authoraclement <aclement>2010-01-19 18:47:50 +0000
committeraclement <aclement>2010-01-19 18:47:50 +0000
commit677a140584013888455e82df655ff3db06c2e507 (patch)
tree462390f95488c0c1575e427de84213bab78bb15f /org.aspectj.matcher
parent7199cc27214344dab99f1902c7f2a528264f12d4 (diff)
downloadaspectj-677a140584013888455e82df655ff3db06c2e507.tar.gz
aspectj-677a140584013888455e82df655ff3db06c2e507.zip
tagged old style name creators
Diffstat (limited to 'org.aspectj.matcher')
-rw-r--r--org.aspectj.matcher/src/org/aspectj/weaver/NameMangler.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/NameMangler.java b/org.aspectj.matcher/src/org/aspectj/weaver/NameMangler.java
index 201fd352d..f9162684a 100644
--- a/org.aspectj.matcher/src/org/aspectj/weaver/NameMangler.java
+++ b/org.aspectj.matcher/src/org/aspectj/weaver/NameMangler.java
@@ -113,10 +113,20 @@ public class NameMangler {
return makeName("privMethod", aspectType.getNameAsIdentifier(), objectType.getNameAsIdentifier(), name);
}
+ /**
+ * Create the old style (<1.6.9) format getter name which includes the aspect requesting access and the type containing the
+ * field in the name of the type. At 1.6.9 and above the name is simply ajc$get$<fieldname>
+ */
public static String privilegedAccessMethodForFieldGet(String name, UnresolvedType objectType, UnresolvedType aspectType) {
- return makeName("privFieldGet", aspectType.getNameAsIdentifier(), objectType.getNameAsIdentifier(), name);
+ StringBuilder nameBuilder = new StringBuilder();
+ nameBuilder.append(makeName("privFieldGet", aspectType.getNameAsIdentifier(), objectType.getNameAsIdentifier(), name));
+ return nameBuilder.toString();
}
+ /**
+ * Create the old style (<1.6.9) format setter name which includes the aspect requesting access and the type containing the
+ * field in the name of the type. At 1.6.9 and above the name is simply ajc$set$<fieldname>
+ */
public static String privilegedAccessMethodForFieldSet(String name, UnresolvedType objectType, UnresolvedType aspectType) {
return makeName("privFieldSet", aspectType.getNameAsIdentifier(), objectType.getNameAsIdentifier(), name);
}
@@ -185,7 +195,7 @@ public class NameMangler {
if (Modifier.isPublic(modifiers)) {
return name;
}
- // ??? might want to handle case where aspect and class are in same package similar to public
+ // // ??? might want to handle case where aspect and class are in same package similar to public
return makeName("interField", makeVisibilityName(modifiers, aspectType), name);
}