Constructor and Description |
---|
ReflectionCallback(java.lang.Class type,
java.lang.String methodName,
java.lang.Class[] argumentTypes,
boolean isRestArgs,
boolean isStaticMethod,
Arity arity,
boolean fast) |
Modifier and Type | Method and Description |
---|---|
IRubyObject |
execute(IRubyObject recv,
IRubyObject[] oargs,
Block block)
Calls a wrapped Ruby method for the specified receiver with the specified arguments.
|
Arity |
getArity()
Returns the arity of the wrapped Ruby method.
|
protected java.lang.Object[] |
packageRestArgumentsForReflection(java.lang.Object[] originalArgs)
Returns an object array that collects all rest arguments in its own object array which
is then put into the last slot of the first object array.
|
public ReflectionCallback(java.lang.Class type, java.lang.String methodName, java.lang.Class[] argumentTypes, boolean isRestArgs, boolean isStaticMethod, Arity arity, boolean fast)
protected final java.lang.Object[] packageRestArgumentsForReflection(java.lang.Object[] originalArgs)
[1, 2, 3]
is transformed into [1, [2, 3]]
.public IRubyObject execute(IRubyObject recv, IRubyObject[] oargs, Block block)
Copyright © 2002-2009 JRuby Team. All Rights Reserved.