public Object visit(ASTWithincode node, Object data) { WithinMatcher within = null; try { within = new WithinMatcher(advisor, call.where(), null); } catch (NotFoundException e) { throw new RuntimeException(e); //To change body of catch statement use Options | File Templates. } return node.jjtAccept(within, null); }
public Object visit(ASTWithin node, Object data) { WithinMatcher within = null; try { within = new WithinMatcher(advisor, call.where(), null); } catch (NotFoundException e) { throw new RuntimeException(e); //To change body of catch statement use Options | File Templates. } return node.jjtAccept(within, null); }
ConByConDetail(CallerExprEditor editor, NewExpr call, String classname)throws NotFoundException { this.call = call; con = (CtConstructor) call.where(); callingIndex = editor.constructors.indexOf(con); calledHash = JavassistMethodHashing.constructorHash(call.getConstructor()); callerInfoField = getConByConInfoName(callingIndex, classname, calledHash); calledConstructor = call.getConstructor(); this.classname = classname; isTgtConAdvised = isTargetConstructorAdvised(calledConstructor); } }
ConByMethodDetail(CallerExprEditor editor, NewExpr call, String classname)throws NotFoundException { this.call = call; where = (CtMethod) call.where(); callingHash = JavassistMethodHashing.methodHash(where); calledHash = JavassistMethodHashing.constructorHash(call.getConstructor()); callerInfoField = getConByMethodInfoName(callingHash, classname, calledHash); calledConstructor = call.getConstructor(); this.classname = classname; isTgtConAdvised = isTargetConstructorAdvised(calledConstructor); } }
CtBehavior caller = newcall.where(); if (caller instanceof CtConstructor)
CtBehavior behavior = call.where(); if (behavior instanceof CtMethod) modifyMethod(call, classname);