summaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2005-03-10 17:46:15 +0000
committeraclement <aclement>2005-03-10 17:46:15 +0000
commit7a81404a82c2c1574ec3faa9350e360db8effd7e (patch)
tree745d0d9467fe020c463538ea5f6401fdbc043131 /org.aspectj.ajdt.core
parent96f45c808c74e48e461540942c0096c03cebee5a (diff)
downloadaspectj-7a81404a82c2c1574ec3faa9350e360db8effd7e.tar.gz
aspectj-7a81404a82c2c1574ec3faa9350e360db8effd7e.zip
Declare annotation: exposes collections of declare @ thingies.
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java18
1 files changed, 18 insertions, 0 deletions
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() {