]> source.dussan.org Git - aspectj.git/commitdiff
helper method for determining target ajruntime
authoraclement <aclement>
Wed, 30 Nov 2005 12:09:29 +0000 (12:09 +0000)
committeraclement <aclement>
Wed, 30 Nov 2005 12:09:29 +0000 (12:09 +0000)
weaver/src/org/aspectj/weaver/World.java

index 3f1bd7faf9497218d42c8f6a397f9a0f7eb810f6..5101d7641dc17abd2e73c39818df565a59c10acd 100644 (file)
@@ -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