aboutsummaryrefslogtreecommitdiffstats
path: root/asm
diff options
context:
space:
mode:
authoraclement <aclement>2009-02-26 17:12:58 +0000
committeraclement <aclement>2009-02-26 17:12:58 +0000
commit11c44afad0a9e1c7cd656eab0290da45e2bb80e6 (patch)
tree4a6391639091ef29db12b77e21322094d0a180d6 /asm
parenta378bdbeeb2f6fe19befbb45d2b44f1afb77ab44 (diff)
downloadaspectj-11c44afad0a9e1c7cd656eab0290da45e2bb80e6.tar.gz
aspectj-11c44afad0a9e1c7cd656eab0290da45e2bb80e6.zip
265729: testing ctor/field/method itds
Diffstat (limited to 'asm')
-rw-r--r--asm/src/org/aspectj/asm/internal/HandleProviderDelimiter.java16
1 files changed, 11 insertions, 5 deletions
diff --git a/asm/src/org/aspectj/asm/internal/HandleProviderDelimiter.java b/asm/src/org/aspectj/asm/internal/HandleProviderDelimiter.java
index fb3221a5e..33152f4b8 100644
--- a/asm/src/org/aspectj/asm/internal/HandleProviderDelimiter.java
+++ b/asm/src/org/aspectj/asm/internal/HandleProviderDelimiter.java
@@ -29,9 +29,11 @@ public class HandleProviderDelimiter {
public static final HandleProviderDelimiter IMPORTDECLARATION = new HandleProviderDelimiter('#');
public static final HandleProviderDelimiter COUNT = new HandleProviderDelimiter('!');
public static final HandleProviderDelimiter ESCAPE = new HandleProviderDelimiter('\\');
- // these below are not currently used because no iprogramelement.kind equivalent
+ // these below are not currently used because no iprogramelement.kind
+ // equivalent
public static final HandleProviderDelimiter PACKAGEFRAGMENTROOT = new HandleProviderDelimiter('/');
- public static final HandleProviderDelimiter PACKAGEDECLARATION = new HandleProviderDelimiter('%'); // now used
+ public static final HandleProviderDelimiter PACKAGEDECLARATION = new HandleProviderDelimiter('%'); // now
+ // used
public static final HandleProviderDelimiter LOCALVARIABLE = new HandleProviderDelimiter('@');
public static final HandleProviderDelimiter TYPE_PARAMETER = new HandleProviderDelimiter(']');
@@ -52,15 +54,17 @@ public class HandleProviderDelimiter {
}
/**
- * Returns the delimiter for the HandleProviderDelimiter, for example ASPECT returns '*' and METHOD returns '~'
+ * Returns the delimiter for the HandleProviderDelimiter, for example ASPECT
+ * returns '*' and METHOD returns '~'
*/
public char getDelimiter() {
return delim;
}
/**
- * Returns the delimiter for the given IProgramElement for example if the IProgramElement is an aspect returns '*' and if the
- * IProgramElement is a method returns '~'
+ * Returns the delimiter for the given IProgramElement for example if the
+ * IProgramElement is an aspect returns '*' and if the IProgramElement is a
+ * method returns '~'
*/
public static char getDelimiter(IProgramElement ipe) {
IProgramElement.Kind kind = ipe.getKind();
@@ -113,6 +117,8 @@ public class HandleProviderDelimiter {
return CLASSFILE.getDelimiter();
} else if (ipe.getName().endsWith(".aj")) {
return ASPECT_CU.getDelimiter();
+ } else if (ipe.getName().endsWith(".java")) {
+ return COMPILATIONUNIT.getDelimiter();
} else {
return empty;
}