@Test public void shouldCreateProperGenericSignatures() { assertEquals("Ljava/util/List<Ljava/lang/Integer;>;", JavassistUtil.genericSignature(List.class, Integer.class)); assertEquals("Ljava/util/List<Ljava/lang/Integer;>;", JavassistUtil.genericSignature(List.class.getName(), Integer.class.getName())); }
public static String genericSignature(Class<?> typeClass, Class<?> genericParam) { return genericSignature(typeClass.getName(), genericParam.getName()); }
JavassistUtil { public static String genericSignature(Class<?> typeClass, Class<?> genericParam) { return genericSignature(typeClass.getName(), genericParam.getName()); } }
JavassistUtil { public static String genericSignature(Class<?> typeClass, Class<?> genericParam) { return genericSignature(typeClass.getName(), genericParam.getName()); } private  JavassistUtil(); }
JavassistUtil { public static String genericSignature(Class<?> typeClass, Class<?> genericParam) { return genericSignature(typeClass.getName(), genericParam.getName()); } private  JavassistUtil(); static String genericSignature(Class<?> typeClass, Class<?> genericParam); static String genericSignature(Class<?> typeClass, String genericParam); static String genericSignature(String typeClass, String genericParam); static String toClassPath(Class<?> clazz); static String toClassPath(String clazz); static String toClassPath(String clazz, boolean extension); static String toGenericParam(Class<?> clazz); static String toGenericParam(String clazz); static String genericSetterSignature(String genericFieldSignature); static String genericGetterSignature(String genericFieldSignature); static CtClass loadClass(Bundle bundle, String className, ClassPool classPool); static CtField findDeclaredField(CtClass ctClass, String fieldName); static CtField findField(CtClass ctClass, String fieldName); static boolean containsDeclaredField(CtClass ctClass, String fieldName); static boolean containsField(CtClass ctClass, String fieldName); static void removeDeclaredFieldIfExists(CtClass ctClass, String fieldName); static void removeFieldIfExists(CtClass ctClass, String fieldName); static CtMethod findDeclaredMethod(CtClass ctClass, String methodName); static CtMethod findMethod(CtClass ctClass, String methodName); static boolean containsDeclaredMethod(CtClass ctClass, String methodName); static boolean containsMethod(CtClass ctClass, String methodName); static void removeDeclaredMethodIfExists(CtClass ctClass, String methodName); static void removeMethodIfExists(CtClass ctClass, String methodName); static boolean hasInterface(CtClass ctClass, CtClass ctInterface); static boolean inheritsFromCustomClass(Class<?> clazz); }
JavassistUtil { public static String genericSignature(Class<?> typeClass, Class<?> genericParam) { return genericSignature(typeClass.getName(), genericParam.getName()); } private  JavassistUtil(); static String genericSignature(Class<?> typeClass, Class<?> genericParam); static String genericSignature(Class<?> typeClass, String genericParam); static String genericSignature(String typeClass, String genericParam); static String toClassPath(Class<?> clazz); static String toClassPath(String clazz); static String toClassPath(String clazz, boolean extension); static String toGenericParam(Class<?> clazz); static String toGenericParam(String clazz); static String genericSetterSignature(String genericFieldSignature); static String genericGetterSignature(String genericFieldSignature); static CtClass loadClass(Bundle bundle, String className, ClassPool classPool); static CtField findDeclaredField(CtClass ctClass, String fieldName); static CtField findField(CtClass ctClass, String fieldName); static boolean containsDeclaredField(CtClass ctClass, String fieldName); static boolean containsField(CtClass ctClass, String fieldName); static void removeDeclaredFieldIfExists(CtClass ctClass, String fieldName); static void removeFieldIfExists(CtClass ctClass, String fieldName); static CtMethod findDeclaredMethod(CtClass ctClass, String methodName); static CtMethod findMethod(CtClass ctClass, String methodName); static boolean containsDeclaredMethod(CtClass ctClass, String methodName); static boolean containsMethod(CtClass ctClass, String methodName); static void removeDeclaredMethodIfExists(CtClass ctClass, String methodName); static void removeMethodIfExists(CtClass ctClass, String methodName); static boolean hasInterface(CtClass ctClass, CtClass ctInterface); static boolean inheritsFromCustomClass(Class<?> clazz);  }