aboutsummaryrefslogtreecommitdiffstats
path: root/asm
diff options
context:
space:
mode:
authoraclement <aclement>2009-01-06 22:02:32 +0000
committeraclement <aclement>2009-01-06 22:02:32 +0000
commit77f22ee2d3252f0e63bdae165519581ac5afddc2 (patch)
tree48e25cf44ca4ccdd4ecbed198cd1722c57224597 /asm
parentb0697974ce3b202ba676cf5a169ad13ec3b3afbe (diff)
downloadaspectj-77f22ee2d3252f0e63bdae165519581ac5afddc2.tar.gz
aspectj-77f22ee2d3252f0e63bdae165519581ac5afddc2.zip
258206: package declaration support in the model
Diffstat (limited to 'asm')
-rw-r--r--asm/src/org/aspectj/asm/internal/HandleProviderDelimiter.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/asm/src/org/aspectj/asm/internal/HandleProviderDelimiter.java b/asm/src/org/aspectj/asm/internal/HandleProviderDelimiter.java
index 17394ccbf..396cba3a8 100644
--- a/asm/src/org/aspectj/asm/internal/HandleProviderDelimiter.java
+++ b/asm/src/org/aspectj/asm/internal/HandleProviderDelimiter.java
@@ -31,7 +31,7 @@ public class HandleProviderDelimiter {
public static final HandleProviderDelimiter ESCAPE = new HandleProviderDelimiter('\\');
// 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('%');
+ public static final HandleProviderDelimiter PACKAGEDECLARATION = new HandleProviderDelimiter('%'); // now used
public static final HandleProviderDelimiter LOCALVARIABLE = new HandleProviderDelimiter('@');
public static final HandleProviderDelimiter TYPE_PARAMETER = new HandleProviderDelimiter(']');
@@ -78,6 +78,8 @@ public class HandleProviderDelimiter {
return ASPECT_CU.getDelimiter();
} else if (kind.equals(IProgramElement.Kind.IMPORT_REFERENCE)) {
return IMPORTDECLARATION.getDelimiter();
+ } else if (kind.equals(IProgramElement.Kind.PACKAGE_DECLARATION)) {
+ return PACKAGEDECLARATION.getDelimiter();
} else if (kind.equals(IProgramElement.Kind.CLASS) || kind.equals(IProgramElement.Kind.INTERFACE)
|| kind.equals(IProgramElement.Kind.ENUM) || kind.equals(IProgramElement.Kind.ANNOTATION)) {
return TYPE.getDelimiter();