public static void populateMethod(JavaMethod javaMethod, int arity, String simpleName, boolean isStatic, boolean notImplemented) { javaMethod.setIsBuiltin(true); javaMethod.setArity(Arity.createArity(arity)); javaMethod.setJavaName(simpleName); javaMethod.setSingleton(isStatic); javaMethod.setNotImplemented(notImplemented); }
public static void populateMethod(JavaMethod javaMethod, int arity, String simpleName, boolean isStatic, boolean notImplemented) { javaMethod.setIsBuiltin(true); javaMethod.setArity(Arity.createArity(arity)); javaMethod.setJavaName(simpleName); javaMethod.setSingleton(isStatic); javaMethod.setNotImplemented(notImplemented); }
/** * Use code generation to provide a method handle based on an annotated Java * method. * * @see org.jruby.runtime.MethodFactory#getAnnotatedMethod */ public void prepareAnnotatedMethod(RubyModule implementationClass, JavaMethod javaMethod, JavaMethodDescriptor desc) { String javaMethodName = desc.name; javaMethod.setArity(Arity.fromAnnotation(desc.anno, desc.actualRequired)); javaMethod.setJavaName(javaMethodName); javaMethod.setSingleton(desc.isStatic); javaMethod.setCallConfig(CallConfiguration.getCallConfigByAnno(desc.anno)); }
/** * Use code generation to provide a method handle based on an annotated Java * method. * * @see org.jruby.runtime.MethodFactory#getAnnotatedMethod */ public void prepareAnnotatedMethod(RubyModule implementationClass, JavaMethod javaMethod, JavaMethodDescriptor desc) { String javaMethodName = desc.name; javaMethod.setArity(Arity.fromAnnotation(desc.anno, desc.actualRequired)); javaMethod.setJavaName(javaMethodName); javaMethod.setSingleton(desc.isStatic); javaMethod.setCallConfig(CallConfiguration.getCallConfigByAnno(desc.anno)); }
public static void populateMethod(JavaMethod javaMethod, int arity, String simpleName, boolean isStatic, boolean notImplemented, Class nativeTarget, String nativeName, Class nativeReturn, Class[] nativeArguments) { javaMethod.setIsBuiltin(true); javaMethod.setArity(Arity.createArity(arity)); javaMethod.setJavaName(simpleName); javaMethod.setSingleton(isStatic); javaMethod.setNotImplemented(notImplemented); javaMethod.setNativeCall(nativeTarget, nativeName, nativeReturn, nativeArguments, isStatic, false); }
public static void populateMethod(JavaMethod javaMethod, int arity, String simpleName, boolean isStatic, boolean notImplemented, Class nativeTarget, String nativeName, Class nativeReturn, Class[] nativeArguments) { javaMethod.setIsBuiltin(true); javaMethod.setArity(Arity.createArity(arity)); javaMethod.setJavaName(simpleName); javaMethod.setSingleton(isStatic); javaMethod.setNotImplemented(notImplemented); javaMethod.setNativeCall(nativeTarget, nativeName, nativeReturn, nativeArguments, isStatic, false); }
public static void populateMethod(JavaMethod javaMethod, int arity, String simpleName, boolean isStatic, CallConfiguration callConfig, boolean notImplemented) { javaMethod.setIsBuiltin(true); javaMethod.setArity(Arity.createArity(arity)); javaMethod.setJavaName(simpleName); javaMethod.setSingleton(isStatic); javaMethod.setCallConfig(callConfig); javaMethod.setNotImplemented(notImplemented); }
public static void populateMethod(JavaMethod javaMethod, int arity, String simpleName, boolean isStatic, CallConfiguration callConfig, boolean notImplemented) { javaMethod.setIsBuiltin(true); javaMethod.setArity(Arity.createArity(arity)); javaMethod.setJavaName(simpleName); javaMethod.setSingleton(isStatic); javaMethod.setCallConfig(callConfig); javaMethod.setNotImplemented(notImplemented); }
public static void populateMethod(JavaMethod javaMethod, int arity, String simpleName, boolean isStatic, CallConfiguration callConfig, boolean notImplemented, Class nativeTarget, String nativeName, Class nativeReturn, Class[] nativeArguments) { javaMethod.setIsBuiltin(true); javaMethod.setArity(Arity.createArity(arity)); javaMethod.setJavaName(simpleName); javaMethod.setSingleton(isStatic); javaMethod.setCallConfig(callConfig); javaMethod.setNotImplemented(notImplemented); javaMethod.setNativeCall(nativeTarget, nativeName, nativeReturn, nativeArguments, isStatic, false); }
public static void populateMethod(JavaMethod javaMethod, int arity, String simpleName, boolean isStatic, CallConfiguration callConfig, boolean notImplemented, Class nativeTarget, String nativeName, Class nativeReturn, Class[] nativeArguments) { javaMethod.setIsBuiltin(true); javaMethod.setArity(Arity.createArity(arity)); javaMethod.setJavaName(simpleName); javaMethod.setSingleton(isStatic); javaMethod.setCallConfig(callConfig); javaMethod.setNotImplemented(notImplemented); javaMethod.setNativeCall(nativeTarget, nativeName, nativeReturn, nativeArguments, isStatic, false); }