aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-11-04 13:09:58 +0000
committeracolyer <acolyer>2005-11-04 13:09:58 +0000
commitc4c8b7f83e091e09662fec150f23c2d8ae44b779 (patch)
treeb7e2ec857440098891ab2d960ecb029828ec65ce /org.aspectj.ajdt.core
parent4cf9a72dc45e0842a9e20f7e212cbf173cb5a3e8 (diff)
downloadaspectj-c4c8b7f83e091e09662fec150f23c2d8ae44b779.tar.gz
aspectj-c4c8b7f83e091e09662fec150f23c2d8ae44b779.zip
pr73050 - added support for isAnonymous
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java5
1 files changed, 5 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 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) {