public ClassGenerator addMethod(String name, Method m) { String desc = name + ReflectUtils.getDescWithoutMethodName(m); addMethod(':' + desc); if (mCopyMethods == null) { mCopyMethods = new ConcurrentHashMap<String, Method>(8); } mCopyMethods.put(desc, m); return this; }
public ClassGenerator addMethod(String name, Method m) { String desc = name + ReflectUtils.getDescWithoutMethodName(m); addMethod(':' + desc); if (mCopyMethods == null) { mCopyMethods = new ConcurrentHashMap<String, Method>(8); } mCopyMethods.put(desc, m); return this; }
private CtMethod getCtMethod(Method m) throws NotFoundException { return getCtClass(m.getDeclaringClass()) .getMethod(m.getName(), ReflectUtils.getDescWithoutMethodName(m)); }
private CtMethod getCtMethod(Method m) throws NotFoundException { return getCtClass(m.getDeclaringClass()) .getMethod(m.getName(), ReflectUtils.getDescWithoutMethodName(m)); }
public ClassGenerator addMethod(String name, Method m) { String desc = name + ReflectUtils.getDescWithoutMethodName(m); addMethod(':' + desc); if (mCopyMethods == null) { mCopyMethods = new ConcurrentHashMap<String, Method>(8); } mCopyMethods.put(desc, m); return this; }
public ClassGenerator addMethod(String name, Method m) { String desc = name + ReflectUtils.getDescWithoutMethodName(m); addMethod(':' + desc); if (mCopyMethods == null) { mCopyMethods = new ConcurrentHashMap<String, Method>(8); } mCopyMethods.put(desc, m); return this; }
private CtMethod getCtMethod(Method m) throws NotFoundException { return getCtClass(m.getDeclaringClass()) .getMethod(m.getName(), ReflectUtils.getDescWithoutMethodName(m)); }
private CtMethod getCtMethod(Method m) throws NotFoundException { return getCtClass(m.getDeclaringClass()) .getMethod(m.getName(), ReflectUtils.getDescWithoutMethodName(m)); }