Modifier and Type | Method and Description |
---|---|
static IRubyObject |
RubyEnumerable.callEach(Ruby runtime,
ThreadContext context,
IRubyObject self,
Arity arity,
BlockCallback callback) |
static IRubyObject |
RubyEnumerable.callEach(Ruby runtime,
ThreadContext context,
IRubyObject self,
IRubyObject[] args,
Arity arity,
BlockCallback callback)
Deprecated.
|
static IRubyObject |
RubyEnumerable.callEach19(Ruby runtime,
ThreadContext context,
IRubyObject self,
Arity arity,
BlockCallback callback) |
Modifier and Type | Field and Description |
---|---|
protected Arity |
ArgsNode.arity |
Modifier and Type | Method and Description |
---|---|
protected Arity |
ArgsNode.calculateArity() |
Arity |
ArgsNode.getArity() |
Arity |
AssignableNode.getArity()
Almost all assignables are only assigned a single value.
|
Arity |
InstVarNode.getArity()
A variable accessor takes no arguments.
|
Arity |
MultipleAsgn19Node.getArity() |
Arity |
MultipleAsgnNode.getArity()
Number of arguments is dependent on headNodes size
|
Arity |
ZSuperNode.getArity()
'super' can take any number of arguments.
|
Arity |
ZeroArgNode.getArity()
Zero arguments...
|
Modifier and Type | Method and Description |
---|---|
Arity |
IArityNode.getArity() |
Modifier and Type | Field and Description |
---|---|
protected Arity |
NativeMethod.arity |
Modifier and Type | Method and Description |
---|---|
Arity |
NativeMethod.getArity() |
Modifier and Type | Field and Description |
---|---|
protected Arity |
AbstractVariableCompiler.arity |
Modifier and Type | Method and Description |
---|---|
Arity |
StandardASMCompiler.InvokerDescriptor.getArity() |
Constructor and Description |
---|
StandardASMCompiler.InvokerDescriptor(java.lang.String name,
java.lang.String classname,
java.lang.String invokerName,
Arity arity,
StaticScope scope,
CallConfiguration callConfig,
java.lang.String file,
int line) |
Constructor and Description |
---|
IRClosure(IRScope lexicalParent,
StaticScope staticScope,
Arity arity,
int argumentType) |
Modifier and Type | Field and Description |
---|---|
protected Arity |
AbstractInvoker.arity
The arity of this function.
|
protected Arity |
CallbackInfo.arity
The arity of this function.
|
Modifier and Type | Method and Description |
---|---|
Arity |
AbstractInvoker.getArity()
Returns the
Arity of this function. |
Arity |
CallbackInfo.getArity()
Returns the
Arity of this function. |
Modifier and Type | Method and Description |
---|---|
Arity |
VariadicInvoker.getArity()
Returns the
Arity of this function. |
Modifier and Type | Field and Description |
---|---|
protected Arity |
JavaMethod.arity |
Modifier and Type | Method and Description |
---|---|
Arity |
AliasMethod.getArity() |
Arity |
CompiledMethod.LazyCompiledMethod.getArity() |
Arity |
DefaultMethod.getArity() |
Arity |
DelegatingDynamicMethod.getArity() |
Arity |
DynamicMethod.getArity()
Retrieve the arity of this method, used for reporting arity to Ruby
code.
|
Arity |
FullFunctionCallbackMethod.getArity() |
Arity |
InterpretedMethod.getArity() |
Arity |
JavaMethod.getArity() |
Arity |
JavaMethod.JavaMethodOneBlock.getArity() |
Arity |
JavaMethod.JavaMethodZero.getArity() |
Arity |
JavaMethod.JavaMethodOne.getArity() |
Arity |
JavaMethod.JavaMethodTwo.getArity() |
Arity |
JavaMethod.JavaMethodThree.getArity() |
Arity |
JittedMethod.getArity() |
Arity |
ProcMethod.getArity() |
Arity |
SimpleCallbackMethod.getArity() |
Arity |
TraceableJittedMethod.getArity() |
Modifier and Type | Method and Description |
---|---|
DynamicMethod |
InvocationMethodFactory.getCompiledMethod(RubyModule implementationClass,
java.lang.String method,
Arity arity,
Visibility visibility,
StaticScope scope,
java.lang.Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
java.lang.String parameterDesc)
Use code generation to provide a method handle for a compiled Ruby method.
|
DynamicMethod |
ReflectionMethodFactory.getCompiledMethod(RubyModule implementationClass,
java.lang.String methodName,
Arity arity,
Visibility visibility,
StaticScope scope,
java.lang.Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
java.lang.String parameterDesc)
Use reflection to provide a method handle for a compiled Ruby method.
|
DynamicMethod |
InvocationMethodFactory.getCompiledMethodLazily(RubyModule implementationClass,
java.lang.String method,
Arity arity,
Visibility visibility,
StaticScope scope,
java.lang.Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
java.lang.String parameterDesc)
Use code generation to provide a method handle for a compiled Ruby method.
|
DynamicMethod |
ReflectionMethodFactory.getCompiledMethodLazily(RubyModule implementationClass,
java.lang.String methodName,
Arity arity,
Visibility visibility,
StaticScope scope,
java.lang.Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
java.lang.String parameterDesc)
Use reflection to provide a method handle for a compiled Ruby method.
|
byte[] |
InvocationMethodFactory.getCompiledMethodOffline(java.lang.String method,
java.lang.String className,
java.lang.String invokerPath,
Arity arity,
StaticScope scope,
CallConfiguration callConfig,
java.lang.String filename,
int line)
Use code generation to provide a method handle for a compiled Ruby method.
|
void |
JavaMethod.init(RubyModule implementationClass,
Arity arity,
Visibility visibility,
StaticScope staticScope,
CallConfiguration callConfig) |
protected void |
CompiledMethod.init(RubyModule implementationClass,
Arity arity,
Visibility visibility,
StaticScope staticScope,
java.lang.Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
java.lang.String parameterDesc) |
static DynamicMethod |
DynamicMethodFactory.newJittedMethod(Ruby runtime,
RubyModule container,
StaticScope scope,
Script script,
java.lang.String name,
CallConfiguration config,
Visibility visibility,
Arity arity,
ISourcePosition position,
DefaultMethod defaultMethod) |
void |
JavaMethod.setArity(Arity arity) |
Constructor and Description |
---|
CompiledMethod.LazyCompiledMethod(RubyModule implementationClass,
java.lang.String method,
Arity arity,
Visibility visibility,
StaticScope scope,
java.lang.Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
java.lang.String parameterDesc,
MethodFactory factory) |
JittedMethod(RubyModule implementationClass,
StaticScope staticScope,
Script jitCompiledScript,
java.lang.String name,
CallConfiguration jitCallConfig,
Visibility visibility,
Arity arity,
ISourcePosition position,
DefaultMethod realMethod) |
ReflectedCompiledMethod(RubyModule implementationClass,
Arity arity,
Visibility visibility,
StaticScope staticScope,
java.lang.Object scriptObject,
java.lang.reflect.Method method,
CallConfiguration callConfig,
ISourcePosition position,
java.lang.String parameterDesc) |
TraceableJittedMethod(RubyModule implementationClass,
StaticScope staticScope,
Script jitCompiledScript,
java.lang.String name,
CallConfiguration jitCallConfig,
Visibility visibility,
Arity arity,
ISourcePosition position,
DefaultMethod realMethod) |
Modifier and Type | Method and Description |
---|---|
static byte[] |
RuntimeHelpers.defOffline(java.lang.String name,
java.lang.String classPath,
java.lang.String invokerName,
Arity arity,
StaticScope scope,
CallConfiguration callConfig,
java.lang.String filename,
int line) |
Modifier and Type | Method and Description |
---|---|
Arity |
StaticScope.getArity() |
Modifier and Type | Field and Description |
---|---|
static Arity |
Arity.NO_ARGUMENTS |
static Arity |
Arity.ONE_ARGUMENT |
static Arity |
Arity.ONE_REQUIRED |
static Arity |
Arity.OPTIONAL |
static Arity |
Arity.THREE_ARGUMENTS |
static Arity |
Arity.THREE_REQUIRED |
static Arity |
Arity.TWO_ARGUMENTS |
static Arity |
Arity.TWO_REQUIRED |
Modifier and Type | Method and Description |
---|---|
Arity |
Block.arity()
What is the arity of this block?
|
abstract Arity |
BlockBody.arity()
What is the arity of this block?
|
Arity |
CallBlock.arity() |
Arity |
CallBlock19.arity() |
Arity |
ContextAwareBlockBody.arity() |
Arity |
NullBlockBody.arity() |
static Arity |
Arity.createArity(int value) |
static Arity |
Arity.fixed(int arity) |
static Arity |
Arity.fromAnnotation(JRubyMethod anno) |
static Arity |
Arity.fromAnnotation(JRubyMethod anno,
java.lang.Class[] parameterTypes,
boolean isStatic) |
static Arity |
Arity.fromAnnotation(JRubyMethod anno,
int actualRequired) |
static Arity |
Arity.noArguments() |
static Arity |
Arity.optional() |
static Arity |
Arity.procArityOf(Node node) |
static Arity |
Arity.required(int minimum) |
static Arity |
Arity.singleArgument() |
static Arity |
Arity.twoArguments() |
Modifier and Type | Method and Description |
---|---|
abstract DynamicMethod |
MethodFactory.getCompiledMethod(RubyModule implementationClass,
java.lang.String method,
Arity arity,
Visibility visibility,
StaticScope scope,
java.lang.Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
java.lang.String parameterDesc)
Get a new method handle based on the target JRuby-compiled method.
|
abstract DynamicMethod |
MethodFactory.getCompiledMethodLazily(RubyModule implementationClass,
java.lang.String method,
Arity arity,
Visibility visibility,
StaticScope scope,
java.lang.Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
java.lang.String parameterDesc)
Like getCompiledMethod, but postpones any heavy lifting involved in
creating the method until first invocation.
|
byte[] |
MethodFactory.getCompiledMethodOffline(java.lang.String method,
java.lang.String classPath,
java.lang.String invokerPath,
Arity arity,
StaticScope scope,
CallConfiguration callConfig,
java.lang.String filename,
int line)
Like getCompiledMethod, but produces the actual bytes for the compiled
method handle rather than loading and constructing it.
|
static BlockBody |
InterpretedBlock.newBlockBody(IterNode iter,
Arity arity,
int argumentType) |
static Block |
CallBlock.newCallClosure(IRubyObject self,
RubyModule imClass,
Arity arity,
BlockCallback callback,
ThreadContext context) |
static Block |
CallBlock19.newCallClosure(IRubyObject self,
RubyModule imClass,
Arity arity,
BlockCallback callback,
ThreadContext context) |
static BlockBody |
CompiledBlock19.newCompiledBlock(Arity arity,
StaticScope scope,
CompiledBlockCallback19 callback,
boolean hasMultipleArgsHead,
int argumentType,
java.lang.String[] parameterList) |
static BlockBody |
CompiledBlock.newCompiledBlock(Arity arity,
StaticScope scope,
CompiledBlockCallback callback,
boolean hasMultipleArgsHead,
int argumentType) |
static BlockBody |
CompiledBlockLight19.newCompiledBlockLight(Arity arity,
StaticScope scope,
CompiledBlockCallback19 callback,
boolean hasMultipleArgsHead,
int argumentType,
java.lang.String[] parameterList) |
static BlockBody |
CompiledBlockLight.newCompiledBlockLight(Arity arity,
StaticScope scope,
CompiledBlockCallback callback,
boolean hasMultipleArgsHead,
int argumentType) |
static Block |
CompiledBlock19.newCompiledClosure(ThreadContext context,
IRubyObject self,
Arity arity,
StaticScope scope,
CompiledBlockCallback19 callback,
boolean hasMultipleArgsHead,
int argumentType) |
static Block |
CompiledBlock.newCompiledClosure(ThreadContext context,
IRubyObject self,
Arity arity,
StaticScope scope,
CompiledBlockCallback callback,
boolean hasMultipleArgsHead,
int argumentType) |
static Block |
CompiledBlockLight19.newCompiledClosureLight(ThreadContext context,
IRubyObject self,
Arity arity,
StaticScope scope,
CompiledBlockCallback19 callback,
boolean hasMultipleArgsHead,
int argumentType) |
static Block |
CompiledBlockLight.newCompiledClosureLight(ThreadContext context,
IRubyObject self,
Arity arity,
StaticScope scope,
CompiledBlockCallback callback,
boolean hasMultipleArgsHead,
int argumentType) |
static Block |
CompiledSharedScopeBlock.newCompiledSharedScopeClosure(ThreadContext context,
IRubyObject self,
Arity arity,
DynamicScope dynamicScope,
CompiledBlockCallback callback,
boolean hasMultipleArgsHead,
int argumentType) |
Constructor and Description |
---|
CompiledBlock(Arity arity,
StaticScope scope,
CompiledBlockCallback callback,
boolean hasMultipleArgsHead,
int argumentType) |
CompiledBlock19(Arity arity,
StaticScope scope,
CompiledBlockCallback19 callback,
boolean hasMultipleArgsHead,
int argumentType,
java.lang.String[] parameterList) |
CompiledBlockLight(Arity arity,
StaticScope scope,
CompiledBlockCallback callback,
boolean hasMultipleArgsHead,
int argumentType) |
CompiledBlockLight19(Arity arity,
StaticScope scope,
CompiledBlockCallback19 callback,
boolean hasMultipleArgsHead,
int argumentType,
java.lang.String[] parameterList) |
ContextAwareBlockBody(StaticScope scope,
Arity arity,
int argumentType) |
InterpretedBlock(IterNode iterNode,
Arity arity,
int argumentType) |
InterpretedIRBlockBody(IRClosure closure,
Arity arity,
int argumentType) |
Modifier and Type | Field and Description |
---|---|
protected Arity |
InvocationCallback.arity |
Modifier and Type | Method and Description |
---|---|
Arity |
Callback.getArity() |
Arity |
InvocationCallback.getArity() |
Arity |
ReflectionCallback.getArity()
Returns the arity of the wrapped Ruby method.
|
Modifier and Type | Method and Description |
---|---|
void |
InvocationCallback.setArity(Arity arity) |
Constructor and Description |
---|
ReflectionCallback(java.lang.Class type,
java.lang.String methodName,
java.lang.Class[] argumentTypes,
boolean isRestArgs,
boolean isStaticMethod,
Arity arity,
boolean fast) |
Copyright © 2002-2009 JRuby Team. All Rights Reserved.