Examples of RubyUnboundMethod


Examples of org.jruby.RubyUnboundMethod

    } else if (method instanceof AliasMethod) {
      method = method.getRealMethod();
      return methodSourceLocation(runtime, method);
    } else if (method instanceof MethodMethod) {
      // MethodMethod.getRealMethod and RubyMethod.getMethod are JRuby >= 1.6 only.
      RubyUnboundMethod unboundMethod = (RubyUnboundMethod)getPrivateField(runtime, MethodMethod.class, "method", method);
      DynamicMethod realMethod = (DynamicMethod)getPrivateField(runtime, RubyMethod.class, "method", unboundMethod);
      return methodSourceLocation(runtime, realMethod);
    } else if (method instanceof WrapperMethod) {
      method = (DynamicMethod)getPrivateField(runtime, WrapperMethod.class, "method", method);
      return methodSourceLocation(runtime, method);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.