/** * Use code generation to provide a method handle for a compiled Ruby method. * * @see org.jruby.runtime.MethodFactory#getCompiledMethod */ public DynamicMethod getCompiledMethodLazily( RubyModule implementationClass, String rubyName, String javaName, Arity arity, Visibility visibility, StaticScope scope, Object scriptObject, CallConfiguration callConfig, ISourcePosition position, String parameterDesc) { return new CompiledMethod.LazyCompiledMethod( implementationClass, rubyName, javaName, arity, visibility, scope, scriptObject, callConfig, position, parameterDesc, new InvocationMethodFactory(classLoader)); }
public String[] getParameterList() { if (compiledMethod == null) initializeMethod(); return parameterList; }
/** * Use code generation to provide a method handle for a compiled Ruby method. * * @see org.jruby.runtime.MethodFactory#getCompiledMethod */ public DynamicMethod getCompiledMethodLazily( RubyModule implementationClass, String rubyName, String javaName, Arity arity, Visibility visibility, StaticScope scope, Object scriptObject, CallConfiguration callConfig, ISourcePosition position, String parameterDesc) { return new CompiledMethod.LazyCompiledMethod( implementationClass, rubyName, javaName, arity, visibility, scope, scriptObject, callConfig, position, parameterDesc, new InvocationMethodFactory(classLoader)); }
public String getFile() { if (compiledMethod == null) initializeMethod(); return position.getFile(); }
public int getLine() { if (compiledMethod == null) initializeMethod(); return position.getStartLine(); }
@Override public Visibility getVisibility() { if (compiledMethod == null) initializeMethod(); return compiledMethod.getVisibility(); }
@Override public RubyModule getImplementationClass() { if (compiledMethod == null) initializeMethod(); return compiledMethod.getImplementationClass(); }
@Override public CallConfiguration getCallConfig() { if (compiledMethod == null) initializeMethod(); return compiledMethod.getCallConfig(); }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1) { if (compiledMethod == null) initializeMethod(); return compiledMethod.call(context, self, clazz, name, arg0, arg1); }
@Override public boolean isNative() { if (compiledMethod == null) initializeMethod(); return compiledMethod.isNative(); }
@Override public Visibility getVisibility() { if (compiledMethod == null) initializeMethod(); return compiledMethod.getVisibility(); }
@Override protected RubyModule getProtectedClass() { if (compiledMethod == null) initializeMethod(); return compiledMethod.getProtectedClass(); }
@Override public CallConfiguration getCallConfig() { if (compiledMethod == null) initializeMethod(); return compiledMethod.getCallConfig(); }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) { if (compiledMethod == null) initializeMethod(); return compiledMethod.call(context, self, clazz, name, args, block); }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args) { if (compiledMethod == null) initializeMethod(); return compiledMethod.call(context, self, clazz, name, args); }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) { if (compiledMethod == null) initializeMethod(); return compiledMethod.call(context, self, clazz, name); }
public int getLine() { if (compiledMethod == null) initializeMethod(); return position.getStartLine(); }
public String getFile() { if (compiledMethod == null) initializeMethod(); return position.getFile(); }
public String[] getParameterList() { if (compiledMethod == null) initializeMethod(); return parameterList; }
@Override public DynamicMethod dup() { if (compiledMethod == null) initializeMethod(); return compiledMethod.dup(); }