org.jruby.javasupport.util
Class RuntimeHelpers

java.lang.Object
  extended by org.jruby.javasupport.util.RuntimeHelpers

public class RuntimeHelpers
extends java.lang.Object

Helper methods which are called by the compiler. Note: These will show no consumers, but generated code does call these so don't remove them thinking they are dead code.


Field Summary
static int MAX_SPECIFIC_ARITY_HASH
           
static int MAX_SPECIFIC_ARITY_OBJECT_ARRAY
           
 
Constructor Summary
RuntimeHelpers()
           
 
Method Summary
static IRubyObject[] appendToObjectArray(IRubyObject[] array, IRubyObject add)
           
static IRubyObject backref(ThreadContext context)
           
static IRubyObject backrefLastMatch(ThreadContext context)
           
static IRubyObject backrefMatchLast(ThreadContext context)
           
static IRubyObject backrefMatchPost(ThreadContext context)
           
static IRubyObject backrefMatchPre(ThreadContext context)
           
static IRubyObject breakJump(IRubyObject value)
           
static IRubyObject breakJumpInWhile(JumpException.BreakJump bj, Block aBlock)
           
static IRubyObject breakLocalJumpError(Ruby runtime, IRubyObject value)
           
static IRubyObject callMethodMissing(ThreadContext context, IRubyObject receiver, DynamicMethod method, java.lang.String name, int methodIndex, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
           
static IRubyObject callMethodMissing(ThreadContext context, IRubyObject receiver, DynamicMethod method, java.lang.String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
           
static IRubyObject callZSuper(Ruby runtime, ThreadContext context, Block block, IRubyObject self)
           
static void checkSuperDisabledOrOutOfMethod(ThreadContext context)
           
static IRubyObject compilerCallMethod(ThreadContext context, IRubyObject receiver, java.lang.String name, IRubyObject[] args, IRubyObject caller, CallType callType, Block block)
          Used by the compiler to handle visibility
static IRubyObject compilerCallMethodWithIndex(ThreadContext context, IRubyObject receiver, int methodIndex, java.lang.String name, IRubyObject[] args, IRubyObject caller, CallType callType, Block block)
          Used by the compiler to ease calling indexed methods, also to handle visibility.
static IRubyObject[] concatObjectArrays(IRubyObject[] array, IRubyObject[] add)
           
static RubyHash constructHash(Ruby runtime, IRubyObject key1, IRubyObject value1)
           
static RubyHash constructHash(Ruby runtime, IRubyObject key1, IRubyObject value1, IRubyObject key2, IRubyObject value2)
           
static RubyHash constructHash(Ruby runtime, IRubyObject key1, IRubyObject value1, IRubyObject key2, IRubyObject value2, IRubyObject key3, IRubyObject value3)
           
static IRubyObject[] constructObjectArray(IRubyObject one)
           
static IRubyObject[] constructObjectArray(IRubyObject one, IRubyObject two)
           
static IRubyObject[] constructObjectArray(IRubyObject one, IRubyObject two, IRubyObject three)
           
static IRubyObject[] constructObjectArray(IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four)
           
static IRubyObject[] constructObjectArray(IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five)
           
static Block createBlock(ThreadContext context, IRubyObject self, int arity, java.lang.String[] staticScopeNames, CompiledBlockCallback callback, boolean hasMultipleArgsHead, int argsNodeType, boolean light)
           
static CompiledBlockCallback createBlockCallback(Ruby runtime, java.lang.Object scriptObject, java.lang.String closureMethod)
           
static Block createSharedScopeBlock(ThreadContext context, IRubyObject self, int arity, CompiledBlockCallback callback, boolean hasMultipleArgsHead, int argsNodeType)
           
static RubyArray createSubarray(IRubyObject[] input, Ruby runtime, int start)
           
static RubyArray createSubarray(RubyArray input, int start)
           
static IRubyObject declareClassVariable(ThreadContext context, Ruby runtime, IRubyObject self, java.lang.String name, IRubyObject value)
           
static IRubyObject def(ThreadContext context, IRubyObject self, java.lang.Object scriptObject, java.lang.String name, java.lang.String javaName, java.lang.String[] scopeNames, int arity, int required, int optional, int rest, CallConfiguration callConfig)
           
static IRubyObject defineAlias(ThreadContext context, java.lang.String newName, java.lang.String oldName)
           
static IRubyObject defs(ThreadContext context, IRubyObject self, IRubyObject receiver, java.lang.Object scriptObject, java.lang.String name, java.lang.String javaName, java.lang.String[] scopeNames, int arity, int required, int optional, int rest, CallConfiguration callConfig)
           
static IRubyObject doAttrAssign(IRubyObject receiver, IRubyObject[] args, ThreadContext context, java.lang.String name, IRubyObject caller, CallType callType, Block block)
           
static IRubyObject doAttrAssignIndexed(IRubyObject receiver, IRubyObject[] args, ThreadContext context, byte methodIndex, java.lang.String name, IRubyObject caller, CallType callType, Block block)
           
static IRubyObject doInvokeDynamic(IRubyObject receiver, IRubyObject[] args, ThreadContext context, java.lang.String name, IRubyObject caller, CallType callType, Block block)
           
static IRubyObject doInvokeDynamicIndexed(IRubyObject receiver, IRubyObject[] args, ThreadContext context, byte methodIndex, java.lang.String name, IRubyObject caller, CallType callType, Block block)
           
static RubyArray ensureMultipleAssignableRubyArray(Ruby runtime, IRubyObject value, boolean masgnHasHead)
           
static RubyArray ensureRubyArray(IRubyObject value)
           
static Block ensureSuperBlock(Block given, Block parent)
           
static IRubyObject fastDeclareClassVariable(ThreadContext context, Ruby runtime, IRubyObject self, java.lang.String internedName, IRubyObject value)
           
static IRubyObject fastFetchClassVariable(ThreadContext context, Ruby runtime, IRubyObject self, java.lang.String internedName)
           
static IRubyObject fastGetInstanceVariable(Ruby runtime, IRubyObject self, java.lang.String internedName)
           
static IRubyObject fastSetClassVariable(ThreadContext context, Ruby runtime, IRubyObject self, java.lang.String internedName, IRubyObject value)
           
static IRubyObject fetchClassVariable(ThreadContext context, Ruby runtime, IRubyObject self, java.lang.String name)
           
static RubyModule findImplementerIfNecessary(RubyModule clazz, RubyModule implementationClass)
           
static IRubyObject getBackref(Ruby runtime, ThreadContext context)
           
static Block getBlockFromBlockPassBody(IRubyObject proc, Block currentBlock)
           
static IRubyObject getErrorInfo(Ruby runtime)
           
static IRubyObject getInstanceVariable(Ruby runtime, IRubyObject self, java.lang.String name)
           
static IRubyObject getLastLine(Ruby runtime, ThreadContext context)
           
static java.lang.String getLocalJumpTypeOrRethrow(RaiseException re)
           
static RubyClass getSingletonClass(Ruby runtime, IRubyObject receiver)
           
static void handleArgumentSizes(ThreadContext context, Ruby runtime, int given, int required, int opt, int rest)
           
static IRubyObject invoke(ThreadContext context, IRubyObject self, int methodIndex, java.lang.String name, IRubyObject[] args)
           
static IRubyObject invoke(ThreadContext context, IRubyObject self, int methodIndex, java.lang.String name, IRubyObject[] args, CallType callType, Block block)
           
static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name)
           
static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name, IRubyObject arg)
           
