From: acolyer Date: Fri, 4 Nov 2005 13:09:58 +0000 (+0000) Subject: pr73050 - added support for isAnonymous X-Git-Tag: V1_5_0RC1~251 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c4c8b7f83e091e09662fec150f23c2d8ae44b779;p=aspectj.git pr73050 - added support for isAnonymous --- 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) {