From: aclement Date: Thu, 26 Feb 2009 17:12:58 +0000 (+0000) Subject: 265729: testing ctor/field/method itds X-Git-Tag: pre268419~69 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=11c44afad0a9e1c7cd656eab0290da45e2bb80e6;p=aspectj.git 265729: testing ctor/field/method itds --- 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; }