static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name, IRubyObject[] args)
           
static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name, IRubyObject[] args, Block block)
           
static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name, IRubyObject[] args, CallType callType, Block block)
           
static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name, IRubyObject arg, CallType callType, Block block)
           
static IRubyObject invokeAs(ThreadContext context, RubyClass asClass, IRubyObject self, java.lang.String name, IRubyObject[] args, CallType callType, Block block)
           
static IRubyObject isExceptionHandled(RubyException currentException, IRubyObject[] exceptions, Ruby runtime, ThreadContext context, IRubyObject self)
           
static RubyBoolean isWhenTriggered(IRubyObject expression, IRubyObject expressionsObject, ThreadContext context)
           
static IRubyObject match3(RubyRegexp regexp, IRubyObject value, ThreadContext context)
           
static IRubyObject negate(IRubyObject value, Ruby runtime)
           
static IRubyObject nextJump(IRubyObject value)
           
static IRubyObject nextLocalJumpError(Ruby runtime, IRubyObject value)
           
static IRubyObject nullToNil(IRubyObject value, Ruby runtime)
           
static IRubyObject opAsgnWithMethod(ThreadContext context, IRubyObject receiver, IRubyObject arg, CallSite varSite, CallSite opSite, CallSite opAsgnSite)
           
static IRubyObject opElementAsgnWithMethod(ThreadContext context, IRubyObject receiver, IRubyObject[] args, IRubyObject value, CallSite elementSite, CallSite opSite, CallSite elementAsgnSite)
           
