| 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,
String name,
IRubyObject[] args,
CallType callType,
Block block)
Deprecated.
|
IRubyObject |
RubyClass.invoke(ThreadContext context,
IRubyObject self,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
String name,
Visibility lastVis,
CallType lastCallType,
IRubyObject[] args) |
static IRubyObject |
RubyKernel.methodMissing(ThreadContext context,
IRubyObject recv,
String name,
Visibility lastVis,
CallType lastCallType,
IRubyObject[] args,
Block block)
Deprecated.
|
static IRubyObject |
RubyKernel.methodMissing(ThreadContext context,
IRubyObject recv,
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,
String name,
IRubyObject caller,
CallType callType) |
static boolean |
RubyClass.rbMethodCallStatus(ThreadContext context,
DynamicMethod method,
CallType callType,
IRubyObject self) |
| Constructor and Description |
|---|
MethodMissingMethod(RubyModule implementationClass,
Visibility visibility,
CallType callType) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
DelegatingDynamicMethod.isCallableFrom(IRubyObject caller,
CallType callType) |
| Modifier and Type | Method and Description |
|---|---|
CallType |
CallBase.getCallType() |
| Modifier and Type | Method and Description |
|---|---|
static NoResultCallInstr |
NoResultCallInstr.create(CallType callType,
String name,
Operand receiver,
Operand[] args,
Operand closure,
boolean isPotentiallyRefined) |
static CallInstr |
CallInstr.create(IRScope scope,
CallType callType,
Variable result,
String name,
Operand receiver,
Operand[] args,
Operand closure) |
protected static CallSite |
CallBase.getCallSiteFor(CallType callType,
String name,
boolean potentiallyRefined) |
| Constructor and Description |
|---|
CallBase(Operation op,
CallType callType,
String name,
Operand receiver,
Operand[] args,
Operand closure,
boolean potentiallyRefined) |
CallInstr(CallType callType,
Variable result,
String name,
Operand receiver,
Operand[] args,
Operand closure,
boolean potentiallyRefined) |
CallInstr(Operation op,
CallType callType,
Variable result,
String name,
Operand receiver,
Operand[] args,
Operand closure,
boolean potentiallyRefined) |
NoResultCallInstr(Operation op,
CallType callType,
String name,
Operand receiver,
Operand[] args,
Operand closure,
boolean isPotentiallyRefined) |
| Constructor and Description |
|---|
OneFixnumArgNoBlockCallInstr(CallType callType,
Variable result,
String name,
Operand receiver,
Operand[] args,
boolean potentiallyRefined) |
OneFloatArgNoBlockCallInstr(CallType callType,
Variable result,
String name,
Operand receiver,
Operand[] args,
boolean potentiallyRefined) |
OneOperandArgBlockCallInstr(CallType callType,
Variable result,
String name,
Operand receiver,
Operand[] args,
Operand closure,
boolean isPotentiallyRefined) |
OneOperandArgNoBlockCallInstr(CallType callType,
Variable result,
String name,
Operand receiver,
Operand[] args,
boolean isPotentiallyRefined) |
OneOperandArgNoBlockCallInstr(Operation op,
CallType callType,
Variable result,
String name,
Operand receiver,
Operand[] args,
boolean isPotentiallyRefined) |
OneOperandArgNoBlockNoResultCallInstr(CallType callType,
String name,
Operand receiver,
Operand[] args,
Operand closure,
boolean isPotentiallyRefined) |
TwoOperandArgNoBlockCallInstr(CallType callType,
Variable result,
String name,
Operand receiver,
Operand[] args,
boolean isPotentiallyRefined) |
TwoOperandArgNoBlockCallInstr(Operation op,
CallType callType,
Variable result,
String name,
Operand receiver,
Operand[] args,
boolean isPotentiallyRefined) |
ZeroOperandArgNoBlockCallInstr(CallType callType,
Variable result,
String name,
Operand receiver,
Operand[] args,
boolean isPotentiallyRefined) |
| Modifier and Type | Field and Description |
|---|---|
CallType |
InvokeSite.callType |
| Modifier and Type | Method and Description |
|---|---|
static void |
IRBytecodeAdapter.cacheCallSite(SkinnyMethodAdapter method,
String className,
String siteName,
String rubyName,
CallType callType,
boolean isPotentiallyRefined)
Utility to lazily construct and cache a call site object.
|
IRubyObject |
InvokeSite.callMethodMissing(CacheEntry entry,
CallType callType,
ThreadContext context,
IRubyObject self,
String name,
IRubyObject[] args,
Block block) |
void |
IRBytecodeAdapter6.invoke(String file,
int lineNumber,
String name,
int arity,
boolean hasClosure,
CallType callType,
boolean isPotentiallyRefined) |
void |
IRBytecodeAdapter7.invokeOtherOneFixnum(String file,
int line,
String name,
long fixnum,
CallType callType) |
void |
IRBytecodeAdapter6.invokeOtherOneFixnum(String file,
int line,
String name,
long fixnum,
CallType callType) |
abstract void |
IRBytecodeAdapter.invokeOtherOneFixnum(String file,
int line,
String name,
long fixnum,
CallType callType)
Invoke a fixnum-receiving method on an object other than self.
|
void |
IRBytecodeAdapter7.invokeOtherOneFloat(String file,
int line,
String name,
double flote,
CallType callType) |
void |
IRBytecodeAdapter6.invokeOtherOneFloat(String file,
int line,
String name,
double flote,
CallType callType) |
abstract void |
IRBytecodeAdapter.invokeOtherOneFloat(String file,
int line,
String name,
double flote,
CallType callType)
Invoke a float-receiving method on an object other than self.
|
void |
IRBytecodeAdapter7.invokeSelf(String file,
int line,
String name,
int arity,
boolean hasClosure,
CallType callType,
boolean isPotentiallyRefined) |
void |
IRBytecodeAdapter6.invokeSelf(String file,
int line,
String name,
int arity,
boolean hasClosure,
CallType callType,
boolean isPotentiallyRefined) |
abstract void |
IRBytecodeAdapter.invokeSelf(String file,
int line,
String name,
int arity,
boolean hasClosure,
CallType callType,
boolean isPotentiallyRefined)
Invoke a method on self.
|
| Constructor and Description |
|---|
InvokeSite(java.lang.invoke.MethodType type,
String name,
CallType callType,
String file,
int line) |
SelfInvokeSite(java.lang.invoke.MethodType type,
String name,
CallType callType,
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(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,
String name,
CallType callType,
Block block) |
static IRubyObject |
Helpers.callMethodMissing(ThreadContext context,
IRubyObject receiver,
Visibility visibility,
String name,
CallType callType,
IRubyObject[] args,
Block block) |
static IRubyObject |
Helpers.callMethodMissing(ThreadContext context,
IRubyObject receiver,
Visibility visibility,
String name,
CallType callType,
IRubyObject arg0,
Block block) |
static IRubyObject |
Helpers.callMethodMissing(ThreadContext context,
IRubyObject receiver,
Visibility visibility,
String name,
CallType callType,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
static IRubyObject |
Helpers.callMethodMissing(ThreadContext context,
IRubyObject receiver,
Visibility visibility,
String name,
CallType callType,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
Block block) |
static IRubyObject |
Helpers.invoke(ThreadContext context,
IRubyObject self,
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,
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,
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,
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,
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,
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,
String name,
CallType callType) |
static DynamicMethod |
Helpers.selectMethodMissing(ThreadContext context,
IRubyObject receiver,
Visibility visibility,
String name,
CallType callType) |
static DynamicMethod |
Helpers.selectMethodMissing(ThreadContext context,
RubyClass selfClass,
Visibility visibility,
String name,
CallType callType) |
void |
ThreadContext.setLastCallStatusAndVisibility(CallType callType,
Visibility visibility) |
| Constructor and Description |
|---|
CallSite(String methodName,
CallType callType)
Construct a new CallSite with the given method name and call type.
|
| Constructor and Description |
|---|
CachingCallSite(String methodName,
CallType callType) |
RefinedCachingCallSite(String methodName,
CallType callType) |
| Modifier and Type | Method and Description |
|---|---|
CallType |
JRubyCallSite.callType() |
| Constructor and Description |
|---|
JRubyCallSite(java.lang.invoke.MethodHandles.Lookup lookup,
java.lang.invoke.MethodType type,
CallType callType,
String file,
int line,
String name,
boolean expression) |
Copyright © 2001-2017 JRuby. All Rights Reserved.