From: aclement Date: Thu, 10 Mar 2005 17:46:15 +0000 (+0000) Subject: Declare annotation: exposes collections of declare @ thingies. X-Git-Tag: V1_5_0M2~61 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7a81404a82c2c1574ec3faa9350e360db8effd7e;p=aspectj.git Declare annotation: exposes collections of declare @ thingies. --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java index 9c49259b4..3d82006ad 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java @@ -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() {