private static Method find(Class<?> findClass, Class<?> inClass, org.robovm.rt.bro.annotation.Marshaler anno) { Class<?> marshalerClass = anno.value(); for (Method method : marshalerClass.getMethods()) { if (method.isAnnotationPresent(MarshalsPointer.class)) { // Is this a valid marshaler method? The signature should match // T toObject(Class, long, long) Class<?> returnType = method.getReturnType(); Class<?>[] paramTypes = method.getParameterTypes(); if (!returnType.isPrimitive() && paramTypes.length == 3 && paramTypes[0] == Class.class && paramTypes[1] == long.class && paramTypes[2] == long.class) { if (returnType.isAssignableFrom(findClass)) { return method; } } } } return null; }
private static Method find(Class<?> findClass, Class<?> inClass, org.robovm.rt.bro.annotation.Marshaler anno) { Class<?> marshalerClass = anno.value(); for (Method method : marshalerClass.getMethods()) { if (method.isAnnotationPresent(MarshalsPointer.class)) { // Is this a valid marshaler method? The signature should match // T toObject(Class, long, long) Class<?> returnType = method.getReturnType(); Class<?>[] paramTypes = method.getParameterTypes(); if (!returnType.isPrimitive() && paramTypes.length == 3 && paramTypes[0] == Class.class && paramTypes[1] == long.class && paramTypes[2] == long.class) { if (returnType.isAssignableFrom(findClass)) { return method; } } } } return null; }
private static Method find(Class<?> findClass, Class<?> inClass, org.robovm.rt.bro.annotation.Marshaler anno) { Class<?> marshalerClass = anno.value(); for (Method method : marshalerClass.getMethods()) { if (method.isAnnotationPresent(MarshalsPointer.class)) { // Is this a valid marshaler method? The signature should match // T toObject(Class, long, long) Class<?> returnType = method.getReturnType(); Class<?>[] paramTypes = method.getParameterTypes(); if (!returnType.isPrimitive() && paramTypes.length == 3 && paramTypes[0] == Class.class && paramTypes[1] == long.class && paramTypes[2] == long.class) { if (returnType.isAssignableFrom(findClass)) { return method; } } } } return null; }
private static Method find(Class<?> findClass, Class<?> inClass, org.robovm.rt.bro.annotation.Marshaler anno) { Class<?> marshalerClass = anno.value(); for (Method method : marshalerClass.getMethods()) { if (method.isAnnotationPresent(MarshalsPointer.class)) { // Is this a valid marshaler method? The signature should match // T toObject(Class, long, long) Class<?> returnType = method.getReturnType(); Class<?>[] paramTypes = method.getParameterTypes(); if (!returnType.isPrimitive() && paramTypes.length == 3 && paramTypes[0] == Class.class && paramTypes[1] == long.class && paramTypes[2] == long.class) { if (returnType.isAssignableFrom(findClass)) { return method; } } } } return null; }
private static Method find(Class<?> findClass, Class<?> inClass, org.robovm.rt.bro.annotation.Marshaler anno) { Class<?> marshalerClass = anno.value(); for (Method method : marshalerClass.getMethods()) { if (method.isAnnotationPresent(MarshalsPointer.class)) { // Is this a valid marshaler method? The signature should match // T toObject(Class, long, long) Class<?> returnType = method.getReturnType(); Class<?>[] paramTypes = method.getParameterTypes(); if (!returnType.isPrimitive() && paramTypes.length == 3 && paramTypes[0] == Class.class && paramTypes[1] == long.class && paramTypes[2] == long.class) { if (returnType.isAssignableFrom(findClass)) { return method; } } } } return null; }
private static Method find(Class<?> findClass, Class<?> inClass, org.robovm.rt.bro.annotation.Marshaler anno) { Class<?> marshalerClass = anno.value(); for (Method method : marshalerClass.getMethods()) { if (method.isAnnotationPresent(MarshalsPointer.class)) { // Is this a valid marshaler method? The signature should match // T toObject(Class, long, long) Class<?> returnType = method.getReturnType(); Class<?>[] paramTypes = method.getParameterTypes(); if (!returnType.isPrimitive() && paramTypes.length == 3 && paramTypes[0] == Class.class && paramTypes[1] == long.class && paramTypes[2] == long.class) { if (returnType.isAssignableFrom(findClass)) { return method; } } } } return null; }