diff options
author | avasseur <avasseur> | 2005-10-17 12:26:41 +0000 |
---|---|---|
committer | avasseur <avasseur> | 2005-10-17 12:26:41 +0000 |
commit | 257e39e557a0ca5f4a058726b6ccc72fdda22397 (patch) | |
tree | afa392897a1710785b3f0b127a6896f312c8f31e /aspectj5rt | |
parent | bb2d44016148994e99f8a2389754b69f18b710b2 (diff) | |
download | aspectj-257e39e557a0ca5f4a058726b6ccc72fdda22397.tar.gz aspectj-257e39e557a0ca5f4a058726b6ccc72fdda22397.zip |
polish for last commit
(implement @AspectJ ITD @DeclareParents and @DeclareImplements
changed AjType as ITD field is meaningless (as @AJ ITD is interface driven))
Diffstat (limited to 'aspectj5rt')
-rw-r--r-- | aspectj5rt/java5-src/org/aspectj/internal/lang/reflect/AjTypeImpl.java | 63 |
1 files changed, 1 insertions, 62 deletions
diff --git a/aspectj5rt/java5-src/org/aspectj/internal/lang/reflect/AjTypeImpl.java b/aspectj5rt/java5-src/org/aspectj/internal/lang/reflect/AjTypeImpl.java index 747902e3e..1301a951d 100644 --- a/aspectj5rt/java5-src/org/aspectj/internal/lang/reflect/AjTypeImpl.java +++ b/aspectj5rt/java5-src/org/aspectj/internal/lang/reflect/AjTypeImpl.java @@ -671,21 +671,6 @@ public class AjTypeImpl<T> implements AjType<T> { } } } -// Class<?>[] classes = clazz.getDeclaredClasses(); -// for(Class<?> c : classes) { -// if (c.isAnnotationPresent(org.aspectj.lang.annotation.DeclareParents.class)) { -// if (c.getInterfaces().length == 0) continue; -// AjType<?> targetType = AjTypeSystem.getAjType((Class<?>)c.getInterfaces()[0]); -// Method[] meths = c.getDeclaredMethods(); -// for (Method m : meths) { -// if (!Modifier.isPublic(m.getModifiers()) && publicOnly) continue; -// InterTypeMethodDeclaration itdm = -// new InterTypeMethodDeclarationImpl( -// this,targetType,m); -// toList.add(itdm); -// } -// } -// } } } @@ -693,38 +678,8 @@ public class AjTypeImpl<T> implements AjType<T> { return; //AV: I think it is meaningless //@AJ decp is interface driven ie no field -// if (isAspect()) { -// for (Field f : clazz.getDeclaredFields()) { -// if (!f.getType().isInterface()) continue; -// if (!Modifier.isPublic(f.getModifiers()) || !Modifier.isStatic(f.getModifiers())) continue; -// if (f.isAnnotationPresent(org.aspectj.lang.annotation.DeclareParents.class)) { -// for (Field itdF : f.getType().getDeclaredFields()) { -// if (!Modifier.isPublic(itdF.getModifiers()) && publicOnly) continue; -// InterTypeFieldDeclaration itdf = new InterTypeFieldDeclarationImpl( -// this, AjTypeSystem.getAjType(f.getType()), itdF -// ); -// toList.add(itdf); -// } -// } -// } -//---old impl. -// Class<?>[] classes = clazz.getDeclaredClasses(); -// for(Class<?> c : classes) { -// if (c.isAnnotationPresent(org.aspectj.lang.annotation.DeclareParents.class)) { -// if (c.getInterfaces().length == 0) continue; -// AjType<?> targetType = AjTypeSystem.getAjType((Class<?>)c.getInterfaces()[0]); -// Field[] fields = c.getDeclaredFields(); -// for (Field f : fields) { -// if (!Modifier.isPublic(f.getModifiers()) && publicOnly) continue; -// InterTypeFieldDeclaration itdf = -// new InterTypeFieldDeclarationImpl( -// this,targetType,f); -// toList.add(itdf); -// } -// } -// } -// } } + /* (non-Javadoc) * @see org.aspectj.lang.reflect.AjType#getDeclaredITDConstructor(java.lang.Class, java.lang.Class...) */ @@ -1021,22 +976,6 @@ public class AjTypeImpl<T> implements AjType<T> { toList.add(decp); } } -// -// Class<?>[] classes = clazz.getDeclaredClasses(); -// for (Class<?> c : classes) { -// if (c.isAnnotationPresent(org.aspectj.lang.annotation.DeclareParents.class)) { -// org.aspectj.lang.annotation.DeclareParents ann = c.getAnnotation(org.aspectj.lang.annotation.DeclareParents.class); -// if (c.getInterfaces().length == 0) continue; -// String parentType = c.getInterfaces()[0].getName(); -// DeclareParentsImpl decp = new DeclareParentsImpl( -// ann.value(), -// parentType, -// false, -// this -// ); -// toList.add(decp); -// } -// } } /* (non-Javadoc) |