From 759be74616a981dc6002a9e7e6bc64223d28bda0 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 20 Jan 2005 10:26:46 +0000 Subject: Get enum value fields to work in the ASM. Plus test reorg as we are now adding tests that will only run on 1.5 --- asm/src/org/aspectj/asm/IProgramElement.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'asm/src') diff --git a/asm/src/org/aspectj/asm/IProgramElement.java b/asm/src/org/aspectj/asm/IProgramElement.java index a4d43fa47..c351ae505 100644 --- a/asm/src/org/aspectj/asm/IProgramElement.java +++ b/asm/src/org/aspectj/asm/IProgramElement.java @@ -220,6 +220,7 @@ public interface IProgramElement extends Serializable { public static final Kind INTERFACE = new Kind("interface"); public static final Kind ASPECT = new Kind("aspect"); public static final Kind ENUM = new Kind("enum"); + public static final Kind ENUM_VALUE = new Kind("enumvalue"); public static final Kind ANNOTATION = new Kind("annotation"); public static final Kind INITIALIZER = new Kind("initializer"); public static final Kind INTER_TYPE_FIELD = new Kind("inter-type field"); @@ -254,6 +255,7 @@ public interface IProgramElement extends Serializable { INTERFACE, ASPECT, ENUM, + ENUM_VALUE, ANNOTATION, INITIALIZER, INTER_TYPE_FIELD, @@ -295,6 +297,7 @@ public interface IProgramElement extends Serializable { public static List getNonAJMemberKinds() { List list = new ArrayList(); list.add(METHOD); + list.add(ENUM_VALUE); list.add(FIELD); list.add(CONSTRUCTOR); return list; @@ -305,7 +308,8 @@ public interface IProgramElement extends Serializable { || this == METHOD || this == CONSTRUCTOR || this == POINTCUT - || this == ADVICE; + || this == ADVICE + || this == ENUM_VALUE; } public boolean isInterTypeMember() { @@ -317,7 +321,9 @@ public interface IProgramElement extends Serializable { public boolean isType() { return this == CLASS || this == INTERFACE - || this == ASPECT; + || this == ASPECT + || this == ANNOTATION + || this == ENUM; } public boolean isSourceFile() { -- cgit v1.2.3