From c88e6bc262b9ec81625c28071989cc59862cf5e4 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 30 Nov 2005 12:09:29 +0000 Subject: [PATCH] helper method for determining target ajruntime --- weaver/src/org/aspectj/weaver/World.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weaver/src/org/aspectj/weaver/World.java b/weaver/src/org/aspectj/weaver/World.java index 3f1bd7faf..5101d7641 100644 --- a/weaver/src/org/aspectj/weaver/World.java +++ b/weaver/src/org/aspectj/weaver/World.java @@ -655,6 +655,10 @@ public abstract class World implements Dump.INode { return targetAspectjRuntimeLevel; } + public boolean isTargettingAspectJRuntime12() { + return getTargetAspectjRuntimeLevel().equals(org.aspectj.weaver.Constants.RUNTIME_LEVEL_12); + } + /* * Map of types in the world, with soft links to expendable ones. * An expendable type is a reference type that is not exposed to the weaver (ie -- 2.39.5