| Modifier and Type | Method and Description |
|---|---|
static boolean |
RubyClass.checkFuncallCallable(ThreadContext context,
DynamicMethod method,
CallType callType,
IRubyObject self) |
IRubyObject |
RubyClass.invoke(ThreadContext context,
IRubyObject self,
int methodIndex,
java.lang.String name,
IRubyObject[] args,
CallType callType,
Block block)
Deprecated.
|
IRubyObject |
RubyClass.invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
CallType callType)
Deprecated.
Use finvoke if you do not want visibility-checking or invokeFrom if you do.
|
IRubyObject |
RubyClass.invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
CallType callType,
Block block)
Deprecated.
Use finvoke if you do not want visibility-checking or invokeFrom if you do.
|
IRubyObject |
RubyClass.invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject[] args,
CallType callType)
Deprecated.
Use finvoke if you do not want visibility-checking or invokeFrom if you do.
|
IRubyObject |
RubyClass.invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject[] args,
CallType callType,
Block block)
Deprecated.
Use finvoke if you do not want visibility-checking or invokeFrom if you do.
|
IRubyObject |
RubyClass.invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg,
CallType callType)
Deprecated.
Use finvoke if you do not want visibility-checking or invokeFrom if you do.
|
IRubyObject |
RubyClass.invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg,
CallType callType,
Block block)
Deprecated.
Use finvoke if you do not want visibility-checking or invokeFrom if you do.
|
IRubyObject |
RubyClass.invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1,
CallType callType)
Deprecated.
Use finvoke if you do not want visibility-checking or invokeFrom if you do.
|
IRubyObject |
RubyClass.invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1,
CallType callType,
Block block)
Deprecated.
Use finvoke if you do not want visibility-checking or invokeFrom if you do.
|
IRubyObject |
RubyClass.invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
CallType callType)
Deprecated.
Use finvoke if you do not want visibility-checking or invokeFrom if you do.
|
IRubyObject |
RubyClass.invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
CallType callType,
Block block)
Deprecated.
Use finvoke if you do not want visibility-checking or invokeFrom if you do.
|
IRubyObject |
RubyClass.invokeFrom(ThreadContext context,
CallType callType,
IRubyObject caller,
IRubyObject self,
java.lang.String name)
Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it.
|
IRubyObject |
RubyClass.invokeFrom(ThreadContext context,
CallType callType,
IRubyObject caller,
IRubyObject self,
java.lang.String name,
Block block)
Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it.
|
IRubyObject |
RubyClass.invokeFrom(ThreadContext context,
CallType callType,
IRubyObject caller,
IRubyObject self,
java.lang.String name,
IRubyObject arg)
Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it.
|
IRubyObject |
RubyClass.invokeFrom(ThreadContext context,
CallType callType,
IRubyObject caller,
IRubyObject self,
java.lang.String name,
IRubyObject[] args)
Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it.
|
IRubyObject |
RubyClass.invokeFrom(ThreadContext context,
CallType callType,
IRubyObject caller,
IRubyObject self,
java.lang.String name,
IRubyObject[] args,
Block block)
Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it.
|
IRubyObject |
RubyClass.invokeFrom(ThreadContext context,
CallType callType,
IRubyObject caller,
IRubyObject self,
java.lang.String name,
IRubyObject arg,
Block block)
Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it.
|
IRubyObject |
RubyClass.invokeFrom(ThreadContext context,
CallType callType,
IRubyObject caller,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1)
Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it.
|
IRubyObject |
RubyClass.invokeFrom(ThreadContext context,
CallType callType,
IRubyObject caller,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1,
Block block)
Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it.
|
IRubyObject |
RubyClass.invokeFrom(ThreadContext context,
CallType callType,
IRubyObject caller,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2)
Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it.
|
IRubyObject |
RubyClass.invokeFrom(ThreadContext context,
CallType callType,
IRubyObject caller,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
Block block)
Same behavior as finvoke, but uses the given caller object to check visibility if callType demands it.
|
static IRubyObject |
RubyKernel.methodMissing(ThreadContext context,
IRubyObject recv,
java.lang.String name,
Visibility lastVis,
CallType lastCallType,
IRubyObject[] args) |
static IRubyObject |
RubyKernel.methodMissing(ThreadContext context,
IRubyObject recv,
java.lang.String name,
Visibility lastVis,
CallType lastCallType,
IRubyObject[] args,
Block block)
Deprecated.
|
static IRubyObject |
RubyKernel.methodMissing(ThreadContext context,
IRubyObject recv,
java.lang.String name,
Visibility lastVis,
CallType lastCallType,
IRubyObject[] args,
boolean dropFirst) |
protected static IRubyObject |
RubyKernel.methodMissingDirect(ThreadContext context,
IRubyObject recv,
RubySymbol symbol,
Visibility lastVis,
CallType lastCallType,
IRubyObject[] args) |
boolean |
RubyClass.notVisibleAndNotMethodMissing(DynamicMethod method,
java.lang.String name,
IRubyObject caller,
CallType callType) |
static boolean |
RubyClass.rbMethodCallStatus(ThreadContext context,
DynamicMethod method,
CallType callType,
IRubyObject self) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
DelegatingDynamicMethod.isCallableFrom(IRubyObject caller,
CallType callType) |
boolean |
UndefinedMethod.isCallableFrom(IRubyObject caller,
CallType callType)
UndefinedMethod is always visible because it's only used as a marker for
missing or undef'ed methods.
|
boolean |
NullMethod.isCallableFrom(IRubyObject caller,
CallType callType)
NullMethod is always visible because it's only used as a marker to
break method lookup loops.
|
boolean |
DynamicMethod.isCallableFrom(IRubyObject caller,
CallType callType)
Determine whether this method is callable from the given object using
the given call type.
|
| Modifier and Type | Method and Description |
|---|---|
CallType |
CallBase.getCallType() |
| Modifier and Type | Method and Description |
|---|---|
static NoResultCallInstr |
NoResultCallInstr.create(IRScope scope,
CallType callType,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure,
boolean isPotentiallyRefined) |
static CallInstr |
CallInstr.create(IRScope scope,
CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure) |
static CallInstr |
CallInstr.createWithKwargs(IRScope scope,
CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure,
java.util.List<KeyValuePair<Operand,Operand>> kwargs) |
protected static CallSite |
CallBase.getCallSiteFor(IRScope scope,
CallType callType,
java.lang.String name,
long callsiteId,
boolean hasLiteralClosure,
boolean potentiallyRefined) |
| Constructor and Description |
|---|
CallBase(IRScope scope,
Operation op,
CallType callType,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure,
boolean potentiallyRefined) |
CallInstr(IRScope scope,
CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure,
boolean potentiallyRefined) |
CallInstr(IRScope scope,
Operation op,
CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure,
boolean potentiallyRefined) |
NoResultCallInstr(IRScope scope,
Operation op,
CallType callType,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure,
boolean isPotentiallyRefined) |
| Constructor and Description |
|---|
OneFixnumArgNoBlockCallInstr(IRScope scope,
CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
boolean potentiallyRefined) |
OneFloatArgNoBlockCallInstr(IRScope scope,
CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
boolean potentiallyRefined) |
OneOperandArgBlockCallInstr(IRScope scope,
CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure,
boolean isPotentiallyRefined) |
OneOperandArgNoBlockCallInstr(IRScope scope,
CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
boolean isPotentiallyRefined) |
OneOperandArgNoBlockCallInstr(IRScope scope,
Operation op,
CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
boolean isPotentiallyRefined) |
OneOperandArgNoBlockNoResultCallInstr(IRScope scope,
CallType callType,
RubySymbol name,
Operand receiver,
Operand[] args,
Operand closure,
boolean isPotentiallyRefined) |
TwoOperandArgNoBlockCallInstr(IRScope scope,
CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
boolean isPotentiallyRefined) |
TwoOperandArgNoBlockCallInstr(IRScope scope,
Operation op,
CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
boolean isPotentiallyRefined) |
ZeroOperandArgNoBlockCallInstr(IRScope scope,
CallType callType,
Variable result,
RubySymbol name,
Operand receiver,
Operand[] args,
boolean isPotentiallyRefined) |
| Modifier and Type | Field and Description |
|---|---|
CallType |
InvokeSite.callType |
| Modifier and Type | Method and Description |
|---|---|
IRubyObject |
InvokeSite.callMethodMissing(CacheEntry entry,
CallType callType,
ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject[] args,
Block block)
Variable arity method_missing invocation.
|
IRubyObject |
InvokeSite.callMethodMissing(CacheEntry entry,
CallType callType,
ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
Block block)
Arity one method_missing invocation
|
IRubyObject |
InvokeSite.callMethodMissing(CacheEntry entry,
CallType callType,
ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1,
Block block)
Arity two method_missing invocation
|
IRubyObject |
InvokeSite.callMethodMissing(CacheEntry entry,
CallType callType,
ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
Block block)
Arity three method_missing invocation
|
| Constructor and Description |
|---|
InvokeSite(java.lang.invoke.MethodType type,
java.lang.String name,
CallType callType,
boolean literalClosure,
java.lang.String file,
int line) |
InvokeSite(java.lang.invoke.MethodType type,
java.lang.String name,
CallType callType,
java.lang.String file,
int line) |
SelfInvokeSite(java.lang.invoke.MethodType type,
java.lang.String name,
CallType callType,
boolean literalClosure,
java.lang.String file,
int line) |
SelfInvokeSite(java.lang.invoke.MethodType type,
java.lang.String name,
CallType callType,
java.lang.String file,
int line) |
| Modifier and Type | Field and Description |
|---|---|
protected CallType |
CallSite.callType
The type of call this site makes
|
| Modifier and Type | Method and Description |
|---|---|
static CallType |
CallType.fromOrdinal(int ordinal) |
CallType |
ThreadContext.getLastCallType() |
static CallType |
CallType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CallType[] |
CallType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static IRubyObject |
Helpers.callMethodMissing(ThreadContext context,
IRubyObject receiver,
Visibility visibility,
java.lang.String name,
CallType callType,
Block block) |
static IRubyObject |
Helpers.callMethodMissing(ThreadContext context,
IRubyObject receiver,
Visibility visibility,
java.lang.String name,
CallType callType,
IRubyObject[] args,
Block block) |
static IRubyObject |
Helpers.callMethodMissing(ThreadContext context,
IRubyObject receiver,
Visibility visibility,
java.lang.String name,
CallType callType,
IRubyObject arg0,
Block block) |
static IRubyObject |
Helpers.callMethodMissing(ThreadContext context,
IRubyObject receiver,
Visibility visibility,
java.lang.String name,
CallType callType,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
static IRubyObject |
Helpers.callMethodMissing(ThreadContext context,
IRubyObject receiver,
Visibility visibility,
java.lang.String name,
CallType callType,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
Block block) |
static IRubyObject |
Helpers.invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
CallType callType)
Deprecated.
Use finvoke if you do not want visibility-checking or invokeFrom if you do.
|
static IRubyObject |
Helpers.invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject[] args,
CallType callType,
Block block)
Deprecated.
Use finvoke if you do not want visibility-checking or invokeFrom if you do.
|
static IRubyObject |
Helpers.invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg,
CallType callType,
Block block)
Deprecated.
Use finvoke if you do not want visibility-checking or invokeFrom if you do.
|
static IRubyObject |
Helpers.invokeFrom(ThreadContext context,
IRubyObject caller,
IRubyObject self,
java.lang.String name,
CallType callType)
Same behavior as invoke, but uses the given caller object to check visibility if callType demands it.
|
static IRubyObject |
Helpers.invokeFrom(ThreadContext context,
IRubyObject caller,
IRubyObject self,
java.lang.String name,
IRubyObject[] args,
CallType callType,
Block block)
Same behavior as invoke, but uses the given caller object to check visibility if callType demands it.
|
static IRubyObject |
Helpers.invokeFrom(ThreadContext context,
IRubyObject caller,
IRubyObject self,
java.lang.String name,
IRubyObject arg,
CallType callType,
Block block)
Same behavior as invoke, but uses the given caller object to check visibility if callType demands it.
|
static DynamicMethod |
Helpers.selectMethodMissing(RubyClass selfClass,
Visibility visibility,
java.lang.String name,
CallType callType) |
static DynamicMethod |
Helpers.selectMethodMissing(ThreadContext context,
IRubyObject receiver,
Visibility visibility,
java.lang.String name,
CallType callType) |
static DynamicMethod |
Helpers.selectMethodMissing(ThreadContext context,
RubyClass selfClass,
Visibility visibility,
java.lang.String name,
CallType callType) |
void |
ThreadContext.setLastCallStatusAndVisibility(CallType callType,
Visibility visibility) |
| Constructor and Description |
|---|
CallSite(java.lang.String methodName,
CallType callType)
Construct a new CallSite with the given method name and call type.
|
| Constructor and Description |
|---|
CachingCallSite(java.lang.String methodName,
CallType callType) |
RefinedCachingCallSite(java.lang.String methodName,
CallType callType) |
| Modifier and Type | Method and Description |
|---|---|
CallType |
JRubyCallSite.callType() |
| Modifier and Type | Method and Description |
|---|---|
static IRubyObject |
InvokeDynamicSupport.callMethodMissing(CacheEntry entry,
CallType callType,
ThreadContext context,
IRubyObject self,
java.lang.String name) |
static IRubyObject |
InvokeDynamicSupport.callMethodMissing(CacheEntry entry,
CallType callType,
ThreadContext context,
IRubyObject self,
java.lang.String name,
Block block) |
static IRubyObject |
InvokeDynamicSupport.callMethodMissing(CacheEntry entry,
CallType callType,
ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg) |
static IRubyObject |
InvokeDynamicSupport.callMethodMissing(CacheEntry entry,
CallType callType,
ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject[] args) |
static IRubyObject |
InvokeDynamicSupport.callMethodMissing(CacheEntry entry,
CallType callType,
ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject[] args,
Block block) |
static IRubyObject |
InvokeDynamicSupport.callMethodMissing(CacheEntry entry,
CallType callType,
ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
Block block) |
static IRubyObject |
InvokeDynamicSupport.callMethodMissing(CacheEntry entry,
CallType callType,
ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1) |
static IRubyObject |
InvokeDynamicSupport.callMethodMissing(CacheEntry entry,
CallType callType,
ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
static IRubyObject |
InvokeDynamicSupport.callMethodMissing(CacheEntry entry,
CallType callType,
ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2) |
static IRubyObject |
InvokeDynamicSupport.callMethodMissing(CacheEntry entry,
CallType callType,
ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
Block block) |
static boolean |
InvokeDynamicSupport.methodMissing(CacheEntry entry,
CallType callType,
java.lang.String name,
IRubyObject caller) |
| Constructor and Description |
|---|
JRubyCallSite(java.lang.invoke.MethodHandles.Lookup lookup,
java.lang.invoke.MethodType type,
CallType callType,
java.lang.String file,
int line,
java.lang.String name,
boolean expression) |
Copyright © 2001-2018 JRuby. All Rights Reserved.