From 7a81404a82c2c1574ec3faa9350e360db8effd7e Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 10 Mar 2005 17:46:15 +0000 Subject: [PATCH] Declare annotation: exposes collections of declare @ thingies. --- .../compiler/lookup/EclipseFactory.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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() { -- 2.39.5