From 11c44afad0a9e1c7cd656eab0290da45e2bb80e6 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 26 Feb 2009 17:12:58 +0000 Subject: [PATCH] 265729: testing ctor/field/method itds --- .../asm/internal/HandleProviderDelimiter.java | 16 +++++++++++----- 1 file 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; } -- 2.39.5