类 RuntimeTestWalker

java.lang.Object
infra.aop.aspectj.RuntimeTestWalker

class RuntimeTestWalker extends Object
This class encapsulates some AspectJ internal knowledge that should be pushed back into the AspectJ project in a future release.

It relies on implementation specific knowledge in AspectJ to break encapsulation and do something AspectJ was not designed to do: query the types of runtime tests that will be performed. The code here should migrate to ShadowMatch.getVariablesInvolvedInRuntimeTest() or some similar operation.

See Bug 151593

从以下版本开始:
4.0
作者:
Adrian Colyer, Ramnivas Laddad
  • 字段详细资料

    • residualTestField

      private static final Field residualTestField
    • varTypeField

      private static final Field varTypeField
    • myClassField

      private static final Field myClassField
    • runtimeTest

      @Nullable private final org.aspectj.weaver.ast.Test runtimeTest
  • 构造器详细资料

    • RuntimeTestWalker

      public RuntimeTestWalker(org.aspectj.weaver.tools.ShadowMatch shadowMatch)
  • 方法详细资料

    • testsSubtypeSensitiveVars

      public boolean testsSubtypeSensitiveVars()
      If the test uses any of the this, target, at_this, at_target, and at_annotation vars, then it tests subtype sensitive vars.
    • testThisInstanceOfResidue

      public boolean testThisInstanceOfResidue(Class<?> thisClass)
    • testTargetInstanceOfResidue

      public boolean testTargetInstanceOfResidue(Class<?> targetClass)