static IRubyObject opElementAsgnWithMethod(ThreadContext context, IRubyObject receiver, IRubyObject value, CallSite elementSite, CallSite opSite, CallSite elementAsgnSite)
           
static IRubyObject opElementAsgnWithMethod(ThreadContext context, IRubyObject receiver, IRubyObject arg, IRubyObject value, CallSite elementSite, CallSite opSite, CallSite elementAsgnSite)
           
static IRubyObject opElementAsgnWithMethod(ThreadContext context, IRubyObject receiver, IRubyObject arg1, IRubyObject arg2, IRubyObject value, CallSite elementSite, CallSite opSite, CallSite elementAsgnSite)
           
static IRubyObject opElementAsgnWithMethod(ThreadContext context, IRubyObject receiver, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, IRubyObject value, CallSite elementSite, CallSite opSite, CallSite elementAsgnSite)
           
static IRubyObject opElementAsgnWithOrPartTwoNArgs(ThreadContext context, IRubyObject receiver, IRubyObject[] args, IRubyObject value, CallSite asetSite)
           
static IRubyObject opElementAsgnWithOrPartTwoOneArg(ThreadContext context, IRubyObject receiver, IRubyObject arg, IRubyObject value, CallSite asetSite)
           
static IRubyObject opElementAsgnWithOrPartTwoThreeArgs(ThreadContext context, IRubyObject receiver, IRubyObject[] args, IRubyObject value, CallSite asetSite)
           
static IRubyObject opElementAsgnWithOrPartTwoTwoArgs(ThreadContext context, IRubyObject receiver, IRubyObject[] args, IRubyObject value, CallSite asetSite)
           
static void postLoad(ThreadContext context)
           
static IRubyObject postOpAsgnWithOrAnd(IRubyObject receiver, IRubyObject value, ThreadContext context, CallSite varAsgnSite)
           
static void preLoad(ThreadContext context, java.lang.String[] varNames)
           
static IRubyObject preOpAsgnWithOrAnd(IRubyObject receiver, ThreadContext context, CallSite varSite)
           
static RubyModule prepareClassNamespace(ThreadContext context, IRubyObject rubyModule)
           
static RubyClass prepareSuperClass(Ruby runtime, IRubyObject rubyClass)
           
static IRubyObject processBlockArgument(Ruby runtime, Block block)
           
static IRubyObject redoJump()
           
static IRubyObject redoLocalJumpError(Ruby runtime)
           
static void registerEndBlock(Block block, Ruby runtime)
           
static IRubyObject retryJump()
           
