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 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 final boolean defineAnnotatedMethod(String name, List<JavaMethodDescriptor> methods, MethodFactory methodFactory) { JavaMethodDescriptor desc = methods.get(0); if (methods.size() == 1) { return defineAnnotatedMethod(name, desc, methodFactory); } DynamicMethod dynamicMethod = methodFactory.getAnnotatedMethod(this, methods, name); define(this, desc, name, dynamicMethod); return true; }
public final boolean defineAnnotatedMethod(Method method, MethodFactory methodFactory) { JRubyMethod jrubyMethod = method.getAnnotation(JRubyMethod.class); if (jrubyMethod == null) return false; JavaMethodDescriptor desc = new JavaMethodDescriptor(method); DynamicMethod dynamicMethod = methodFactory.getAnnotatedMethod(this, desc, method.getName()); define(this, desc, method.getName(), dynamicMethod); return true; }
public final boolean defineAnnotatedMethod(Method method, MethodFactory methodFactory) { JRubyMethod jrubyMethod = method.getAnnotation(JRubyMethod.class); if (jrubyMethod == null) return false; JavaMethodDescriptor desc = new JavaMethodDescriptor(method); DynamicMethod dynamicMethod = methodFactory.getAnnotatedMethod(this, desc, method.getName()); define(this, desc, method.getName(), dynamicMethod); return true; }
public final boolean defineAnnotatedMethod(String name, List<JavaMethodDescriptor> methods, MethodFactory methodFactory) { JavaMethodDescriptor desc = methods.get(0); if (methods.size() == 1) { return defineAnnotatedMethod(name, desc, methodFactory); } DynamicMethod dynamicMethod = methodFactory.getAnnotatedMethod(this, methods, name); define(this, desc, name, dynamicMethod); return true; }
public boolean defineAnnotatedMethod(Method method, MethodFactory methodFactory) { JRubyMethod jrubyMethod = method.getAnnotation(JRubyMethod.class); if (jrubyMethod == null) return false; CompatVersion compatVersion = getRuntime().getInstanceConfig().getCompatVersion(); if (shouldBindMethod(compatVersion, jrubyMethod.compat())) { JavaMethodDescriptor desc = new JavaMethodDescriptor(method); DynamicMethod dynamicMethod = methodFactory.getAnnotatedMethod(this, desc); define(this, desc, method.getName(), dynamicMethod); return true; } return false; }
public boolean defineAnnotatedMethod(Method method, MethodFactory methodFactory) { JRubyMethod jrubyMethod = method.getAnnotation(JRubyMethod.class); if (jrubyMethod == null) return false; CompatVersion compatVersion = getRuntime().getInstanceConfig().getCompatVersion(); if (shouldBindMethod(compatVersion, jrubyMethod.compat())) { JavaMethodDescriptor desc = new JavaMethodDescriptor(method); DynamicMethod dynamicMethod = methodFactory.getAnnotatedMethod(this, desc); define(this, desc, method.getName(), dynamicMethod); return true; } return false; }
public boolean defineAnnotatedMethod(String name, List<JavaMethodDescriptor> methods, MethodFactory methodFactory) { JavaMethodDescriptor desc = methods.get(0); if (methods.size() == 1) { return defineAnnotatedMethod(name, desc, methodFactory); } else { CompatVersion compatVersion = getRuntime().getInstanceConfig().getCompatVersion(); if (shouldBindMethod(compatVersion, desc.anno.compat())) { DynamicMethod dynamicMethod = methodFactory.getAnnotatedMethod(this, methods); define(this, desc, name, dynamicMethod); return true; } return false; } }
public boolean defineAnnotatedMethod(String name, List<JavaMethodDescriptor> methods, MethodFactory methodFactory) { JavaMethodDescriptor desc = methods.get(0); if (methods.size() == 1) { return defineAnnotatedMethod(name, desc, methodFactory); } else { CompatVersion compatVersion = getRuntime().getInstanceConfig().getCompatVersion(); if (shouldBindMethod(compatVersion, desc.anno.compat())) { DynamicMethod dynamicMethod = methodFactory.getAnnotatedMethod(this, methods); define(this, desc, name, dynamicMethod); return true; } return false; } }
public boolean defineAnnotatedMethod(String name, JavaMethodDescriptor desc, MethodFactory methodFactory) { JRubyMethod jrubyMethod = desc.anno; if (jrubyMethod == null) return false; CompatVersion compatVersion = getRuntime().getInstanceConfig().getCompatVersion(); if (shouldBindMethod(compatVersion, jrubyMethod.compat())) { DynamicMethod dynamicMethod = methodFactory.getAnnotatedMethod(this, desc); define(this, desc, name, dynamicMethod); return true; } return false; }
public boolean defineAnnotatedMethod(String name, JavaMethodDescriptor desc, MethodFactory methodFactory) { JRubyMethod jrubyMethod = desc.anno; if (jrubyMethod == null) return false; CompatVersion compatVersion = getRuntime().getInstanceConfig().getCompatVersion(); if (shouldBindMethod(compatVersion, jrubyMethod.compat())) { DynamicMethod dynamicMethod = methodFactory.getAnnotatedMethod(this, desc); define(this, desc, name, dynamicMethod); return true; } return false; }