/** * Creates a new {@link FunctionPtr} which points to the specified * {@link Callback} {@link Method}. * * @param callbackMethod the {@link Callback} {@link Method} this * {@link FunctionPtr} will point at. * @throws IllegalArgumentException if the specified {@link Method} isn't * a {@link Callback}. */ public FunctionPtr(Method callbackMethod) { super(0); if (callbackMethod == null) { throw new NullPointerException("callbackMethod"); } if (!callbackMethod.isAnnotationPresent(Callback.class)) { throw new IllegalArgumentException("The method " + callbackMethod + " is not a @Callback method"); } setHandle(VM.getCallbackMethodImpl(callbackMethod)); }
/** * Creates a new {@link FunctionPtr} which points to the specified * {@link Callback} {@link Method}. * * @param callbackMethod the {@link Callback} {@link Method} this * {@link FunctionPtr} will point at. * @throws IllegalArgumentException if the specified {@link Method} isn't * a {@link Callback}. */ public FunctionPtr(Method callbackMethod) { super(0); if (callbackMethod == null) { throw new NullPointerException("callbackMethod"); } if (!callbackMethod.isAnnotationPresent(Callback.class)) { throw new IllegalArgumentException("The method " + callbackMethod + " is not a @Callback method"); } setHandle(VM.getCallbackMethodImpl(callbackMethod)); }
/** * Creates a new {@link FunctionPtr} which points to the specified * {@link Callback} {@link Method}. * * @param callbackMethod the {@link Callback} {@link Method} this * {@link FunctionPtr} will point at. * @throws IllegalArgumentException if the specified {@link Method} isn't * a {@link Callback}. */ public FunctionPtr(Method callbackMethod) { super(0); if (callbackMethod == null) { throw new NullPointerException("callbackMethod"); } if (!callbackMethod.isAnnotationPresent(Callback.class)) { throw new IllegalArgumentException("The method " + callbackMethod + " is not a @Callback method"); } setHandle(VM.getCallbackMethodImpl(callbackMethod)); }
/** * Creates a new {@link FunctionPtr} which points to the specified * {@link Callback} {@link Method}. * * @param callbackMethod the {@link Callback} {@link Method} this * {@link FunctionPtr} will point at. * @throws IllegalArgumentException if the specified {@link Method} isn't * a {@link Callback}. */ public FunctionPtr(Method callbackMethod) { super(0); if (callbackMethod == null) { throw new NullPointerException("callbackMethod"); } if (!callbackMethod.isAnnotationPresent(Callback.class)) { throw new IllegalArgumentException("The method " + callbackMethod + " is not a @Callback method"); } setHandle(VM.getCallbackMethodImpl(callbackMethod)); }
/** * Creates a new {@link FunctionPtr} which points to the specified * {@link Callback} {@link Method}. * * @param callbackMethod the {@link Callback} {@link Method} this * {@link FunctionPtr} will point at. * @throws IllegalArgumentException if the specified {@link Method} isn't * a {@link Callback}. */ public FunctionPtr(Method callbackMethod) { super(0); if (callbackMethod == null) { throw new NullPointerException("callbackMethod"); } if (!callbackMethod.isAnnotationPresent(Callback.class)) { throw new IllegalArgumentException("The method " + callbackMethod + " is not a @Callback method"); } setHandle(VM.getCallbackMethodImpl(callbackMethod)); }
/** * Creates a new {@link FunctionPtr} which points to the specified * {@link Callback} {@link Method}. * * @param callbackMethod the {@link Callback} {@link Method} this * {@link FunctionPtr} will point at. * @throws IllegalArgumentException if the specified {@link Method} isn't * a {@link Callback}. */ public FunctionPtr(Method callbackMethod) { super(0); if (callbackMethod == null) { throw new NullPointerException("callbackMethod"); } if (!callbackMethod.isAnnotationPresent(Callback.class)) { throw new IllegalArgumentException("The method " + callbackMethod + " is not a @Callback method"); } setHandle(VM.getCallbackMethodImpl(callbackMethod)); }