static IRubyObject returnJump(IRubyObject result, ThreadContext context)
           
static IRubyObject runBeginBlock(ThreadContext context, IRubyObject self, java.lang.String[] staticScopeNames, CompiledBlockCallback callback)
           
static void setBackref(Ruby runtime, ThreadContext context, IRubyObject value)
           
static IRubyObject setClassVariable(ThreadContext context, Ruby runtime, IRubyObject self, java.lang.String name, IRubyObject value)
           
static IRubyObject setConstantInModule(IRubyObject module, IRubyObject value, java.lang.String name, ThreadContext context)
           
static void setErrorInfo(Ruby runtime, IRubyObject error)
           
static void setLastLine(Ruby runtime, ThreadContext context, IRubyObject value)
           
static IRubyObject stringOrNil(java.lang.String value, Ruby runtime, IRubyObject nil)
           
static IRubyObject unwrapLocalJumpErrorValue(RaiseException re)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_SPECIFIC_ARITY_OBJECT_ARRAY

public static final int MAX_SPECIFIC_ARITY_OBJECT_ARRAY
See Also:
Constant Field Values

MAX_SPECIFIC_ARITY_HASH

public static final int MAX_SPECIFIC_ARITY_HASH
See Also:
Constant Field Values
Constructor Detail

RuntimeHelpers

public RuntimeHelpers()
Method Detail

createBlockCallback

public static CompiledBlockCallback createBlockCallback(Ruby runtime,
                                                        java.lang.Object scriptObject,
                                                        java.lang.String closureMethod)

createBlock

public static Block createBlock(ThreadContext context,
                                IRubyObject self,
                                int arity,
                                java.lang.String[] staticScopeNames,
                                CompiledBlockCallback callback,
                                boolean hasMultipleArgsHead,
                                int argsNodeType,
                                boolean light)

runBeginBlock

public static IRubyObject runBeginBlock(ThreadContext context,
                                        IRubyObject self,
                                        java.lang.String[] staticScopeNames,
                                        CompiledBlockCallback callback)

createSharedScopeBlock

public static Block createSharedScopeBlock(ThreadContext context,
                                           IRubyObject self,
                                           int arity,
                                           CompiledBlockCallback callback,
                                           boolean hasMultipleArgsHead,
                                           int argsNodeType)

def

public static IRubyObject def(ThreadContext context,
                              IRubyObject self,
                              java.lang.Object scriptObject,
                              java.lang.String name,
                              java.lang.String javaName,
                              java.lang.String[] scopeNames,
                              int arity,
                              int required,
                              int optional,
                              int rest,
                              CallConfiguration callConfig)

defs

public static IRubyObject defs(ThreadContext context,
                               IRubyObject self,
                               IRubyObject receiver,
                               java.lang.Object scriptObject,
                               java.lang.String name,
                               java.lang.String javaName,
                               java.lang.String[] scopeNames,
                               int arity,
                               int required,
                               int optional,
                               int rest,
                               CallConfiguration callConfig)

getSingletonClass

public static RubyClass getSingletonClass(Ruby runtime,
                                          IRubyObject receiver)

doAttrAssign

public static IRubyObject doAttrAssign(IRubyObject receiver,
                                       IRubyObject[] args,
                                       ThreadContext context,
                                       java.lang.String name,
                                       IRubyObject caller,
                                       CallType callType,
                                       Block block)

doAttrAssignIndexed

public static IRubyObject doAttrAssignIndexed(IRubyObject receiver,
                                              IRubyObject[] args,
                                              ThreadContext context,
                                              byte methodIndex,
                                              java.lang.String name,
                                              IRubyObject caller,
                                              CallType callType,
                                              Block block)

doInvokeDynamic

public static IRubyObject doInvokeDynamic(IRubyObject receiver,
                                          IRubyObject[] args,
                                          ThreadContext context,
                                          java.lang.String name,
                                          IRubyObject caller,
                                          CallType callType,
                                          Block block)

