类 RuntimeTestWalker
java.lang.Object
infra.aop.aspectj.RuntimeTestWalker
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
-
嵌套类概要
嵌套类修饰符和类型类说明private static classprivate static classprivate static classCheck if residue of target(TYPE) kind.private static classprivate static classCheck if residue of this(TYPE) kind. -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanIf the test uses any of the this, target, at_this, at_target, and at_annotation vars, then it tests subtype sensitive vars.booleantestTargetInstanceOfResidue(Class<?> targetClass) booleantestThisInstanceOfResidue(Class<?> thisClass)
-
字段详细资料
-
residualTestField
-
varTypeField
-
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
-
testTargetInstanceOfResidue
-