]> source.dussan.org Git - aspectj.git/commitdiff
pr73050 - added support for isAnonymous
authoracolyer <acolyer>
Fri, 4 Nov 2005 13:09:58 +0000 (13:09 +0000)
committeracolyer <acolyer>
Fri, 4 Nov 2005 13:09:58 +0000 (13:09 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java

index 9d4653dcd3a8f45590299fed498a2af87a26f358..bb45da9377fe001603173f0b24b873090bd49748 100644 (file)
@@ -28,6 +28,7 @@ import org.aspectj.ajdt.internal.compiler.ast.PointcutDeclaration;
 import org.aspectj.ajdt.internal.core.builder.EclipseSourceContext;
 import org.aspectj.bridge.IMessage;
 import org.aspectj.org.eclipse.jdt.core.compiler.CharOperation;
+import org.aspectj.org.eclipse.jdt.internal.compiler.ast.ASTNode;
 import org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration;
 import org.aspectj.org.eclipse.jdt.internal.compiler.ast.Annotation;
 import org.aspectj.org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration;
@@ -101,6 +102,10 @@ public class EclipseSourceType extends AbstractReferenceTypeDelegate {
                final boolean isCodeStyle = declaration instanceof AspectDeclaration;
         return isCodeStyle?isCodeStyle:isAnnotationStyleAspect();
        }
+       
+       public boolean isAnonymous() {
+               return ((declaration.modifiers & ASTNode.AnonymousAndLocalMask) != 0);
+       }
 
     public boolean isAnnotationStyleAspect() {
         if (declaration.annotations == null) {