doInvokeDynamicIndexed

public static IRubyObject doInvokeDynamicIndexed(IRubyObject receiver,
                                                 IRubyObject[] args,
                                                 ThreadContext context,
                                                 byte methodIndex,
                                                 java.lang.String name,
                                                 IRubyObject caller,
                                                 CallType callType,
                                                 Block block)

compilerCallMethodWithIndex

public static IRubyObject compilerCallMethodWithIndex(ThreadContext context,
                                                      IRubyObject receiver,
                                                      int methodIndex,
                                                      java.lang.String name,
                                                      IRubyObject[] args,
                                                      IRubyObject caller,
                                                      CallType callType,
                                                      Block block)
Used by the compiler to ease calling indexed methods, also to handle visibility. NOTE: THIS IS NOT THE SAME AS THE SWITCHVALUE VERSIONS.


compilerCallMethod

public static IRubyObject compilerCallMethod(ThreadContext context,
                                             IRubyObject receiver,
                                             java.lang.String name,
                                             IRubyObject[] args,
                                             IRubyObject caller,
                                             CallType callType,
                                             Block block)
Used by the compiler to handle visibility


callMethodMissing

public static IRubyObject callMethodMissing(ThreadContext context,
                                            IRubyObject receiver,
                                            DynamicMethod method,
                                            java.lang.String name,
                                            int methodIndex,
                                            IRubyObject[] args,
                                            IRubyObject self,
                                            CallType callType,
                                            Block block)

callMethodMissing

public static IRubyObject callMethodMissing(ThreadContext context,
                                            IRubyObject receiver,
                                            DynamicMethod method,
                                            java.lang.String name,
                                            IRubyObject[] args,
                                            IRubyObject self,
                                            CallType callType,
                                            Block block)

invoke

public static IRubyObject invoke(ThreadContext context,
                                 IRubyObject self,
                                 java.lang.String name)

invoke

public static IRubyObject invoke(ThreadContext context,
                                 IRubyObject self,
                                 java.lang.String name,
                                 IRubyObject arg)

invoke

public static IRubyObject invoke(ThreadContext context,
                                 IRubyObject self,
                                 java.lang.String name,
                                 IRubyObject[] args)

invoke

public static IRubyObject invoke(ThreadContext context,
                                 IRubyObject self,
                                 java.lang.String name,
                                 IRubyObject[] args,
                                 Block block)

invoke

public static IRubyObject invoke(ThreadContext context,
                                 IRubyObject self,
                                 java.lang.String name,
                                 IRubyObject[] args,
                                 CallType callType,
                                 Block block)

invoke

public static IRubyObject invoke(ThreadContext context,
                                 IRubyObject self,
                                 java.lang.String name,
                                 IRubyObject arg,
                                 CallType callType,
                                 Block block)

invokeAs

public static IRubyObject invokeAs(ThreadContext context,
                                   RubyClass asClass,
                                   IRubyObject self,
                                   java.lang.String name,
                                   IRubyObject[] args,
                                   CallType callType,
                                   Block block)

invoke

public static IRubyObject invoke(ThreadContext context,
                                 IRubyObject self,
                                 int methodIndex,
                                 java.lang.String name,
                                 IRubyObject[] args)

invoke

public static IRubyObject invoke(ThreadContext context,
                                 IRubyObject self,
                                 int methodIndex,
                                 java.lang.String name,
                                 IRubyObject[] args,
                                 CallType callType,
                                 Block block)

ensureRubyArray

public static RubyArray ensureRubyArray(IRubyObject value)

ensureMultipleAssignableRubyArray

public static RubyArray ensureMultipleAssignableRubyArray(Ruby runtime,
                                                          IRubyObject value,
                                                          boolean masgnHasHead)

fetchClassVariable

