aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2010-07-23 00:20:08 +0000
committeraclement <aclement>2010-07-23 00:20:08 +0000
commit0e0df92e06802d6da2b4c6bbfc23368bfad4b87f (patch)
tree298b94d434c63015ee5c0e30a54b64aa457e1056
parente343ea135576347411a5379f4391cc728ab66c7a (diff)
downloadaspectj-0e0df92e06802d6da2b4c6bbfc23368bfad4b87f.tar.gz
aspectj-0e0df92e06802d6da2b4c6bbfc23368bfad4b87f.zip
320425: handle changes
-rw-r--r--asm/src/org/aspectj/asm/internal/HandleProviderDelimiter.java23
1 files changed, 12 insertions, 11 deletions
diff --git a/asm/src/org/aspectj/asm/internal/HandleProviderDelimiter.java b/asm/src/org/aspectj/asm/internal/HandleProviderDelimiter.java
index d7d180b4e..164cc23f7 100644
--- a/asm/src/org/aspectj/asm/internal/HandleProviderDelimiter.java
+++ b/asm/src/org/aspectj/asm/internal/HandleProviderDelimiter.java
@@ -33,19 +33,20 @@ public class HandleProviderDelimiter {
// equivalent
public static final HandleProviderDelimiter PACKAGEFRAGMENTROOT = new HandleProviderDelimiter('/');
public static final HandleProviderDelimiter PACKAGEDECLARATION = new HandleProviderDelimiter('%'); // now
- // used
+ // used
public static final HandleProviderDelimiter LOCALVARIABLE = new HandleProviderDelimiter('@');
public static final HandleProviderDelimiter TYPE_PARAMETER = new HandleProviderDelimiter(']');
// AspectJ specific ones
public static final HandleProviderDelimiter ASPECT_CU = new HandleProviderDelimiter('*');
public static final HandleProviderDelimiter ADVICE = new HandleProviderDelimiter('&');
- public static final HandleProviderDelimiter ASPECT_TYPE = new HandleProviderDelimiter('}');
+ public static final HandleProviderDelimiter ASPECT_TYPE = new HandleProviderDelimiter('\'');
public static final HandleProviderDelimiter CODEELEMENT = new HandleProviderDelimiter('?');
+ public static final HandleProviderDelimiter ITD_FIELD = new HandleProviderDelimiter(',');
public static final HandleProviderDelimiter ITD = new HandleProviderDelimiter(')');
public static final HandleProviderDelimiter DECLARE = new HandleProviderDelimiter('`');
- public static final HandleProviderDelimiter POINTCUT = new HandleProviderDelimiter('+');
-
+ public static final HandleProviderDelimiter POINTCUT = new HandleProviderDelimiter('"');
+
public static final HandleProviderDelimiter PHANTOM = new HandleProviderDelimiter(',');
private static char empty = ' ';
@@ -56,17 +57,15 @@ 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();
@@ -97,8 +96,10 @@ public class HandleProviderDelimiter {
}
} else if (kind.equals(IProgramElement.Kind.INITIALIZER)) {
return INITIALIZER.getDelimiter();
- } else if (kind.equals(IProgramElement.Kind.INTER_TYPE_FIELD) || kind.equals(IProgramElement.Kind.INTER_TYPE_METHOD)
- || kind.equals(IProgramElement.Kind.INTER_TYPE_CONSTRUCTOR) || kind.equals(IProgramElement.Kind.INTER_TYPE_PARENT)) {
+ } else if (kind.equals(IProgramElement.Kind.INTER_TYPE_FIELD)) {
+ return ITD_FIELD.getDelimiter();
+ } else if (kind.equals(IProgramElement.Kind.INTER_TYPE_METHOD) || kind.equals(IProgramElement.Kind.INTER_TYPE_CONSTRUCTOR)
+ || kind.equals(IProgramElement.Kind.INTER_TYPE_PARENT)) {
return ITD.getDelimiter();
} else if (kind.equals(IProgramElement.Kind.CONSTRUCTOR) || kind.equals(IProgramElement.Kind.METHOD)) {
return METHOD.getDelimiter();