1 28 package org.jruby.internal.runtime.methods; 29 30 import org.jruby.RubyModule; 31 import org.jruby.runtime.Arity; 32 import org.jruby.runtime.MethodFactory; 33 import org.jruby.runtime.Visibility; 34 import org.jruby.util.collections.SinglyLinkedList; 35 36 39 public class ReflectionMethodFactory extends MethodFactory { 40 public DynamicMethod getFullMethod(RubyModule implementationClass, Class type, String methodName, Arity arity, Visibility visibility) { 41 return new FullFunctionReflectedMethod(implementationClass,type,methodName,arity,visibility); 42 } 43 44 public DynamicMethod getSimpleMethod(RubyModule implementationClass, Class type, String methodName, Arity arity, Visibility visibility) { 45 return new SimpleReflectedMethod(implementationClass,type,methodName,arity,visibility); 46 } 47 48 public DynamicMethod getCompiledMethod(RubyModule implementationClass, Class type, String methodName, Arity arity, Visibility visibility, SinglyLinkedList cref) { 49 assert false: "Not yet implemented"; 50 return null; 51 } 52 } | Popular Tags |