public static IRubyObject fetchClassVariable(ThreadContext context,
                                             Ruby runtime,
                                             IRubyObject self,
                                             java.lang.String name)

fastFetchClassVariable

public static IRubyObject fastFetchClassVariable(ThreadContext context,
                                                 Ruby runtime,
                                                 IRubyObject self,
                                                 java.lang.String internedName)

nullToNil

public static IRubyObject nullToNil(IRubyObject value,
                                    Ruby runtime)

prepareSuperClass

public static RubyClass prepareSuperClass(Ruby runtime,
                                          IRubyObject rubyClass)

prepareClassNamespace

public static RubyModule prepareClassNamespace(ThreadContext context,
                                               IRubyObject rubyModule)

setClassVariable

public static IRubyObject setClassVariable(ThreadContext context,
                                           Ruby runtime,
                                           IRubyObject self,
                                           java.lang.String name,
                                           IRubyObject value)

fastSetClassVariable

public static IRubyObject fastSetClassVariable(ThreadContext context,
                                               Ruby runtime,
                                               IRubyObject self,
                                               java.lang.String internedName,
                                               IRubyObject value)

declareClassVariable

public static IRubyObject declareClassVariable(ThreadContext context,
                                               Ruby runtime,
                                               IRubyObject self,
                                               java.lang.String name,
                                               IRubyObject value)

fastDeclareClassVariable

public static IRubyObject fastDeclareClassVariable(ThreadContext context,
                                                   Ruby runtime,
                                                   IRubyObject self,
                                                   java.lang.String internedName,
                                                   IRubyObject value)

handleArgumentSizes

public static void handleArgumentSizes(ThreadContext context,
                                       Ruby runtime,
                                       int given,
                                       int required,
                                       int opt,
                                       int rest)

getLocalJumpTypeOrRethrow

public static java.lang.String getLocalJumpTypeOrRethrow(RaiseException re)

unwrapLocalJumpErrorValue

public static IRubyObject unwrapLocalJumpErrorValue(RaiseException re)

processBlockArgument

public static IRubyObject processBlockArgument(Ruby runtime,
                                               Block block)

getBlockFromBlockPassBody

public static Block getBlockFromBlockPassBody(IRubyObject proc,
                                              Block currentBlock)

backref

public static IRubyObject backref(ThreadContext context)

backrefLastMatch

public static IRubyObject backrefLastMatch(ThreadContext context)

backrefMatchPre

public static IRubyObject backrefMatchPre(ThreadContext context)

backrefMatchPost

public static IRubyObject backrefMatchPost(ThreadContext context)

backrefMatchLast

public static IRubyObject backrefMatchLast(ThreadContext context)

callZSuper

public static IRubyObject callZSuper(Ruby runtime,
                                     ThreadContext context,
                                     Block block,
                                     IRubyObject self)

appendToObjectArray

public static IRubyObject[] appendToObjectArray(IRubyObject[] array,
                                                IRubyObject add)

returnJump

public static IRubyObject returnJump(IRubyObject result,
                                     ThreadContext context)

breakJumpInWhile

public static IRubyObject breakJumpInWhile(JumpException.BreakJump bj,
                                           Block aBlock)

breakJump

public static IRubyObject breakJump(IRubyObject value)

breakLocalJumpError

public static IRubyObject breakLocalJumpError(Ruby runtime,
                                              IRubyObject value)

concatObjectArrays

public static IRubyObject[] concatObjectArrays(IRubyObject[] array,
                                               IRubyObject[] add)

isExceptionHandled

public static IRubyObject isExceptionHandled(RubyException currentException,
                                             IRubyObject[] exceptions,
                                             Ruby runtime,
                                             ThreadContext context,
                                             IRubyObject self)

checkSuperDisabledOrOutOfMethod

public static void checkSuperDisabledOrOutOfMethod(ThreadContext context)

ensureSuperBlock

public static Block ensureSuperBlock(Block given,
                                     Block parent)

