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
| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | |
| private static class | |
| private static class | RuntimeTestWalker.TargetInstanceOfResidueTestVisitor
Check if residue of target(TYPE) kind. |
| private static class | |
| private static class | RuntimeTestWalker.ThisInstanceOfResidueTestVisitor
Check if residue of this(TYPE) kind. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Field | |
| private static final Field | |
| private final Test | |
| private static final Field |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| 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. |
| public boolean | |
| public boolean |
| myClassField | back to summary |
|---|---|
| private static final Field myClassField | |
| residualTestField | back to summary |
|---|---|
| private static final Field residualTestField | |
| runtimeTest | back to summary |
|---|---|
| private final Test runtimeTest
| |
| varTypeField | back to summary |
|---|---|
| private static final Field varTypeField | |
| RuntimeTestWalker | back to summary |
|---|---|
| public RuntimeTestWalker(ShadowMatch shadowMatch) | |
| testsSubtypeSensitiveVars | back to summary |
|---|---|
| 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. | |
| testTargetInstanceOfResidue | back to summary |
|---|---|
| public boolean testTargetInstanceOfResidue(Class<?> targetClass) | |
| testThisInstanceOfResidue | back to summary |
|---|---|
| public boolean testThisInstanceOfResidue(Class<?> thisClass) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private boolean | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void |
| matchClass | back to summary |
|---|---|
| private final Class<?> matchClass | |
| matches | back to summary |
|---|---|
| private boolean matches | |
| matchVarType | back to summary |
|---|---|
| private final int matchVarType | |
| InstanceOfResidueTestVisitor | back to summary |
|---|---|
| public InstanceOfResidueTestVisitor(Class<?> matchClass, boolean defaultMatches, int matchVarType) | |
| instanceOfMatches | back to summary |
|---|---|
| public boolean instanceOfMatches(Test test) | |
| visit | back to summary |
|---|---|
| public void visit(Instanceof i) Overrides org. Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Object[] | |
| private final Object | |
| private boolean | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | |
| public void |
| argsObjs | back to summary |
|---|---|
| private final Object[] argsObjs | |
| targetObj | back to summary |
|---|---|
| private final Object targetObj | |
| testsSubtypeSensitiveVars | back to summary |
|---|---|
| private boolean testsSubtypeSensitiveVars | |
| thisObj | back to summary |
|---|---|
| private final Object thisObj | |
| SubtypeSensitiveVarTypeTestVisitor | back to summary |
|---|---|
| private SubtypeSensitiveVarTypeTestVisitor() | |
| testsSubtypeSensitiveVars | back to summary |
|---|---|
| public boolean testsSubtypeSensitiveVars(Test aTest) | |
| visit | back to summary |
|---|---|
| public void visit(Instanceof i) Overrides org. Implements org.
| |
| visit | back to summary |
|---|---|
| public void visit(HasAnnotation hasAnn) Overrides org. Implements org.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| TargetInstanceOfResidueTestVisitor | back to summary |
|---|---|
| public TargetInstanceOfResidueTestVisitor(Class<?> targetClass) | |
| targetInstanceOfMatches | back to summary |
|---|---|
| public boolean targetInstanceOfMatches(Test test) | |
| Modifier and Type | Field and Description |
|---|---|
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected int | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | visit(MatchingContextBasedTest matchingContextTest)
Implements org. |
| AT_ANNOTATION_VAR | back to summary |
|---|---|
| protected static final int AT_ANNOTATION_VAR | |
| AT_TARGET_VAR | back to summary |
|---|---|
| protected static final int AT_TARGET_VAR | |
| AT_THIS_VAR | back to summary |
|---|---|
| protected static final int AT_THIS_VAR | |
| TARGET_VAR | back to summary |
|---|---|
| protected static final int TARGET_VAR | |
| THIS_VAR | back to summary |
|---|---|
| protected static final int THIS_VAR | |
| TestVisitorAdapter | back to summary |
|---|---|
| private TestVisitorAdapter() | |
| getVarType | back to summary |
|---|---|
| protected int getVarType(ReflectionVar v) | |
| visit | back to summary |
|---|---|
| public void visit(And e) Implements org.
| |
| visit | back to summary |
|---|---|
| public void visit(Or e) Implements org.
| |
| visit | back to summary |
|---|---|
| public void visit(Not e) Implements org.
| |
| visit | back to summary |
|---|---|
| public void visit(Instanceof i) Implements org.
| |
| visit | back to summary |
|---|---|
| public void visit(Literal literal) Implements org.
| |
| visit | back to summary |
|---|---|
| public void visit(Call call) Implements org.
| |
| visit | back to summary |
|---|---|
| public void visit(FieldGetCall fieldGetCall) Implements org.
| |
| visit | back to summary |
|---|---|
| public void visit(HasAnnotation hasAnnotation) Implements org.
| |
| visit | back to summary |
|---|---|
| public void visit(MatchingContextBasedTest matchingContextTest) Implements org.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| ThisInstanceOfResidueTestVisitor | back to summary |
|---|---|
| public ThisInstanceOfResidueTestVisitor(Class<?> thisClass) | |
| thisInstanceOfMatches | back to summary |
|---|---|
| public boolean thisInstanceOfMatches(Test test) | |