diff options
author | Andy Clement <andrew.clement@gmail.com> | 2013-05-31 23:07:29 -0700 |
---|---|---|
committer | Andy Clement <andrew.clement@gmail.com> | 2013-05-31 23:07:29 -0700 |
commit | 31d8e259e5cd8b1b4810d69bbf4b9ea45ae4a4c8 (patch) | |
tree | 4a273bd73d75a264bbca01cdffbf7a3c9dc1fd57 /weaver5 | |
parent | 6f4140ac7028b9074e694e4c0b9de8b05e4b048a (diff) | |
download | aspectj-31d8e259e5cd8b1b4810d69bbf4b9ea45ae4a4c8.tar.gz aspectj-31d8e259e5cd8b1b4810d69bbf4b9ea45ae4a4c8.zip |
Use class file attributes to find containing class
https://bugs.eclipse.org/bugs/show_bug.cgi?id=407494
Diffstat (limited to 'weaver5')
-rw-r--r-- | weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java b/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java index 695dd7567..2782bddb5 100644 --- a/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java +++ b/weaver5/java5-src/org/aspectj/weaver/reflect/Java15ReflectionBasedReferenceTypeDelegate.java @@ -364,5 +364,16 @@ public class Java15ReflectionBasedReferenceTypeDelegate extends ReflectionBasedR public boolean isAnonymous() { return this.myClass.isAnonymousClass(); } + + @Override + public boolean isNested() { + return this.myClass.isMemberClass(); + } + + @Override + public ResolvedType getOuterClass() { + return ReflectionBasedReferenceTypeDelegateFactory.resolveTypeInWorld( + myClass.getEnclosingClass(),world); + } } |