]> source.dussan.org Git - aspectj.git/commitdiff
Declare annotation: exposes collections of declare @ thingies.
authoraclement <aclement>
Thu, 10 Mar 2005 17:46:15 +0000 (17:46 +0000)
committeraclement <aclement>
Thu, 10 Mar 2005 17:46:15 +0000 (17:46 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java

index 9c49259b4126f0e73de63f59127c07e384c900c7..3d82006add6ecdae646cabab0ccb84340d0fcad9 100644 (file)
@@ -114,6 +114,12 @@ public class EclipseFactory {
                return ret;
        }       
        
+       public ResolvedTypeX fromTypeBindingToRTX(TypeBinding tb) {
+               if (tb == null) return ResolvedTypeX.MISSING;
+               ResolvedTypeX ret = getWorld().resolve(fromBinding(tb));
+               return ret;
+       }
+       
        public ResolvedTypeX[] fromEclipse(ReferenceBinding[] bindings) {
                if (bindings == null) {
                        return ResolvedTypeX.NONE;
@@ -173,6 +179,18 @@ public class EclipseFactory {
                return getWorld().getDeclareParents();
        }
        
+       public Collection getDeclareAnnotationOnTypes() {
+               return getWorld().getDeclareAnnotationOnTypes();
+       }
+       
+       public Collection getDeclareAnnotationOnFields() {
+               return getWorld().getDeclareAnnotationOnFields();
+       }
+       
+       public Collection getDeclareAnnotationOnMethods() {
+               return getWorld().getDeclareAnnotationOnMethods();
+       }
+       
        public Collection finishedTypeMungers = null;
        
        public boolean areTypeMungersFinished() {