findImplementerIfNecessary

public static RubyModule findImplementerIfNecessary(RubyModule clazz,
                                                    RubyModule implementationClass)

createSubarray

public static RubyArray createSubarray(RubyArray input,
                                       int start)

createSubarray

public static RubyArray createSubarray(IRubyObject[] input,
                                       Ruby runtime,
                                       int start)

isWhenTriggered

public static RubyBoolean isWhenTriggered(IRubyObject expression,
                                          IRubyObject expressionsObject,
                                          ThreadContext context)

setConstantInModule

public static IRubyObject setConstantInModule(IRubyObject module,
                                              IRubyObject value,
                                              java.lang.String name,
                                              ThreadContext context)

retryJump

public static IRubyObject retryJump()

redoJump

public static IRubyObject redoJump()

redoLocalJumpError

public static IRubyObject redoLocalJumpError(Ruby runtime)

nextJump

public static IRubyObject nextJump(IRubyObject value)

nextLocalJumpError

public static IRubyObject nextLocalJumpError(Ruby runtime,
                                             IRubyObject value)

constructObjectArray

public static IRubyObject[] constructObjectArray(IRubyObject one)

constructObjectArray

public static IRubyObject[] constructObjectArray(IRubyObject one,
                                                 IRubyObject two)

constructObjectArray

public static IRubyObject[] constructObjectArray(IRubyObject one,
                                                 IRubyObject two,
                                                 IRubyObject three)

constructObjectArray

public static IRubyObject[] constructObjectArray(IRubyObject one,
                                                 IRubyObject two,
                                                 IRubyObject three,
                                                 IRubyObject four)

constructObjectArray

public static IRubyObject[] constructObjectArray(IRubyObject one,
                                                 IRubyObject two,
                                                 IRubyObject three,
                                                 IRubyObject four,
                                                 IRubyObject five)

constructHash

public static RubyHash constructHash(Ruby runtime,
                                     IRubyObject key1,
                                     IRubyObject value1)

constructHash

public static RubyHash constructHash(Ruby runtime,
                                     IRubyObject key1,
                                     IRubyObject value1,
                                     IRubyObject key2,
                                     IRubyObject value2)

constructHash

public static RubyHash constructHash(Ruby runtime,
                                     IRubyObject key1,
                                     IRubyObject value1,
                                     IRubyObject key2,
                                     IRubyObject value2,
                                     IRubyObject key3,
                                     IRubyObject value3)

defineAlias

public static IRubyObject defineAlias(ThreadContext context,
                                      java.lang.String newName,
                                      java.lang.String oldName)

getInstanceVariable

public static IRubyObject getInstanceVariable(Ruby runtime,
                                              IRubyObject self,
                                              java.lang.String name)

fastGetInstanceVariable

public static IRubyObject fastGetInstanceVariable(Ruby runtime,
                                                  IRubyObject self,
                                                  java.lang.String internedName)

negate

public static IRubyObject negate(IRubyObject value,
                                 Ruby runtime)

stringOrNil

public static IRubyObject stringOrNil(java.lang.String value,
                                      Ruby runtime,
                                      IRubyObject nil)

preLoad

public static void preLoad(ThreadContext context,
                           java.lang.String[] varNames)

postLoad

public static void postLoad(ThreadContext context)

registerEndBlock

public static void registerEndBlock(Block block,
                                    Ruby runtime)

match3

public static IRubyObject match3(RubyRegexp regexp,
                                 IRubyObject value,
                                 ThreadContext context)

getErrorInfo

public static IRubyObject getErrorInfo(Ruby runtime)

setErrorInfo

public static void setErrorInfo(Ruby runtime,
                                IRubyObject error)

setLastLine

public static void setLastLine(Ruby runtime,
                               ThreadContext context,
                               IRubyObject value)

getLastLine

public static IRubyObject getLastLine(Ruby runtime,
                                      ThreadContext context)

