@Override public void edit(ConstructorCall c) throws CannotCompileException { try { put(c.getConstructor().getDeclaringClass().getName() + "." + "<init>" + "(" + parameterNames(c.getConstructor().getMethodInfo()) + ")", c.getLineNumber(), key); } catch (NotFoundException e) { throw new ReflectionsException("Could not find member " + c.getClassName() + " in " + key, e); } }
@Override public void edit(ConstructorCall c) throws CannotCompileException { try { put(c.getConstructor().getDeclaringClass().getName() + "." + "<init>" + "(" + parameterNames(c.getConstructor().getMethodInfo()) + ")", c.getLineNumber(), key); } catch (NotFoundException e) { throw new ReflectionsException("Could not find member " + c.getClassName() + " in " + key, e); } }
@Override public void edit(final ConstructorCall call) throws CannotCompileException { if (debug) { System.err.println("editing ctor " + call.getClassName() + "#" + call.getMethodName() + " (wanted " + calledClass + "#" + calledMethodName + ")"); } if (call.getMethodName().equals(calledMethodName) && call.getClassName().equals(calledClass)) { if (onlyNth > 0 && ++counter != onlyNth) return; call.replace(newCode); markEdited(); } }
@Override public void edit(final ConstructorCall call) throws CannotCompileException { if (debug) { System.err.println("editing ctor " + call.getClassName() + "#" + call.getMethodName() + " (wanted " + calledClass + "#" + calledMethodName + ")"); } if (call.getMethodName().equals(calledMethodName) && call.getClassName().equals(calledClass)) { if (onlyNth > 0 && ++counter != onlyNth) return; call.replace(newCode); markEdited(); } }
if (strategy != INST_REDEFINE && !c.getClassName().startsWith("java.lang")) { final CtClass superclass; try {
@Override public void edit(ConstructorCall c) throws CannotCompileException { try { put(c.getConstructor().getDeclaringClass().getName() + "." + "<init>" + "(" + parameterNames(c.getConstructor().getMethodInfo()) + ")", c.getLineNumber(), key); } catch (NotFoundException e) { throw new ReflectionsException("Could not find member " + c.getClassName() + " in " + key, e); } }
@Override public void edit(ConstructorCall c) throws CannotCompileException { try { put(c.getConstructor().getDeclaringClass().getName() + "." + "<init>" + "(" + parameterNames(c.getConstructor().getMethodInfo()) + ")", c.getLineNumber(), key); } catch (NotFoundException e) { throw new ReflectionsException("Could not find member " + c.getClassName() + " in " + key, e); } }
@Override public void edit(ConstructorCall c) throws CannotCompileException { try { put(c.getConstructor().getDeclaringClass().getName() + "." + "<init>" + "(" + parameterNames(c.getConstructor().getMethodInfo()) + ")", c.getLineNumber(), key); } catch (NotFoundException e) { throw new ReflectionsException("Could not find member " + c.getClassName() + " in " + key, e); } }
@Override public void edit(ConstructorCall c) throws CannotCompileException { try { put(c.getConstructor().getDeclaringClass().getName() + "." + "<init>" + "(" + parameterNames(c.getConstructor().getMethodInfo()) + ")" , c.getLineNumber() , key); } catch (NotFoundException e) { throw new ReflectionsException("Could not find member " + c.getClassName() + " in " + key , e); } }