From c4c8b7f83e091e09662fec150f23c2d8ae44b779 Mon Sep 17 00:00:00 2001 From: acolyer Date: Fri, 4 Nov 2005 13:09:58 +0000 Subject: [PATCH] pr73050 - added support for isAnonymous --- .../ajdt/internal/compiler/lookup/EclipseSourceType.java | 5 +++++ 1 file changed, 5 insertions(+) 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 9d4653dcd..bb45da937 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 @@ -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) { -- 2.39.5