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) |
static IRubyObject[] |
RubyProc.prepareProcArgs(ThreadContext context,
Arity arity,
IRubyObject[] args)
Transforms the given arguments appropriately for the given arity (i.e.
|
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 |
ZeroArgNode.getArity()
Zero 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 |
NativeMethod.arity |
Modifier and Type | Method and Description |
---|---|
Arity |
NativeMethod.getArity() |
Modifier and Type | Method and Description |
---|---|
BlockBody |
JITCompiler.newCompiledBlockBody(ThreadContext context,
IterNode iterNode,
Arity arity,
int argumentType) |
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(String rubyName,
String javaName,
String classname,
Arity arity,
StaticScope scope,
CallConfiguration callConfig,
String file,
int line) |
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 |
TraceableJittedMethod.getArity() |
Arity |
SimpleCallbackMethod.getArity()
Deprecated.
|
Arity |
ProcMethod.getArity() |
Arity |
JittedMethod.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 |
InterpretedMethod.getArity() |
Arity |
InterpretedIRMethod.getArity() |
Arity |
FullFunctionCallbackMethod.getArity()
Deprecated.
|
Arity |
DynamicMethod.getArity()
Retrieve the arity of this method, used for reporting arity to Ruby
code.
|
Arity |
DelegatingDynamicMethod.getArity() |
Arity |
DefaultMethod.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)
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)
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)
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)
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)
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)
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) |
byte[] |
InvocationMethodFactory.getCompiledMethodOffline(String RubyName,
String method,
String className,
String invokerPath,
Arity arity,
StaticScope scope,
CallConfiguration callConfig,
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,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc) |
static DynamicMethod |
DynamicMethodFactory.newJittedMethod(Ruby runtime,
RubyModule container,
StaticScope scope,
Script script,
String name,
CallConfiguration config,
Visibility visibility,
Arity arity,
ISourcePosition position,
DefaultMethod defaultMethod) |
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) |
JittedMethod(RubyModule implementationClass,
StaticScope staticScope,
Script jitCompiledScript,
String name,
CallConfiguration jitCallConfig,
Visibility visibility,
Arity arity,
ISourcePosition position,
DefaultMethod realMethod) |
ReflectedCompiledMethod(RubyModule implementationClass,
Arity arity,
Visibility visibility,
StaticScope staticScope,
Object scriptObject,
Method method,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc) |
TraceableJittedMethod(RubyModule implementationClass,
StaticScope staticScope,
Script jitCompiledScript,
String name,
CallConfiguration jitCallConfig,
Visibility visibility,
Arity arity,
ISourcePosition position,
DefaultMethod realMethod) |
Constructor and Description |
---|
IRClosure(IRManager manager,
IRScope lexicalParent,
boolean isForLoopBody,
int lineNumber,
StaticScope staticScope,
Arity arity,
int argumentType,
boolean is1_8) |
Modifier and Type | Method and Description |
---|---|
void |
InlinerInfo.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 |
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) |
abstract DynamicMethod |
MethodFactory.getCompiledMethod(RubyModule implementationClass,
String rubyName,
String javaName,
Arity arity,
Visibility visibility,
StaticScope scope,
Object scriptObject,
CallConfiguration callConfig,
ISourcePosition position,
String parameterDesc)
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)
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)
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 |
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) |
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) |
static IRubyObject[] |
Helpers.restructureBlockArgs19(IRubyObject value,
Arity arity,
Block.Type type,
boolean needsSplat,
boolean alreadyArray) |
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,
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) |
ContextAwareBlockBody(StaticScope scope,
Arity arity,
int argumentType) |
InterpretedBlock(IterNode iterNode,
Arity arity,
int argumentType) |
InterpretedIRBlockBody(IRClosure closure,
Arity arity,
int argumentType) |
InterpretedIRBlockBody19(IRClosure closure,
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-2016 JRuby. All Rights Reserved.