Modifier and Type | Method and Description |
---|---|
static IRubyObject |
RubyEnumerable.all_pCommon(ThreadContext context,
IRubyObject self,
Block block,
Arity callbackArity) |
static IRubyObject |
RubyEnumerable.any_pCommon(ThreadContext context,
IRubyObject self,
Block block,
Arity callbackArity) |
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) |
static IRubyObject |
RubyEnumerable.find_index(ThreadContext context,
IRubyObject self,
Block block,
Arity callbackArity) |
static IRubyObject |
RubyEnumerable.find_indexCommon(ThreadContext context,
IRubyObject self,
Block block,
Arity callbackArity) |
static IRubyObject |
RubyEnumerable.none_p(ThreadContext context,
IRubyObject self,
Block block,
Arity callbackArity) |
static IRubyObject |
RubyEnumerable.one_p(ThreadContext context,
IRubyObject self,
Block block,
Arity callbackArity) |
Modifier and Type | Field and Description |
---|---|
protected Arity |
ArgsNode.arity |
Modifier and Type | Method and Description |
---|---|
protected Arity |
ArgsNode.calculateArity() |
Arity |
ZSuperNode.getArity()
'super' can take any number of arguments.
|
Arity |
MultipleAsgnNode.getArity()
Number of arguments is dependent on headNodes size
|
Arity |
MultipleAsgn19Node.getArity() |
Arity |
InstVarNode.getArity()
A variable accessor takes no arguments.
|
Arity |
AssignableNode.getArity()
Almost all assignables are only assigned a single value.
|
Arity |
ArgsNode.getArity() |
Modifier and Type | Method and Description |
---|---|
Arity |
IArityNode.getArity() |
Modifier and Type | Field and Description |
---|---|
protected Arity |
CallbackInfo.arity
The arity of this function.
|
protected Arity |
AbstractInvoker.arity
The arity of this function.
|
Modifier and Type | Method and Description |
---|---|
Arity |
CallbackInfo.getArity()
Returns the
Arity of this function. |
Arity |
AbstractInvoker.getArity()
Returns the
Arity of this function. |
Modifier and Type | Field and Description |
---|---|
protected Arity |
NativeInvoker.arity |
protected Arity |
DefaultMethod.arity |
Modifier and Type | Method and Description |
---|---|
Arity |
VariadicInvoker.getArity()
Returns the
Arity of this function. |
Arity |
NativeInvoker.getArity() |
Arity |
DefaultMethod.getArity() |
Modifier and Type | Field and Description |
---|---|
protected Arity |
JavaMethod.arity |
Modifier and Type | Method and Description |
---|---|
Arity |
ProcMethod.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 |
InterpretedIRMethod.getArity() |
Arity |
DynamicMethod.getArity()
Retrieve the arity of this method, used for reporting arity to Ruby
code.
|
Arity |
DelegatingDynamicMethod.getArity() |
Arity |
CompiledMethod.LazyCompiledMethod.getArity() |
Arity |
CompiledIRMethod.getArity() |
Arity |
AliasMethod.getArity() |
Modifier and Type | Method and Description |
---|---|
DynamicMethod |
ReflectionMethodFactory.getCompiledMethod(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Use reflection to provide a method handle for a compiled Ruby method.
|
DynamicMethod |
InvokeDynamicMethodFactory.getCompiledMethod(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Use JSR292 to provide a method handle for a compiled Ruby method.
|
DynamicMethod |
InvocationMethodFactory.getCompiledMethod(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Use code generation to provide a method handle for a compiled Ruby method.
|
DynamicMethod |
ReflectionMethodFactory.getCompiledMethodLazily(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Use reflection to provide a method handle for a compiled Ruby method.
|
DynamicMethod |
InvokeDynamicMethodFactory.getCompiledMethodLazily(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Use code generation to provide a method handle for a compiled Ruby method.
|
DynamicMethod |
InvocationMethodFactory.getCompiledMethodLazily(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Use code generation to provide a method handle for a compiled Ruby method.
|
byte[] |
InvokeDynamicMethodFactory.getCompiledMethodOffline(String rubyName,
String javaName,
String className,
String invokerPath,
Arity arity,
StaticScope scope,
CallConfiguration callConfig,
String filename,
int line,
MethodNodes methodNodes) |
byte[] |
InvocationMethodFactory.getCompiledMethodOffline(String RubyName,
String method,
String className,
String invokerPath,
Arity arity,
StaticScope scope,
CallConfiguration callConfig,
String filename,
int line,
MethodNodes methodNodes)
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,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc) |
void |
JavaMethod.setArity(Arity arity) |
Constructor and Description |
---|
CompiledMethod.LazyCompiledMethod(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodFactory factory,
MethodNodes methodNodes) |
ReflectedCompiledMethod(RubyModule implementationClass,
Arity arity,
Visibility visibility,
StaticScope staticScope,
Object scriptObject,
Method method,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc) |
Modifier and Type | Method and Description |
---|---|
Arity |
IRClosure.getArity() |
Modifier and Type | Method and Description |
---|---|
static IRubyObject[] |
IRRuntimeHelpers.convertValueIntoArgArray(ThreadContext context,
IRubyObject value,
Arity arity,
boolean argIsArray) |
Modifier and Type | Method and Description |
---|---|
void |
InlineCloneInfo.setupYieldArgsAndYieldResult(YieldInstr yi,
BasicBlock yieldBB,
Arity blockArity) |
Modifier and Type | Method and Description |
---|---|
Arity |
StaticScope.getArity() |
Modifier and Type | Field and Description |
---|---|
protected Arity |
ContextAwareBlockBody.arity
The 'Arity' of the block
|
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 |
Signature.arity() |
Arity |
NullBlockBody.arity() |
Arity |
JavaInternalBlockBody.arity() |
Arity |
ContextAwareBlockBody.arity() |
Arity |
CallBlock19.arity() |
Arity |
CallBlock.arity() |
abstract Arity |
BlockBody.arity()
What is the arity of this block?
|
Arity |
Block.arity()
What is the arity of this block?
|
static Arity |
Arity.createArity(int value) |
static Arity |
Arity.fixed(int arity) |
static Arity |
Arity.fromAnnotation(JRubyMethod anno) |
static Arity |
Arity.fromAnnotation(JRubyMethod anno,
Class[] parameterTypes,
boolean isStatic) |
static Arity |
Arity.fromAnnotation(JRubyMethod anno,
int required) |
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 |
---|---|
static byte[] |
Helpers.defOffline(String rubyName,
String javaName,
String classPath,
String invokerName,
Arity arity,
StaticScope scope,
CallConfiguration callConfig,
String filename,
int line,
MethodNodes methodNodes) |
abstract DynamicMethod |
MethodFactory.getCompiledMethod(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Get a new method handle based on the target JRuby-compiled method.
|
abstract DynamicMethod |
MethodFactory.getCompiledMethodLazily(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc,
MethodNodes methodNodes)
Like getCompiledMethod, but postpones any heavy lifting involved in
creating the method until first invocation.
|
byte[] |
MethodFactory.getCompiledMethodOffline(String rubyName,
String javaName,
String classPath,
String invokerPath,
Arity arity,
StaticScope scope,
CallConfiguration callConfig,
String filename,
int line,
MethodNodes methodNodes)
Like getCompiledMethod, but produces the actual bytes for the compiled
method handle rather than loading and constructing it.
|
static Block |
CallBlock19.newCallClosure(IRubyObject self,
RubyModule imClass,
Arity arity,
BlockCallback callback,
ThreadContext context) |
static Block |
CallBlock.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,
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,
String[] parameterList)
Deprecated.
|
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)
Deprecated.
|
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) |
static IRubyObject[] |
Helpers.restructureBlockArgs19(IRubyObject value,
Arity arity,
Block.Type type,
boolean needsSplat,
boolean alreadyArray) |
Constructor and Description |
---|
CallBlock19(Arity arity,
BlockCallback callback,
ThreadContext context) |
CompiledBlock(Arity arity,
StaticScope scope,
CompiledBlockCallback callback,
boolean hasMultipleArgsHead,
int argumentType) |
CompiledBlock19(Arity arity,
StaticScope scope,
CompiledBlockCallback19 callback,
boolean hasMultipleArgsHead,
int argumentType,
String[] parameterList) |
CompiledBlockLight(Arity arity,
StaticScope scope,
CompiledBlockCallback callback,
boolean hasMultipleArgsHead,
int argumentType) |
CompiledBlockLight19(Arity arity,
StaticScope scope,
CompiledBlockCallback19 callback,
boolean hasMultipleArgsHead,
int argumentType,
String[] parameterList)
Deprecated.
|
ContextAwareBlockBody(StaticScope scope,
Arity arity,
int argumentType) |
JavaInternalBlockBody(Ruby runtime,
Arity arity)
For blocks which can be executed in any thread concurrently.
|
JavaInternalBlockBody(Ruby runtime,
ThreadContext originalContext,
String methodName,
Arity arity)
For blocks which cannot be executed in parallel.
|
Modifier and Type | Method and Description |
---|---|
Arity |
Callback.getArity()
Deprecated.
|
Copyright © 2001-2015 JRuby. All Rights Reserved.