org.aspectj.weaver.reflect.ReflectionVar Java Examples
The following examples show how to use
org.aspectj.weaver.reflect.ReflectionVar.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RuntimeTestWalker.java From spring-analysis-note with MIT License | 5 votes |
protected int getVarType(ReflectionVar v) { try { ReflectionUtils.makeAccessible(varTypeField); return (Integer) varTypeField.get(v); } catch (IllegalAccessException ex) { throw new IllegalStateException(ex); } }
Example #2
Source File: RuntimeTestWalker.java From spring-analysis-note with MIT License | 5 votes |
@Override public void visit(Instanceof i) { ReflectionVar v = (ReflectionVar) i.getVar(); Object varUnderTest = v.getBindingAtJoinPoint(this.thisObj, this.targetObj, this.argsObjs); if (varUnderTest == this.thisObj || varUnderTest == this.targetObj) { this.testsSubtypeSensitiveVars = true; } }
Example #3
Source File: RuntimeTestWalker.java From spring-analysis-note with MIT License | 5 votes |
@Override public void visit(HasAnnotation hasAnn) { // If you thought things were bad before, now we sink to new levels of horror... ReflectionVar v = (ReflectionVar) hasAnn.getVar(); int varType = getVarType(v); if (varType == AT_THIS_VAR || varType == AT_TARGET_VAR || varType == AT_ANNOTATION_VAR) { this.testsSubtypeSensitiveVars = true; } }
Example #4
Source File: RuntimeTestWalker.java From java-technology-stack with MIT License | 5 votes |
protected int getVarType(ReflectionVar v) { try { ReflectionUtils.makeAccessible(varTypeField); return (Integer) varTypeField.get(v); } catch (IllegalAccessException ex) { throw new IllegalStateException(ex); } }
Example #5
Source File: RuntimeTestWalker.java From java-technology-stack with MIT License | 5 votes |
@Override public void visit(Instanceof i) { ReflectionVar v = (ReflectionVar) i.getVar(); Object varUnderTest = v.getBindingAtJoinPoint(this.thisObj, this.targetObj, this.argsObjs); if (varUnderTest == this.thisObj || varUnderTest == this.targetObj) { this.testsSubtypeSensitiveVars = true; } }
Example #6
Source File: RuntimeTestWalker.java From java-technology-stack with MIT License | 5 votes |
@Override public void visit(HasAnnotation hasAnn) { // If you thought things were bad before, now we sink to new levels of horror... ReflectionVar v = (ReflectionVar) hasAnn.getVar(); int varType = getVarType(v); if (varType == AT_THIS_VAR || varType == AT_TARGET_VAR || varType == AT_ANNOTATION_VAR) { this.testsSubtypeSensitiveVars = true; } }
Example #7
Source File: RuntimeTestWalker.java From lams with GNU General Public License v2.0 | 5 votes |
protected int getVarType(ReflectionVar v) { try { ReflectionUtils.makeAccessible(varTypeField); return (Integer) varTypeField.get(v); } catch (IllegalAccessException ex) { throw new IllegalStateException(ex); } }
Example #8
Source File: RuntimeTestWalker.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public void visit(Instanceof i) { ReflectionVar v = (ReflectionVar) i.getVar(); Object varUnderTest = v.getBindingAtJoinPoint(this.thisObj, this.targetObj, this.argsObjs); if (varUnderTest == this.thisObj || varUnderTest == this.targetObj) { this.testsSubtypeSensitiveVars = true; } }
Example #9
Source File: RuntimeTestWalker.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public void visit(HasAnnotation hasAnn) { // If you thought things were bad before, now we sink to new levels of horror... ReflectionVar v = (ReflectionVar) hasAnn.getVar(); int varType = getVarType(v); if (varType == AT_THIS_VAR || varType == AT_TARGET_VAR || varType == AT_ANNOTATION_VAR) { this.testsSubtypeSensitiveVars = true; } }
Example #10
Source File: RuntimeTestWalker.java From spring4-understanding with Apache License 2.0 | 5 votes |
protected int getVarType(ReflectionVar v) { try { ReflectionUtils.makeAccessible(varTypeField); return (Integer) varTypeField.get(v); } catch (IllegalAccessException ex) { throw new IllegalStateException(ex); } }
Example #11
Source File: RuntimeTestWalker.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Override public void visit(Instanceof i) { ReflectionVar v = (ReflectionVar) i.getVar(); Object varUnderTest = v.getBindingAtJoinPoint(this.thisObj, this.targetObj, this.argsObjs); if (varUnderTest == this.thisObj || varUnderTest == this.targetObj) { this.testsSubtypeSensitiveVars = true; } }
Example #12
Source File: RuntimeTestWalker.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Override public void visit(HasAnnotation hasAnn) { // If you thought things were bad before, now we sink to new levels of horror... ReflectionVar v = (ReflectionVar) hasAnn.getVar(); int varType = getVarType(v); if (varType == AT_THIS_VAR || varType == AT_TARGET_VAR || varType == AT_ANNOTATION_VAR) { this.testsSubtypeSensitiveVars = true; } }