summaryrefslogtreecommitdiffstats
path: root/asm/src
diff options
context:
space:
mode:
authoraclement <aclement>2005-01-20 10:26:46 +0000
committeraclement <aclement>2005-01-20 10:26:46 +0000
commit759be74616a981dc6002a9e7e6bc64223d28bda0 (patch)
treeb5525286d109cba7f7ac04af4b48f1b5cdd80fc5 /asm/src
parenta972be27a5ebccca011bb5962766ad73502252cd (diff)
downloadaspectj-759be74616a981dc6002a9e7e6bc64223d28bda0.tar.gz
aspectj-759be74616a981dc6002a9e7e6bc64223d28bda0.zip
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
Diffstat (limited to 'asm/src')
-rw-r--r--asm/src/org/aspectj/asm/IProgramElement.java10
1 files changed, 8 insertions, 2 deletions
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() {