setBackref

public static void setBackref(Ruby runtime,
                              ThreadContext context,
                              IRubyObject value)

getBackref

public static IRubyObject getBackref(Ruby runtime,
                                     ThreadContext context)

preOpAsgnWithOrAnd

public static IRubyObject preOpAsgnWithOrAnd(IRubyObject receiver,
                                             ThreadContext context,
                                             CallSite varSite)

postOpAsgnWithOrAnd

public static IRubyObject postOpAsgnWithOrAnd(IRubyObject receiver,
                                              IRubyObject value,
                                              ThreadContext context,
                                              CallSite varAsgnSite)

opAsgnWithMethod

public static IRubyObject opAsgnWithMethod(ThreadContext context,
                                           IRubyObject receiver,
                                           IRubyObject arg,
                                           CallSite varSite,
                                           CallSite opSite,
                                           CallSite opAsgnSite)

opElementAsgnWithMethod

public static IRubyObject opElementAsgnWithMethod(ThreadContext context,
                                                  IRubyObject receiver,
                                                  IRubyObject value,
                                                  CallSite elementSite,
                                                  CallSite opSite,
                                                  CallSite elementAsgnSite)

opElementAsgnWithMethod

public static IRubyObject opElementAsgnWithMethod(ThreadContext context,
                                                  IRubyObject receiver,
                                                  IRubyObject arg,
                                                  IRubyObject value,
                                                  CallSite elementSite,
                                                  CallSite opSite,
                                                  CallSite elementAsgnSite)

opElementAsgnWithMethod

public static IRubyObject opElementAsgnWithMethod(ThreadContext context,
                                                  IRubyObject receiver,
                                                  IRubyObject arg1,
                                                  IRubyObject arg2,
                                                  IRubyObject value,
                                                  CallSite elementSite,
                                                  CallSite opSite,
                                                  CallSite elementAsgnSite)

opElementAsgnWithMethod

public static IRubyObject opElementAsgnWithMethod(ThreadContext context,
                                                  IRubyObject receiver,
                                                  IRubyObject arg1,
                                                  IRubyObject arg2,
                                                  IRubyObject arg3,
                                                  IRubyObject value,
                                                  CallSite elementSite,
                                                  CallSite opSite,
                                                  CallSite elementAsgnSite)

opElementAsgnWithMethod

public static IRubyObject opElementAsgnWithMethod(ThreadContext context,
                                                  IRubyObject receiver,
                                                  IRubyObject[] args,
                                                  IRubyObject value,
                                                  CallSite elementSite,
                                                  CallSite opSite,
                                                  CallSite elementAsgnSite)

opElementAsgnWithOrPartTwoOneArg

public static IRubyObject opElementAsgnWithOrPartTwoOneArg(ThreadContext context,
                                                           IRubyObject receiver,
                                                           IRubyObject arg,
                                                           IRubyObject value,
                                                           CallSite asetSite)

opElementAsgnWithOrPartTwoTwoArgs

public static IRubyObject opElementAsgnWithOrPartTwoTwoArgs(ThreadContext context,
                                                            IRubyObject receiver,
                                                            IRubyObject[] args,
                                                            IRubyObject value,
                                                            CallSite asetSite)

opElementAsgnWithOrPartTwoThreeArgs

public static IRubyObject opElementAsgnWithOrPartTwoThreeArgs(ThreadContext context,
                                                              IRubyObject receiver,
                                                              IRubyObject[] args,
                                                              IRubyObject value,
                                                              CallSite asetSite)

opElementAsgnWithOrPartTwoNArgs

public static IRubyObject opElementAsgnWithOrPartTwoNArgs(ThreadContext context,
                                                          IRubyObject receiver,
                                                          IRubyObject[] args,
                                                          IRubyObject value,
                                                          CallSite asetSite)


Copyright © 2002-2007 JRuby Team. All Rights Reserved.