public static CompiledBlockCallback19 createBlockCallback19(Object scriptObject, String closureMethod, String file, int line) { Class scriptClass = scriptObject.getClass(); ClassLoader scriptClassLoader = scriptClass.getClassLoader(); MethodFactory factory = MethodFactory.createFactory(scriptClassLoader); return factory.getBlockCallback19(closureMethod, file, line, scriptObject); }
public final boolean defineAnnotatedMethod(String name, JavaMethodDescriptor desc, MethodFactory methodFactory) { JRubyMethod jrubyMethod = desc.anno; if (jrubyMethod == null) return false; DynamicMethod dynamicMethod = methodFactory.getAnnotatedMethod(this, desc, name); define(this, desc, name, dynamicMethod); return true; }
public static CompiledBlockCallback createBlockCallback(Object scriptObject, String closureMethod, String file, int line) { Class scriptClass = scriptObject.getClass(); ClassLoader scriptClassLoader = scriptClass.getClassLoader(); MethodFactory factory = MethodFactory.createFactory(scriptClassLoader); return factory.getBlockCallback(closureMethod, file, line, scriptObject); }
public static byte[] defOffline(String rubyName, String javaName, String classPath, String invokerName, Arity arity, StaticScope scope, CallConfiguration callConfig, String filename, int line) { MethodFactory factory = MethodFactory.createFactory(Helpers.class.getClassLoader()); byte[] methodBytes = factory.getCompiledMethodOffline(rubyName, javaName, classPath, invokerName, arity, scope, callConfig, filename, line); return methodBytes; }
public static byte[] createBlockCallback19Offline(String classPath, String closureMethod, String file, int line) { MethodFactory factory = MethodFactory.createFactory(Helpers.class.getClassLoader()); return factory.getBlockCallback19Offline(closureMethod, file, line, classPath); }
public static byte[] createBlockCallbackOffline(String classPath, String closureMethod, String file, int line) { MethodFactory factory = MethodFactory.createFactory(Helpers.class.getClassLoader()); return factory.getBlockCallbackOffline(closureMethod, file, line, classPath); }
public void defineAnnotatedMethod(Class clazz, String name) { // FIXME: This is probably not very efficient, since it loads all methods for each call boolean foundMethod = false; for (Method method : clazz.getDeclaredMethods()) { if (method.getName().equals(name) && defineAnnotatedMethod(method, MethodFactory.createFactory(getRuntime().getJRubyClassLoader()))) { foundMethod = true; } } if (!foundMethod) { throw new RuntimeException("No JRubyMethod present for method " + name + "on class " + clazz.getName()); } }
return factory.getCompiledMethodLazily( rubyClass, rubyName, parameterDesc); } else { return factory.getCompiledMethod( rubyClass, rubyName,
private synchronized void initializeMethod() { if (compiledMethod != null) return; compiledMethod = factory.getCompiledMethod(implementationClass, rubyName, javaName, arity, visibility, scope, scriptObject, callConfig, position, parameterDesc); factory = null; }
public void defineAnnotatedMethod(Class clazz, String name) { // FIXME: This is probably not very efficient, since it loads all methods for each call boolean foundMethod = false; for (Method method : clazz.getDeclaredMethods()) { if (method.getName().equals(name) && defineAnnotatedMethod(method, MethodFactory.createFactory(getRuntime().getJRubyClassLoader()))) { foundMethod = true; } } if (!foundMethod) { throw new RuntimeException("No JRubyMethod present for method " + name + "on class " + clazz.getName()); } }
public static byte[] defOffline(String rubyName, String javaName, String classPath, String invokerName, Arity arity, StaticScope scope, CallConfiguration callConfig, String filename, int line) { MethodFactory factory = MethodFactory.createFactory(Helpers.class.getClassLoader()); byte[] methodBytes = factory.getCompiledMethodOffline(rubyName, javaName, classPath, invokerName, arity, scope, callConfig, filename, line); return methodBytes; }
public static byte[] createBlockCallback19Offline(String classPath, String closureMethod, String file, int line) { MethodFactory factory = MethodFactory.createFactory(Helpers.class.getClassLoader()); return factory.getBlockCallback19Offline(closureMethod, file, line, classPath); }
public static byte[] createBlockCallbackOffline(String classPath, String closureMethod, String file, int line) { MethodFactory factory = MethodFactory.createFactory(Helpers.class.getClassLoader()); return factory.getBlockCallbackOffline(closureMethod, file, line, classPath); }
return factory.getCompiledMethodLazily( rubyClass, rubyName, parameterDesc); } else { return factory.getCompiledMethod( rubyClass, rubyName,
private synchronized void initializeMethod() { if (compiledMethod != null) return; compiledMethod = factory.getCompiledMethod(implementationClass, rubyName, javaName, arity, visibility, scope, scriptObject, callConfig, position, parameterDesc); factory = null; }
public final boolean defineAnnotatedMethod(String name, JavaMethodDescriptor desc, MethodFactory methodFactory) { JRubyMethod jrubyMethod = desc.anno; if (jrubyMethod == null) return false; DynamicMethod dynamicMethod = methodFactory.getAnnotatedMethod(this, desc, name); define(this, desc, name, dynamicMethod); return true; }
public void defineAnnotatedMethod(Class clazz, String name) { // FIXME: This is probably not very efficient, since it loads all methods for each call boolean foundMethod = false; for (Method method : clazz.getDeclaredMethods()) { if (method.getName().equals(name) && defineAnnotatedMethod(method, MethodFactory.createFactory(getRuntime().getJRubyClassLoader()))) { foundMethod = true; } } if (!foundMethod) { throw new RuntimeException("No JRubyMethod present for method " + name + "on class " + clazz.getName()); } }
public static CompiledBlockCallback19 createBlockCallback19(Object scriptObject, String closureMethod, String file, int line) { Class scriptClass = scriptObject.getClass(); ClassLoader scriptClassLoader = scriptClass.getClassLoader(); MethodFactory factory = MethodFactory.createFactory(scriptClassLoader); return factory.getBlockCallback19(closureMethod, file, line, scriptObject); }
public static CompiledBlockCallback createBlockCallback(Object scriptObject, String closureMethod, String file, int line) { Class scriptClass = scriptObject.getClass(); ClassLoader scriptClassLoader = scriptClass.getClassLoader(); MethodFactory factory = MethodFactory.createFactory(scriptClassLoader); return factory.getBlockCallback(closureMethod, file, line, scriptObject); }
method = factory.getCompiledMethodLazily( containingClass, name, parameterDesc); } else { method = factory.getCompiledMethod( containingClass, name,