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; }
JavaMethodDescriptor desc = new JavaMethodDescriptor(method);
JavaMethodDescriptor desc = new JavaMethodDescriptor(method);
JavaMethodDescriptor desc = new JavaMethodDescriptor(method);
JavaMethodDescriptor desc = new JavaMethodDescriptor(method);
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; }