diff options
author | aclement <aclement> | 2005-04-19 11:57:02 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-04-19 11:57:02 +0000 |
commit | 1268e4556164239b91f6e5682766d265e400f32f (patch) | |
tree | 98e0e5ffab9150c0199ec31cec2a1db80df6064e | |
parent | 2fcbc5bda7a0e1a6103eba2913e769fe891e4da2 (diff) | |
download | aspectj-1268e4556164239b91f6e5682766d265e400f32f.tar.gz aspectj-1268e4556164239b91f6e5682766d265e400f32f.zip |
From branch: method to check if a source type is @AJ style
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java index ca4a2d266..90ed87495 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java @@ -70,6 +70,19 @@ public class EclipseSourceType extends ResolvedTypeX.ConcreteName { return declaration instanceof AspectDeclaration; } + // FIXME ATAJ isAnnotationStyleAspect() needs implementing? + public boolean isAnnotationStyleAspect() { + if (declaration.annotations == null) { + return false; + } + for (int i = 0; i < declaration.annotations.length; i++) { + Annotation annotation = declaration.annotations[i]; + // do something there + ; + } + return false; + } + public WeaverStateInfo getWeaverState() { return null; } |