Map<String, List<JavaMethodDescriptor>> methodsHash = null; if (desc.isStatic) { if (anno.compat() == RUBY1_8) { methodsHash = staticAnnotatedMethods1_8; } else if (anno.compat() == RUBY1_9) { methodsHash = staticAnnotatedMethods1_9; } else if (anno.compat() == RUBY2_0) { methodsHash = staticAnnotatedMethods2_0; } else { if (anno.compat() == RUBY1_8) { methodsHash = annotatedMethods1_8; } else if (anno.compat() == RUBY1_9) { methodsHash = annotatedMethods1_9; } else if (anno.compat() == RUBY2_0) { methodsHash = annotatedMethods2_0; } else {
Map<String, List<JavaMethodDescriptor>> methodsHash = null; if (desc.isStatic) { if (anno.compat() == RUBY1_8) { methodsHash = staticAnnotatedMethods1_8; } else if (anno.compat() == RUBY1_9) { methodsHash = staticAnnotatedMethods1_9; } else if (anno.compat() == RUBY2_0) { methodsHash = staticAnnotatedMethods2_0; } else { if (anno.compat() == RUBY1_8) { methodsHash = annotatedMethods1_8; } else if (anno.compat() == RUBY1_9) { methodsHash = annotatedMethods1_9; } else if (anno.compat() == RUBY2_0) { methodsHash = annotatedMethods2_0; } else {
if (anno.compat() == org.jruby.CompatVersion.RUBY1_8) continue;
if (anno.compat() == org.jruby.CompatVersion.RUBY1_8) continue;
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; }
if (anno.compat() == org.jruby.CompatVersion.RUBY1_8) continue;
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; } }
if (anno.compat() == org.jruby.CompatVersion.RUBY1_8) continue;
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; } }
hasMeta |= anno.meta(); hasModule |= anno.module(); hasCompat |= anno.compat() != CompatVersion.BOTH; Map<CharSequence, List<ExecutableElement>> methodsHash = null; if (method.getModifiers().contains(Modifier.STATIC)) { if (anno.compat() == CompatVersion.RUBY1_8) { methodsHash = staticAnnotatedMethods1_8; } else if (anno.compat() == CompatVersion.RUBY1_9) { methodsHash = staticAnnotatedMethods1_9; } else if (anno.compat() == CompatVersion.RUBY2_0) { methodsHash = staticAnnotatedMethods2_0; } else { if (anno.compat() == CompatVersion.RUBY1_8) { methodsHash = annotatedMethods1_8; } else if (anno.compat() == CompatVersion.RUBY1_9) { methodsHash = annotatedMethods1_9; } else if (anno.compat() == CompatVersion.RUBY2_0) { methodsHash = annotatedMethods2_0; } else {
hasMeta |= anno.meta(); hasModule |= anno.module(); hasCompat |= anno.compat() != CompatVersion.BOTH; Map<CharSequence, List<ExecutableElement>> methodsHash = null; if (method.getModifiers().contains(Modifier.STATIC)) { if (anno.compat() == CompatVersion.RUBY1_8) { methodsHash = staticAnnotatedMethods1_8; } else if (anno.compat() == CompatVersion.RUBY1_9) { methodsHash = staticAnnotatedMethods1_9; } else if (anno.compat() == CompatVersion.RUBY2_0) { methodsHash = staticAnnotatedMethods2_0; } else { if (anno.compat() == CompatVersion.RUBY1_8) { methodsHash = annotatedMethods1_8; } else if (anno.compat() == CompatVersion.RUBY1_9) { methodsHash = annotatedMethods1_9; } else if (anno.compat() == CompatVersion.RUBY2_0) { methodsHash = annotatedMethods2_0; } else {
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; }
if (anno == null) continue; if (anno.compat() == org.jruby.CompatVersion.RUBY1_8) continue;
if (anno == null) continue; if (anno.compat() == org.jruby.CompatVersion.RUBY1_8) continue;