public class Helpers
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_SPECIFIC_ARITY_HASH |
static int |
MAX_SPECIFIC_ARITY_OBJECT_ARRAY |
static java.util.regex.Pattern |
SEMICOLON_PATTERN |
Constructor and Description |
---|
Helpers() |
Modifier and Type | Method and Description |
---|---|
static IRubyObject[] |
aastoreIRubyObjects(IRubyObject[] ary,
IRubyObject one,
int start) |
static IRubyObject[] |
aastoreIRubyObjects(IRubyObject[] ary,
IRubyObject one,
IRubyObject two,
int start) |
static IRubyObject[] |
aastoreIRubyObjects(IRubyObject[] ary,
IRubyObject one,
IRubyObject two,
IRubyObject three,
int start) |
static IRubyObject[] |
aastoreIRubyObjects(IRubyObject[] ary,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
int start) |
static IRubyObject[] |
aastoreIRubyObjects(IRubyObject[] ary,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
int start) |
static IRubyObject[] |
aastoreIRubyObjects(IRubyObject[] ary,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six,
int start) |
static IRubyObject[] |
aastoreIRubyObjects(IRubyObject[] ary,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six,
IRubyObject seven,
int start) |
static IRubyObject[] |
aastoreIRubyObjects(IRubyObject[] ary,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six,
IRubyObject seven,
IRubyObject eight,
int start) |
static IRubyObject[] |
aastoreIRubyObjects(IRubyObject[] ary,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six,
IRubyObject seven,
IRubyObject eight,
IRubyObject nine,
int start) |
static IRubyObject[] |
aastoreIRubyObjects(IRubyObject[] ary,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six,
IRubyObject seven,
IRubyObject eight,
IRubyObject nine,
IRubyObject ten,
int start) |
static RubySymbol |
addInstanceMethod(RubyModule containingClass,
RubySymbol symbol,
DynamicMethod method,
Visibility visibility,
ThreadContext context,
Ruby runtime) |
static RubySymbol |
addInstanceMethod(RubyModule containingClass,
java.lang.String name,
DynamicMethod method,
Visibility visibility,
ThreadContext context,
Ruby runtime)
Deprecated.
|
static boolean |
additionOverflowed(long original,
long other,
long result) |
static IRubyObject[] |
anewarrayIRubyObjects(int size) |
static RubyString |
appendAsString(RubyString target,
IRubyObject other)
Deprecated.
|
static RubyString |
appendByteList(RubyString target,
org.jruby.util.ByteList source)
Deprecated.
|
static IRubyObject[] |
appendToObjectArray(IRubyObject[] array,
IRubyObject add) |
static RubyArray |
argsCat(IRubyObject first,
IRubyObject second)
Deprecated.
|
static RubyArray |
argsCat(ThreadContext context,
IRubyObject first,
IRubyObject second) |
static IRubyObject[] |
argsCatToArguments(IRubyObject[] args,
IRubyObject cat)
Deprecated.
|
static ArgumentDescriptor[] |
argsNodeToArgumentDescriptors(ArgsNode argsNode)
Use an ArgsNode (used for blocks) to generate ArgumentDescriptors
|
static RubyArray |
argsPush(IRubyObject first,
IRubyObject second) |
static RubyArray |
argsPush(ThreadContext context,
RubyArray first,
IRubyObject second)
Deprecated.
|
static RubyArray |
argumentDescriptorsToParameters(Ruby runtime,
ArgumentDescriptor[] argsDesc,
boolean isLambda)
Convert a parameter list from ArgumentDescriptor format to "Array of Array" format
|
static IRubyObject |
arrayEntryOrNil(RubyArray array,
int index)
Deprecated.
|
static IRubyObject |
arrayEntryOrNilOne(RubyArray array)
Deprecated.
|
static IRubyObject |
arrayEntryOrNilTwo(RubyArray array)
Deprecated.
|
static IRubyObject |
arrayEntryOrNilZero(RubyArray array)
Deprecated.
|
static <T> T[] |
arrayOf(java.lang.Class<T> t,
int size,
T fill) |
static <T> T[] |
arrayOf(T... values) |
static IRubyObject |
arrayPostOrNil(RubyArray array,
int pre,
int post,
int index)
Deprecated.
|
static IRubyObject |
arrayPostOrNilOne(RubyArray array,
int pre,
int post)
Deprecated.
|
static IRubyObject |
arrayPostOrNilTwo(RubyArray array,
int pre,
int post)
Deprecated.
|
static IRubyObject |
arrayPostOrNilZero(RubyArray array,
int pre,
int post)
Deprecated.
|
static RubyArray |
arrayValue(IRubyObject value) |
static RubyArray |
arrayValue(ThreadContext context,
Ruby runtime,
IRubyObject value) |
static IRubyObject |
aryOrToAry(ThreadContext context,
IRubyObject value) |
static IRubyObject |
aryToAry(IRubyObject value) |
static IRubyObject |
aryToAry(ThreadContext context,
IRubyObject value) |
static RubyArray |
asArray(ThreadContext context,
IRubyObject value)
Deprecated.
|
static IRubyObject |
aValueSplat(IRubyObject value)
Deprecated.
|
static IRubyObject |
aValueSplat19(IRubyObject value)
Deprecated.
|
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 boolean |
BNE(ThreadContext context,
IRubyObject value1,
IRubyObject value2) |
static IRubyObject |
breakLocalJumpError(Ruby runtime,
IRubyObject value) |
static java.lang.String |
byteListToString(org.jruby.util.ByteList bytes)
Convert a ByteList into a Java String by using its Encoding's Charset.
|
static IRubyObject |
callMethodMissing(ThreadContext context,
IRubyObject receiver,
Visibility visibility,
java.lang.String name,
CallType callType,
Block block) |
static IRubyObject |
callMethodMissing(ThreadContext context,
IRubyObject receiver,
Visibility visibility,
java.lang.String name,
CallType callType,
IRubyObject[] args,
Block block) |
static IRubyObject |
callMethodMissing(ThreadContext context,
IRubyObject receiver,
Visibility visibility,
java.lang.String name,
CallType callType,
IRubyObject arg0,
Block block) |
static IRubyObject |
callMethodMissing(ThreadContext context,
IRubyObject receiver,
Visibility visibility,
java.lang.String name,
CallType callType,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
static IRubyObject |
callMethodMissing(ThreadContext context,
IRubyObject receiver,
Visibility visibility,
java.lang.String name,
CallType callType,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
Block block) |
static void |
checkArgumentCount(ThreadContext context,
int length,
int min,
int max) |
static void |
checkArgumentCount(ThreadContext context,
IRubyObject[] args,
int req)
Used by the compiler to simplify arg checking in variable-arity paths
|
static void |
checkArgumentCount(ThreadContext context,
IRubyObject[] args,
int min,
int max)
Used by the compiler to simplify arg checking in variable-arity paths
|
static RubyModule |
checkIsModule(IRubyObject maybeModule) |
static boolean |
checkJavaException(IRubyObject wrappedEx,
java.lang.Throwable ex,
IRubyObject catchable,
ThreadContext context) |
static boolean |
checkJavaException(java.lang.Throwable ex,
IRubyObject catchable,
ThreadContext context) |
static void |
checkSuperDisabledOrOutOfMethod(ThreadContext context) |
static void |
checkSuperDisabledOrOutOfMethod(ThreadContext context,
RubyModule klass,
java.lang.String name) |
static void |
clearErrorInfo(ThreadContext context) |
static IRubyObject[] |
concatObjectArrays(IRubyObject[] array,
IRubyObject[] add) |
static RubyHash |
constructHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1) |
static RubyHash |
constructHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1,
IRubyObject key2,
IRubyObject value2,
boolean prepareString2) |
static RubyHash |
constructHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1,
IRubyObject key2,
IRubyObject value2,
boolean prepareString2,
IRubyObject key3,
IRubyObject value3,
boolean prepareString3) |
static RubyHash |
constructHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1,
IRubyObject key2,
IRubyObject value2,
boolean prepareString2,
IRubyObject key3,
IRubyObject value3,
boolean prepareString3,
IRubyObject key4,
IRubyObject value4,
boolean prepareString4) |
static RubyHash |
constructHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1,
IRubyObject key2,
IRubyObject value2,
boolean prepareString2,
IRubyObject key3,
IRubyObject value3,
boolean prepareString3,
IRubyObject key4,
IRubyObject value4,
boolean prepareString4,
IRubyObject key5,
IRubyObject value5,
boolean prepareString5) |
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 IRubyObject[] |
constructObjectArray(IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six) |
static IRubyObject[] |
constructObjectArray(IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six,
IRubyObject seven) |
static IRubyObject[] |
constructObjectArray(IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six,
IRubyObject seven,
IRubyObject eight) |
static IRubyObject[] |
constructObjectArray(IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six,
IRubyObject seven,
IRubyObject eight,
IRubyObject nine) |
static IRubyObject[] |
constructObjectArray(IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six,
IRubyObject seven,
IRubyObject eight,
IRubyObject nine,
IRubyObject ten) |
static RubyArray |
constructRubyArray(Ruby runtime,
IRubyObject one) |
static RubyArray |
constructRubyArray(Ruby runtime,
IRubyObject one,
IRubyObject two) |
static RubyArray |
constructRubyArray(Ruby runtime,
IRubyObject one,
IRubyObject two,
IRubyObject three) |
static RubyArray |
constructRubyArray(Ruby runtime,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four) |
static RubyArray |
constructRubyArray(Ruby runtime,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five) |
static RubyArray |
constructRubyArray(Ruby runtime,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six) |
static RubyArray |
constructRubyArray(Ruby runtime,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six,
IRubyObject seven) |
static RubyArray |
constructRubyArray(Ruby runtime,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six,
IRubyObject seven,
IRubyObject eight) |
static RubyArray |
constructRubyArray(Ruby runtime,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six,
IRubyObject seven,
IRubyObject eight,
IRubyObject nine) |
static RubyArray |
constructRubyArray(Ruby runtime,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six,
IRubyObject seven,
IRubyObject eight,
IRubyObject nine,
IRubyObject ten) |
static RubyHash |
constructSmallHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1) |
static RubyHash |
constructSmallHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1,
IRubyObject key2,
IRubyObject value2,
boolean prepareString2) |
static RubyHash |
constructSmallHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1,
IRubyObject key2,
IRubyObject value2,
boolean prepareString2,
IRubyObject key3,
IRubyObject value3,
boolean prepareString3) |
static RubyHash |
constructSmallHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1,
IRubyObject key2,
IRubyObject value2,
boolean prepareString2,
IRubyObject key3,
IRubyObject value3,
boolean prepareString3,
IRubyObject key4,
IRubyObject value4,
boolean prepareString4) |
static RubyHash |
constructSmallHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1,
IRubyObject key2,
IRubyObject value2,
boolean prepareString2,
IRubyObject key3,
IRubyObject value3,
boolean prepareString3,
IRubyObject key4,
IRubyObject value4,
boolean prepareString4,
IRubyObject key5,
IRubyObject value5,
boolean prepareString5) |
static java.lang.String[] |
constructStringArray(java.lang.String one) |
static java.lang.String[] |
constructStringArray(java.lang.String one,
java.lang.String two) |
static java.lang.String[] |
constructStringArray(java.lang.String one,
java.lang.String two,
java.lang.String three) |
static java.lang.String[] |
constructStringArray(java.lang.String one,
java.lang.String two,
java.lang.String three,
java.lang.String four) |
static java.lang.String[] |
constructStringArray(java.lang.String one,
java.lang.String two,
java.lang.String three,
java.lang.String four,
java.lang.String five) |
static java.lang.String[] |
constructStringArray(java.lang.String one,
java.lang.String two,
java.lang.String three,
java.lang.String four,
java.lang.String five,
java.lang.String six) |
static java.lang.String[] |
constructStringArray(java.lang.String one,
java.lang.String two,
java.lang.String three,
java.lang.String four,
java.lang.String five,
java.lang.String six,
java.lang.String seven) |
static java.lang.String[] |
constructStringArray(java.lang.String one,
java.lang.String two,
java.lang.String three,
java.lang.String four,
java.lang.String five,
java.lang.String six,
java.lang.String seven,
java.lang.String eight) |
static java.lang.String[] |
constructStringArray(java.lang.String one,
java.lang.String two,
java.lang.String three,
java.lang.String four,
java.lang.String five,
java.lang.String six,
java.lang.String seven,
java.lang.String eight,
java.lang.String nine) |
static java.lang.String[] |
constructStringArray(java.lang.String one,
java.lang.String two,
java.lang.String three,
java.lang.String four,
java.lang.String five,
java.lang.String six,
java.lang.String seven,
java.lang.String eight,
java.lang.String nine,
java.lang.String ten) |
static RubyArray |
createSubarray(IRubyObject[] input,
Ruby runtime,
int start) |
static RubyArray |
createSubarray(IRubyObject[] input,
Ruby runtime,
int start,
int exclude) |
static RubyArray |
createSubarray(RubyArray input,
int start) |
static RubyArray |
createSubarray(RubyArray input,
int start,
int post) |
static java.lang.String |
decodeByteList(Ruby runtime,
org.jruby.util.ByteList value)
Decode a given ByteList to a Java string.
|
static int[] |
decodeCaptureOffsets(java.lang.String encoded) |
static StaticScope |
decodeScopeAndDetermineModule(ThreadContext context,
StaticScope parent,
java.lang.String scopeString) |
static IRubyObject |
elementOrNil(IRubyObject[] input,
int element,
IRubyObject nil) |
static IRubyObject |
elementOrNull(IRubyObject[] input,
int element) |
static java.lang.String |
encodeCaptureOffsets(int[] scopeOffsets) |
static java.lang.String |
encodeParameterList(java.util.List<java.lang.String[]> args)
Deprecated.
|
static RubyArray |
ensureRubyArray(IRubyObject value) |
static RubyArray |
ensureRubyArray(Ruby runtime,
IRubyObject value) |
static jnr.constants.platform.Errno |
errnoFromException(java.lang.Throwable t) |
static void |
fillNil(IRubyObject[] arr,
int from,
int to,
Ruby runtime) |
static void |
fillNil(IRubyObject[] arr,
Ruby runtime) |
static RubyModule |
findImplementerIfNecessary(RubyModule clazz,
RubyModule implementationClass) |
static IRubyObject |
getBackref(Ruby runtime,
ThreadContext context) |
static Block |
getBlock(Ruby runtime,
ThreadContext context,
IRubyObject self,
Node node,
Block aBlock) |
static Block |
getBlock(ThreadContext context,
IRubyObject self,
Node node) |
static Block |
getBlockFromBlockPassBody(IRubyObject proc,
Block currentBlock) |
static Block |
getBlockFromBlockPassBody(Ruby runtime,
IRubyObject proc,
Block currentBlock) |
static IRubyObject |
getDefinedCall(ThreadContext context,
IRubyObject self,
IRubyObject receiver,
java.lang.String name,
IRubyObject definedMessage) |
static IRubyObject |
getDefinedConstantOrBoundMethod(IRubyObject left,
java.lang.String name,
IRubyObject definedConstantMessage,
IRubyObject definedMethodMessage) |
static IRubyObject |
getErrorInfo(Ruby runtime) |
static IRubyObject |
getGlobalVariable(Ruby runtime,
java.lang.String name) |
static IRubyObject |
getInstanceVariable(IRubyObject self,
Ruby runtime,
java.lang.String internedName) |
static IRubyObject |
getInstanceVariableNoWarn(IRubyObject self,
ThreadContext context,
java.lang.String internedName) |
static IRubyObject |
getLastLine(Ruby runtime,
ThreadContext context) |
static java.lang.String |
getLocalJumpTypeOrRethrow(RaiseException re) |
static RubyModule |
getNthScopeModule(StaticScope scope,
int depth) |
static java.lang.String[] |
getScopeNames(java.lang.String scopeNames) |
static RubyClass |
getSingletonClass(Ruby runtime,
IRubyObject receiver) |
static java.lang.Class[] |
getStaticMethodParams(java.lang.Class target,
int args) |
static java.lang.String |
getStaticMethodSignature(java.lang.String classname,
int args) |
static RubyModule |
getSuperClassForDefined(Ruby runtime,
RubyModule klazz) |
static void |
handleArgumentSizes(ThreadContext context,
Ruby runtime,
int given,
int required,
int opt,
int rest) |
static long |
hashEnd(long value) |
static long |
hashStart(Ruby runtime,
long value) |
static IRubyObject |
invoke(ThreadContext context,
IRubyObject self,
java.lang.String name) |
static IRubyObject |
invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
Block block) |
static IRubyObject |
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 |
invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject... args) |
static IRubyObject |
invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg0) |
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)
Deprecated.
Use finvoke if you do not want visibility-checking or invokeFrom if you do.
|
static IRubyObject |
invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
Block block) |
static IRubyObject |
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 |
invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1) |
static IRubyObject |
invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
static IRubyObject |
invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2) |
static IRubyObject |
invoke(ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
Block block) |
static IRubyObject |
invokeAs(ThreadContext context,
RubyClass asClass,
IRubyObject self,
java.lang.String name,
Block block) |
static IRubyObject |
invokeAs(ThreadContext context,
RubyClass asClass,
IRubyObject self,
java.lang.String name,
IRubyObject[] args,
Block block) |
static IRubyObject |
invokeAs(ThreadContext context,
RubyClass asClass,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
Block block) |
static IRubyObject |
invokeAs(ThreadContext context,
RubyClass asClass,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
static IRubyObject |
invokeAs(ThreadContext context,
RubyClass asClass,
IRubyObject self,
java.lang.String name,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
Block block) |
static IRubyObject |
invokeChecked(ThreadContext context,
IRubyObject self,
JavaSites.CheckedSites sites) |
static IRubyObject |
invokeChecked(ThreadContext context,
IRubyObject self,
JavaSites.CheckedSites sites,
IRubyObject... args) |
static IRubyObject |
invokeChecked(ThreadContext context,
IRubyObject self,
JavaSites.CheckedSites sites,
IRubyObject arg0) |
static IRubyObject |
invokeChecked(ThreadContext context,
IRubyObject self,
java.lang.String name) |
static IRubyObject |
invokeChecked(ThreadContext context,
IRubyObject self,
java.lang.String name,
IRubyObject... args) |
static IRubyObject |
invokedynamic(ThreadContext context,
IRubyObject self,
int index)
Deprecated.
|
static IRubyObject |
invokedynamic(ThreadContext context,
IRubyObject self,
int index,
IRubyObject arg0)
Deprecated.
|
static IRubyObject |
invokedynamic(ThreadContext context,
IRubyObject self,
MethodNames method) |
static IRubyObject |
invokedynamic(ThreadContext context,
IRubyObject self,
MethodNames method,
IRubyObject arg0) |
static IRubyObject |
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 |
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 |
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 IRubyObject |
invokeMethodMissing(IRubyObject receiver,
java.lang.String name,
IRubyObject[] args)
Deprecated.
|
static IRubyObject |
invokeSuper(ThreadContext context,
IRubyObject self,
Block block) |
static IRubyObject |
invokeSuper(ThreadContext context,
IRubyObject self,
IRubyObject[] args,
Block block)
The protocol for super method invocation is a bit complicated
in Ruby.
|
static IRubyObject |
invokeSuper(ThreadContext context,
IRubyObject self,
IRubyObject arg0,
Block block) |
static IRubyObject |
invokeSuper(ThreadContext context,
IRubyObject self,
IRubyObject arg0,
IRubyObject arg1,
Block block) |
static IRubyObject |
invokeSuper(ThreadContext context,
IRubyObject self,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
Block block) |
static IRubyObject |
invokeSuper(ThreadContext context,
IRubyObject self,
RubyModule klass,
java.lang.String name,
IRubyObject[] args,
Block block) |
static IRubyObject |
invokeSuper(ThreadContext context,
IRubyObject self,
RubyModule klass,
java.lang.String name,
IRubyObject arg0,
Block block) |
static void |
irCheckArgsArrayArity(ThreadContext context,
RubyArray args,
int required,
int opt,
boolean rest) |
static IRubyObject |
isExceptionHandled(IRubyObject currentException,
IRubyObject exception,
ThreadContext context) |
static IRubyObject |
isExceptionHandled(RubyException currentException,
IRubyObject[] exceptions,
ThreadContext context) |
static IRubyObject |
isExceptionHandled(RubyException currentException,
IRubyObject exception0,
IRubyObject exception1,
IRubyObject exception2,
ThreadContext context) |
static IRubyObject |
isExceptionHandled(RubyException currentException,
IRubyObject exception0,
IRubyObject exception1,
ThreadContext context) |
static IRubyObject |
isExceptionHandled(RubyException currentException,
IRubyObject exception,
ThreadContext context) |
static IRubyObject |
isJavaExceptionHandled(java.lang.Throwable currentThrowable,
IRubyObject[] throwables,
ThreadContext context)
Deprecated.
|
static IRubyObject |
isJavaExceptionHandled(java.lang.Throwable currentThrowable,
IRubyObject throwable0,
IRubyObject throwable1,
IRubyObject throwable2,
ThreadContext context)
Deprecated.
|
static IRubyObject |
isJavaExceptionHandled(java.lang.Throwable currentThrowable,
IRubyObject throwable0,
IRubyObject throwable1,
ThreadContext context)
Deprecated.
|
static IRubyObject |
isJavaExceptionHandled(java.lang.Throwable currentThrowable,
IRubyObject throwable,
ThreadContext context)
Deprecated.
|
static boolean |
isModuleAndHasConstant(IRubyObject left,
java.lang.String name) |
static boolean |
isRequiredKeywordArgumentValueNode(Node asgnNode) |
static IRubyObject |
lastElement(IRubyObject[] ary)
Deprecated.
|
static java.util.Map<java.lang.String,java.lang.String> |
map(java.lang.String... keyValues) |
static IRubyObject |
match2AndUpdateScope(IRubyObject receiver,
ThreadContext context,
IRubyObject value,
java.lang.String scopeOffsets)
Deprecated.
|
static IRubyObject |
match3(RubyRegexp regexp,
IRubyObject value,
ThreadContext context)
Deprecated.
|
static int |
memchr(boolean[] ary,
int start,
int len,
boolean find) |
static RubyClass |
metaclass(IRubyObject object) |
static ArgumentDescriptor[] |
methodToArgumentDescriptors(DynamicMethod method) |
static IRubyObject |
methodToParameters(Ruby runtime,
AbstractRubyMethod recv) |
static long |
murmur_finish(long h) |
static long |
murmur_step(long h,
long k) |
static long |
murmur(long h,
long k,
int r) |
static long |
murmur1(long h) |
static long |
murmurCombine(long h,
long i) |
static IRubyObject |
negate(IRubyObject value,
Ruby runtime) |
static RaiseException |
newIOErrorFromException(Ruby runtime,
java.io.IOException ex)
Java does not give us enough information for specific error conditions
so we are reduced to divining them through string matches...
|
static RubyProc |
newLiteralLambda(ThreadContext context,
Block block,
IRubyObject self) |
static IRubyObject |
nullToNil(IRubyObject value,
IRubyObject nil) |
static IRubyObject |
nullToNil(IRubyObject value,
Ruby runtime)
Deprecated.
|
static IRubyObject |
nullToNil(IRubyObject value,
ThreadContext context)
Deprecated.
|
static IRubyObject |
optElementOrNull(IRubyObject[] input,
int element,
int postCount) |
static ArgumentDescriptor[] |
parameterListToArgumentDescriptors(Ruby runtime,
java.lang.String[] parameterList,
boolean isLambda)
Convert a parameter list from prefix format to ArgumentDescriptor format.
|
static Visibility |
performNormalMethodChecksAndDetermineVisibility(Ruby runtime,
RubyModule clazz,
RubySymbol symbol,
Visibility visibility) |
static RubyClass |
performSingletonMethodChecks(Ruby runtime,
IRubyObject receiver,
java.lang.String name) |
static void |
postLoad(ThreadContext context) |
static StaticScope |
preLoad(ThreadContext context,
java.lang.String[] varNames) |
static void |
preLoadCommon(ThreadContext context,
StaticScope staticScope,
boolean wrap) |
static java.lang.String |
rawBytesToString(byte[] bytes) |
static RubyBoolean |
rbEql(ThreadContext context,
IRubyObject a,
IRubyObject b)
Equivalent to rb_eql in MRI
|
static RubyBoolean |
rbEqual(ThreadContext context,
IRubyObject a,
IRubyObject b)
Equivalent to rb_equal in MRI
|
static RubyBoolean |
rbEqual(ThreadContext context,
IRubyObject a,
IRubyObject b,
CallSite equal)
Equivalent to rb_equal in MRI
|
static void |
registerEndBlock(Block block,
Ruby runtime)
Deprecated.
|
static boolean |
respondsToMethod(DynamicMethod method,
boolean checkVisibility)
We have respondTo logic in RubyModule and we have a special callsite for respond_to?.
|
static void |
rewriteStackTrace(Ruby runtime,
java.lang.Throwable e)
Deprecated.
|
static IRubyObject |
rewriteStackTraceAndThrow(ThreadContext context,
java.lang.Throwable t) |
static RubyFixnum |
safeHash(ThreadContext context,
IRubyObject obj) |
static DynamicMethod |
selectMethodMissing(RubyClass selfClass,
Visibility visibility,
java.lang.String name,
CallType callType) |
static DynamicMethod |
selectMethodMissing(ThreadContext context,
IRubyObject receiver,
Visibility visibility,
java.lang.String name,
CallType callType) |
static DynamicMethod |
selectMethodMissing(ThreadContext context,
RubyClass selfClass,
Visibility visibility,
java.lang.String name,
CallType callType) |
static IRubyObject |
setBackref(Ruby runtime,
ThreadContext context,
IRubyObject value) |
static IRubyObject |
setConstantInModule(ThreadContext context,
java.lang.String name,
IRubyObject value,
IRubyObject module) |
static void |
setErrorInfo(Ruby runtime,
IRubyObject error) |
static IRubyObject |
setGlobalVariable(IRubyObject value,
Ruby runtime,
java.lang.String name) |
static IRubyObject |
setInstanceVariable(IRubyObject value,
IRubyObject self,
java.lang.String name) |
static IRubyObject |
setLastLine(Ruby runtime,
ThreadContext context,
IRubyObject value) |
static IRubyObject[] |
splatToArguments(IRubyObject value)
Deprecated.
|
static RubyArray |
splatValue(IRubyObject value)
Deprecated.
|
static RubyArray |
splatValue19(IRubyObject value)
Deprecated.
|
static void |
storeExceptionInErrorInfo(java.lang.Throwable currentThrowable,
ThreadContext context)
Deprecated.
|
static void |
storeNativeExceptionInErrorInfo(java.lang.Throwable currentThrowable,
ThreadContext context)
Deprecated.
|
static IRubyObject |
stringOrNil(org.jruby.util.ByteList value,
ThreadContext context)
Deprecated.
|
static byte[] |
stringToRawBytes(java.lang.String string) |
static RubyArray |
subarrayOrEmpty(RubyArray array,
Ruby runtime,
int index)
Deprecated.
|
static RubyArray |
subarrayOrEmpty(RubyArray array,
Ruby runtime,
int index,
int post)
Deprecated.
|
static byte[] |
subseq(byte[] ary,
int start,
int len) |
static boolean |
subtractionOverflowed(long original,
long other,
long result) |
static java.lang.String |
symbolBytesToString(org.jruby.util.ByteList value)
Decode the given value to a Java string using the following rules:
* If the string is all US-ASCII characters, it will be decoded as US-ASCII.
|
static void |
throwException(java.lang.Throwable e) |
static IRubyObject[] |
toArray(IRubyObject[] array,
IRubyObject... rest) |
static IRubyObject[] |
toArray(IRubyObject obj,
IRubyObject... rest) |
static IRubyObject[] |
toArray(IRubyObject obj0,
IRubyObject obj1,
IRubyObject... rest) |
static IRubyObject[] |
toArray(IRubyObject obj0,
IRubyObject obj1,
IRubyObject obj2,
IRubyObject... rest) |
static IRubyObject |
unsplatValue19(IRubyObject argsResult)
Deprecated.
|
static IRubyObject |
unwrapLocalJumpErrorValue(RaiseException re) |
static void |
updateScopeWithCaptures(ThreadContext context,
int[] scopeOffsets,
IRubyObject result) |
static RubyArray |
viewArgsArray(ThreadContext context,
RubyArray rubyArray,
int preArgsCount,
int postArgsCount) |
static IRubyObject |
wrapJavaException(Ruby runtime,
java.lang.Throwable ex) |
public static final java.util.regex.Pattern SEMICOLON_PATTERN
public static final int MAX_SPECIFIC_ARITY_OBJECT_ARRAY
public static final int MAX_SPECIFIC_ARITY_HASH
public static RubyClass getSingletonClass(Ruby runtime, IRubyObject receiver)
@Deprecated public static IRubyObject invokeMethodMissing(IRubyObject receiver, java.lang.String name, IRubyObject[] args)
public static IRubyObject callMethodMissing(ThreadContext context, IRubyObject receiver, Visibility visibility, java.lang.String name, CallType callType, IRubyObject[] args, Block block)
public static IRubyObject callMethodMissing(ThreadContext context, IRubyObject receiver, Visibility visibility, java.lang.String name, CallType callType, IRubyObject arg0, Block block)
public static IRubyObject callMethodMissing(ThreadContext context, IRubyObject receiver, Visibility visibility, java.lang.String name, CallType callType, IRubyObject arg0, IRubyObject arg1, Block block)
public static IRubyObject callMethodMissing(ThreadContext context, IRubyObject receiver, Visibility visibility, java.lang.String name, CallType callType, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
public static IRubyObject callMethodMissing(ThreadContext context, IRubyObject receiver, Visibility visibility, java.lang.String name, CallType callType, Block block)
public static DynamicMethod selectMethodMissing(ThreadContext context, IRubyObject receiver, Visibility visibility, java.lang.String name, CallType callType)
public static DynamicMethod selectMethodMissing(ThreadContext context, RubyClass selfClass, Visibility visibility, java.lang.String name, CallType callType)
public static DynamicMethod selectMethodMissing(RubyClass selfClass, Visibility visibility, java.lang.String name, CallType callType)
public static final java.util.Map<java.lang.String,java.lang.String> map(java.lang.String... keyValues)
public static boolean additionOverflowed(long original, long other, long result)
public static boolean subtractionOverflowed(long original, long other, long result)
public static jnr.constants.platform.Errno errnoFromException(java.lang.Throwable t)
public static RaiseException newIOErrorFromException(Ruby runtime, java.io.IOException ex)
public static RubyModule getNthScopeModule(StaticScope scope, int depth)
public static RubyArray viewArgsArray(ThreadContext context, RubyArray rubyArray, int preArgsCount, int postArgsCount)
public static java.lang.Class[] getStaticMethodParams(java.lang.Class target, int args)
public static java.lang.String getStaticMethodSignature(java.lang.String classname, int args)
public static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name, Block block)
public static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name, IRubyObject arg0, Block block)
public static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name, IRubyObject arg0, IRubyObject arg1, Block block)
public static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
public static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name, IRubyObject[] args, Block block)
public static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name)
public static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name, IRubyObject arg0)
public static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name, IRubyObject arg0, IRubyObject arg1)
public static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
public static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name, IRubyObject... args)
public static IRubyObject invokeAs(ThreadContext context, RubyClass asClass, IRubyObject self, java.lang.String name, IRubyObject[] args, Block block)
public static IRubyObject invokeAs(ThreadContext context, RubyClass asClass, IRubyObject self, java.lang.String name, Block block)
public static IRubyObject invokeAs(ThreadContext context, RubyClass asClass, IRubyObject self, java.lang.String name, IRubyObject arg0, Block block)
public static IRubyObject invokeAs(ThreadContext context, RubyClass asClass, IRubyObject self, java.lang.String name, IRubyObject arg0, IRubyObject arg1, Block block)
public static IRubyObject invokeAs(ThreadContext context, RubyClass asClass, IRubyObject self, java.lang.String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
public static IRubyObject invokeFrom(ThreadContext context, IRubyObject caller, IRubyObject self, java.lang.String name, IRubyObject[] args, CallType callType, Block block)
public static IRubyObject invokeFrom(ThreadContext context, IRubyObject caller, IRubyObject self, java.lang.String name, IRubyObject arg, CallType callType, Block block)
public static IRubyObject invokeFrom(ThreadContext context, IRubyObject caller, IRubyObject self, java.lang.String name, CallType callType)
public static IRubyObject invokeChecked(ThreadContext context, IRubyObject self, java.lang.String name)
public static IRubyObject invokeChecked(ThreadContext context, IRubyObject self, JavaSites.CheckedSites sites)
public static IRubyObject invokeChecked(ThreadContext context, IRubyObject self, java.lang.String name, IRubyObject... args)
public static IRubyObject invokeChecked(ThreadContext context, IRubyObject self, JavaSites.CheckedSites sites, IRubyObject arg0)
public static IRubyObject invokeChecked(ThreadContext context, IRubyObject self, JavaSites.CheckedSites sites, IRubyObject... args)
public static IRubyObject invokeSuper(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block)
public static IRubyObject invokeSuper(ThreadContext context, IRubyObject self, RubyModule klass, java.lang.String name, IRubyObject[] args, Block block)
public static IRubyObject invokeSuper(ThreadContext context, IRubyObject self, RubyModule klass, java.lang.String name, IRubyObject arg0, Block block)
public static IRubyObject invokeSuper(ThreadContext context, IRubyObject self, Block block)
public static IRubyObject invokeSuper(ThreadContext context, IRubyObject self, IRubyObject arg0, Block block)
public static IRubyObject invokeSuper(ThreadContext context, IRubyObject self, IRubyObject arg0, IRubyObject arg1, Block block)
public static IRubyObject invokeSuper(ThreadContext context, IRubyObject self, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
public static RubyArray ensureRubyArray(IRubyObject value)
public static RubyArray ensureRubyArray(Ruby runtime, IRubyObject value)
@Deprecated public static IRubyObject nullToNil(IRubyObject value, ThreadContext context)
@Deprecated public static IRubyObject nullToNil(IRubyObject value, Ruby runtime)
public static IRubyObject nullToNil(IRubyObject value, IRubyObject nil)
Ruby.getNullToNilHandle()
public static void handleArgumentSizes(ThreadContext context, Ruby runtime, int given, int required, int opt, int rest)
public static java.lang.String getLocalJumpTypeOrRethrow(RaiseException re)
public static IRubyObject unwrapLocalJumpErrorValue(RaiseException re)
public static Block getBlockFromBlockPassBody(Ruby runtime, IRubyObject proc, Block currentBlock)
public static Block getBlockFromBlockPassBody(IRubyObject proc, Block currentBlock)
public static IRubyObject backref(ThreadContext context)
public static IRubyObject backrefLastMatch(ThreadContext context)
public static IRubyObject backrefMatchPre(ThreadContext context)
public static IRubyObject backrefMatchPost(ThreadContext context)
public static IRubyObject backrefMatchLast(ThreadContext context)
public static IRubyObject[] appendToObjectArray(IRubyObject[] array, IRubyObject add)
public static IRubyObject breakLocalJumpError(Ruby runtime, IRubyObject value)
public static IRubyObject[] concatObjectArrays(IRubyObject[] array, IRubyObject[] add)
public static IRubyObject[] toArray(IRubyObject[] array, IRubyObject... rest)
public static IRubyObject[] toArray(IRubyObject obj, IRubyObject... rest)
public static IRubyObject[] toArray(IRubyObject obj0, IRubyObject obj1, IRubyObject... rest)
public static IRubyObject[] toArray(IRubyObject obj0, IRubyObject obj1, IRubyObject obj2, IRubyObject... rest)
public static IRubyObject isExceptionHandled(RubyException currentException, IRubyObject[] exceptions, ThreadContext context)
public static IRubyObject isExceptionHandled(RubyException currentException, IRubyObject exception, ThreadContext context)
public static IRubyObject isExceptionHandled(IRubyObject currentException, IRubyObject exception, ThreadContext context)
public static IRubyObject isExceptionHandled(RubyException currentException, IRubyObject exception0, IRubyObject exception1, ThreadContext context)
public static IRubyObject isExceptionHandled(RubyException currentException, IRubyObject exception0, IRubyObject exception1, IRubyObject exception2, ThreadContext context)
public static boolean checkJavaException(IRubyObject wrappedEx, java.lang.Throwable ex, IRubyObject catchable, ThreadContext context)
public static boolean checkJavaException(java.lang.Throwable ex, IRubyObject catchable, ThreadContext context)
public static IRubyObject wrapJavaException(Ruby runtime, java.lang.Throwable ex)
@Deprecated public static IRubyObject isJavaExceptionHandled(java.lang.Throwable currentThrowable, IRubyObject[] throwables, ThreadContext context)
@Deprecated public static IRubyObject isJavaExceptionHandled(java.lang.Throwable currentThrowable, IRubyObject throwable, ThreadContext context)
@Deprecated public static IRubyObject isJavaExceptionHandled(java.lang.Throwable currentThrowable, IRubyObject throwable0, IRubyObject throwable1, ThreadContext context)
@Deprecated public static IRubyObject isJavaExceptionHandled(java.lang.Throwable currentThrowable, IRubyObject throwable0, IRubyObject throwable1, IRubyObject throwable2, ThreadContext context)
@Deprecated public static void storeExceptionInErrorInfo(java.lang.Throwable currentThrowable, ThreadContext context)
@Deprecated public static void storeNativeExceptionInErrorInfo(java.lang.Throwable currentThrowable, ThreadContext context)
public static void clearErrorInfo(ThreadContext context)
public static void checkSuperDisabledOrOutOfMethod(ThreadContext context)
public static void checkSuperDisabledOrOutOfMethod(ThreadContext context, RubyModule klass, java.lang.String name)
public static RubyModule findImplementerIfNecessary(RubyModule clazz, RubyModule implementationClass)
public static RubyArray createSubarray(IRubyObject[] input, Ruby runtime, int start)
public static RubyArray createSubarray(IRubyObject[] input, Ruby runtime, int start, int exclude)
public static IRubyObject elementOrNull(IRubyObject[] input, int element)
public static IRubyObject optElementOrNull(IRubyObject[] input, int element, int postCount)
public static IRubyObject elementOrNil(IRubyObject[] input, int element, IRubyObject nil)
public static IRubyObject setConstantInModule(ThreadContext context, java.lang.String name, IRubyObject value, IRubyObject module)
public static IRubyObject[] anewarrayIRubyObjects(int size)
public static IRubyObject[] aastoreIRubyObjects(IRubyObject[] ary, IRubyObject one, int start)
public static IRubyObject[] aastoreIRubyObjects(IRubyObject[] ary, IRubyObject one, IRubyObject two, int start)
public static IRubyObject[] aastoreIRubyObjects(IRubyObject[] ary, IRubyObject one, IRubyObject two, IRubyObject three, int start)
public static IRubyObject[] aastoreIRubyObjects(IRubyObject[] ary, IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, int start)
public static IRubyObject[] aastoreIRubyObjects(IRubyObject[] ary, IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five, int start)
public static IRubyObject[] aastoreIRubyObjects(IRubyObject[] ary, IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five, IRubyObject six, int start)
public static IRubyObject[] aastoreIRubyObjects(IRubyObject[] ary, IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five, IRubyObject six, IRubyObject seven, int start)
public static IRubyObject[] aastoreIRubyObjects(IRubyObject[] ary, IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five, IRubyObject six, IRubyObject seven, IRubyObject eight, int start)
public static IRubyObject[] aastoreIRubyObjects(IRubyObject[] ary, IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five, IRubyObject six, IRubyObject seven, IRubyObject eight, IRubyObject nine, int start)
public static IRubyObject[] aastoreIRubyObjects(IRubyObject[] ary, IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five, IRubyObject six, IRubyObject seven, IRubyObject eight, IRubyObject nine, IRubyObject ten, int start)
public static IRubyObject[] constructObjectArray(IRubyObject one)
public static IRubyObject[] constructObjectArray(IRubyObject one, IRubyObject two)
public static IRubyObject[] constructObjectArray(IRubyObject one, IRubyObject two, IRubyObject three)
public static IRubyObject[] constructObjectArray(IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four)
public static IRubyObject[] constructObjectArray(IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five)
public static IRubyObject[] constructObjectArray(IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five, IRubyObject six)
public static IRubyObject[] constructObjectArray(IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five, IRubyObject six, IRubyObject seven)
public static IRubyObject[] constructObjectArray(IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five, IRubyObject six, IRubyObject seven, IRubyObject eight)
public static IRubyObject[] constructObjectArray(IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five, IRubyObject six, IRubyObject seven, IRubyObject eight, IRubyObject nine)
public static IRubyObject[] constructObjectArray(IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five, IRubyObject six, IRubyObject seven, IRubyObject eight, IRubyObject nine, IRubyObject ten)
public static RubyArray constructRubyArray(Ruby runtime, IRubyObject one)
public static RubyArray constructRubyArray(Ruby runtime, IRubyObject one, IRubyObject two)
public static RubyArray constructRubyArray(Ruby runtime, IRubyObject one, IRubyObject two, IRubyObject three)
public static RubyArray constructRubyArray(Ruby runtime, IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four)
public static RubyArray constructRubyArray(Ruby runtime, IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five)
public static RubyArray constructRubyArray(Ruby runtime, IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five, IRubyObject six)
public static RubyArray constructRubyArray(Ruby runtime, IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five, IRubyObject six, IRubyObject seven)
public static RubyArray constructRubyArray(Ruby runtime, IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five, IRubyObject six, IRubyObject seven, IRubyObject eight)
public static RubyArray constructRubyArray(Ruby runtime, IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five, IRubyObject six, IRubyObject seven, IRubyObject eight, IRubyObject nine)
public static RubyArray constructRubyArray(Ruby runtime, IRubyObject one, IRubyObject two, IRubyObject three, IRubyObject four, IRubyObject five, IRubyObject six, IRubyObject seven, IRubyObject eight, IRubyObject nine, IRubyObject ten)
public static java.lang.String[] constructStringArray(java.lang.String one)
public static java.lang.String[] constructStringArray(java.lang.String one, java.lang.String two)
public static java.lang.String[] constructStringArray(java.lang.String one, java.lang.String two, java.lang.String three)
public static java.lang.String[] constructStringArray(java.lang.String one, java.lang.String two, java.lang.String three, java.lang.String four)
public static java.lang.String[] constructStringArray(java.lang.String one, java.lang.String two, java.lang.String three, java.lang.String four, java.lang.String five)
public static java.lang.String[] constructStringArray(java.lang.String one, java.lang.String two, java.lang.String three, java.lang.String four, java.lang.String five, java.lang.String six)
public static java.lang.String[] constructStringArray(java.lang.String one, java.lang.String two, java.lang.String three, java.lang.String four, java.lang.String five, java.lang.String six, java.lang.String seven)
public static java.lang.String[] constructStringArray(java.lang.String one, java.lang.String two, java.lang.String three, java.lang.String four, java.lang.String five, java.lang.String six, java.lang.String seven, java.lang.String eight)
public static java.lang.String[] constructStringArray(java.lang.String one, java.lang.String two, java.lang.String three, java.lang.String four, java.lang.String five, java.lang.String six, java.lang.String seven, java.lang.String eight, java.lang.String nine)
public static java.lang.String[] constructStringArray(java.lang.String one, java.lang.String two, java.lang.String three, java.lang.String four, java.lang.String five, java.lang.String six, java.lang.String seven, java.lang.String eight, java.lang.String nine, java.lang.String ten)
public static RubyHash constructHash(Ruby runtime, IRubyObject key1, IRubyObject value1, boolean prepareString1)
public static RubyHash constructHash(Ruby runtime, IRubyObject key1, IRubyObject value1, boolean prepareString1, IRubyObject key2, IRubyObject value2, boolean prepareString2)
public static RubyHash constructHash(Ruby runtime, IRubyObject key1, IRubyObject value1, boolean prepareString1, IRubyObject key2, IRubyObject value2, boolean prepareString2, IRubyObject key3, IRubyObject value3, boolean prepareString3)
public static RubyHash constructHash(Ruby runtime, IRubyObject key1, IRubyObject value1, boolean prepareString1, IRubyObject key2, IRubyObject value2, boolean prepareString2, IRubyObject key3, IRubyObject value3, boolean prepareString3, IRubyObject key4, IRubyObject value4, boolean prepareString4)
public static RubyHash constructHash(Ruby runtime, IRubyObject key1, IRubyObject value1, boolean prepareString1, IRubyObject key2, IRubyObject value2, boolean prepareString2, IRubyObject key3, IRubyObject value3, boolean prepareString3, IRubyObject key4, IRubyObject value4, boolean prepareString4, IRubyObject key5, IRubyObject value5, boolean prepareString5)
public static RubyHash constructSmallHash(Ruby runtime, IRubyObject key1, IRubyObject value1, boolean prepareString1)
public static RubyHash constructSmallHash(Ruby runtime, IRubyObject key1, IRubyObject value1, boolean prepareString1, IRubyObject key2, IRubyObject value2, boolean prepareString2)
public static RubyHash constructSmallHash(Ruby runtime, IRubyObject key1, IRubyObject value1, boolean prepareString1, IRubyObject key2, IRubyObject value2, boolean prepareString2, IRubyObject key3, IRubyObject value3, boolean prepareString3)
public static RubyHash constructSmallHash(Ruby runtime, IRubyObject key1, IRubyObject value1, boolean prepareString1, IRubyObject key2, IRubyObject value2, boolean prepareString2, IRubyObject key3, IRubyObject value3, boolean prepareString3, IRubyObject key4, IRubyObject value4, boolean prepareString4)
public static RubyHash constructSmallHash(Ruby runtime, IRubyObject key1, IRubyObject value1, boolean prepareString1, IRubyObject key2, IRubyObject value2, boolean prepareString2, IRubyObject key3, IRubyObject value3, boolean prepareString3, IRubyObject key4, IRubyObject value4, boolean prepareString4, IRubyObject key5, IRubyObject value5, boolean prepareString5)
public static IRubyObject negate(IRubyObject value, Ruby runtime)
@Deprecated public static IRubyObject stringOrNil(org.jruby.util.ByteList value, ThreadContext context)
public static StaticScope preLoad(ThreadContext context, java.lang.String[] varNames)
public static void preLoadCommon(ThreadContext context, StaticScope staticScope, boolean wrap)
public static void postLoad(ThreadContext context)
@Deprecated public static void registerEndBlock(Block block, Ruby runtime)
@Deprecated public static IRubyObject match3(RubyRegexp regexp, IRubyObject value, ThreadContext context)
public static IRubyObject getErrorInfo(Ruby runtime)
public static void setErrorInfo(Ruby runtime, IRubyObject error)
public static IRubyObject setLastLine(Ruby runtime, ThreadContext context, IRubyObject value)
public static IRubyObject getLastLine(Ruby runtime, ThreadContext context)
public static IRubyObject setBackref(Ruby runtime, ThreadContext context, IRubyObject value)
public static IRubyObject getBackref(Ruby runtime, ThreadContext context)
public static RubyArray arrayValue(IRubyObject value)
public static RubyArray arrayValue(ThreadContext context, Ruby runtime, IRubyObject value)
@Deprecated public static RubyArray asArray(ThreadContext context, IRubyObject value)
public static IRubyObject aryToAry(IRubyObject value)
public static IRubyObject aryToAry(ThreadContext context, IRubyObject value)
public static IRubyObject aryOrToAry(ThreadContext context, IRubyObject value)
@Deprecated public static IRubyObject aValueSplat(IRubyObject value)
@Deprecated public static IRubyObject aValueSplat19(IRubyObject value)
@Deprecated public static RubyArray splatValue(IRubyObject value)
@Deprecated public static RubyArray splatValue19(IRubyObject value)
@Deprecated public static IRubyObject unsplatValue19(IRubyObject argsResult)
@Deprecated public static IRubyObject[] splatToArguments(IRubyObject value)
@Deprecated public static IRubyObject[] argsCatToArguments(IRubyObject[] args, IRubyObject cat)
@Deprecated public static RubySymbol addInstanceMethod(RubyModule containingClass, java.lang.String name, DynamicMethod method, Visibility visibility, ThreadContext context, Ruby runtime)
public static RubySymbol addInstanceMethod(RubyModule containingClass, RubySymbol symbol, DynamicMethod method, Visibility visibility, ThreadContext context, Ruby runtime)
public static StaticScope decodeScopeAndDetermineModule(ThreadContext context, StaticScope parent, java.lang.String scopeString)
public static Visibility performNormalMethodChecksAndDetermineVisibility(Ruby runtime, RubyModule clazz, RubySymbol symbol, Visibility visibility) throws RaiseException
RaiseException
public static RubyClass performSingletonMethodChecks(Ruby runtime, IRubyObject receiver, java.lang.String name) throws RaiseException
RaiseException
@Deprecated public static IRubyObject arrayEntryOrNil(RubyArray array, int index)
@Deprecated public static IRubyObject arrayEntryOrNilZero(RubyArray array)
@Deprecated public static IRubyObject arrayEntryOrNilOne(RubyArray array)
@Deprecated public static IRubyObject arrayEntryOrNilTwo(RubyArray array)
@Deprecated public static IRubyObject arrayPostOrNil(RubyArray array, int pre, int post, int index)
@Deprecated public static IRubyObject arrayPostOrNilZero(RubyArray array, int pre, int post)
@Deprecated public static IRubyObject arrayPostOrNilOne(RubyArray array, int pre, int post)
@Deprecated public static IRubyObject arrayPostOrNilTwo(RubyArray array, int pre, int post)
@Deprecated public static RubyArray subarrayOrEmpty(RubyArray array, Ruby runtime, int index)
@Deprecated public static RubyArray subarrayOrEmpty(RubyArray array, Ruby runtime, int index, int post)
public static RubyModule checkIsModule(IRubyObject maybeModule)
public static IRubyObject getGlobalVariable(Ruby runtime, java.lang.String name)
public static IRubyObject setGlobalVariable(IRubyObject value, Ruby runtime, java.lang.String name)
public static IRubyObject getInstanceVariable(IRubyObject self, Ruby runtime, java.lang.String internedName)
public static IRubyObject getInstanceVariableNoWarn(IRubyObject self, ThreadContext context, java.lang.String internedName)
public static IRubyObject setInstanceVariable(IRubyObject value, IRubyObject self, java.lang.String name)
public static RubyProc newLiteralLambda(ThreadContext context, Block block, IRubyObject self)
public static void fillNil(IRubyObject[] arr, int from, int to, Ruby runtime)
public static void fillNil(IRubyObject[] arr, Ruby runtime)
public static Block getBlock(ThreadContext context, IRubyObject self, Node node)
public static Block getBlock(Ruby runtime, ThreadContext context, IRubyObject self, Node node, Block aBlock)
public static RubyBoolean rbEqual(ThreadContext context, IRubyObject a, IRubyObject b)
context
- a
- b
- public static RubyBoolean rbEqual(ThreadContext context, IRubyObject a, IRubyObject b, CallSite equal)
context
- a
- b
- public static RubyBoolean rbEql(ThreadContext context, IRubyObject a, IRubyObject b)
context
- a
- b
- public static void checkArgumentCount(ThreadContext context, IRubyObject[] args, int min, int max)
context
- thread contextargs
- arguments arraymin
- minimum requiredmax
- maximum allowedpublic static void checkArgumentCount(ThreadContext context, IRubyObject[] args, int req)
context
- thread contextargs
- arguments arrayreq
- required numberpublic static void checkArgumentCount(ThreadContext context, int length, int min, int max)
public static boolean isModuleAndHasConstant(IRubyObject left, java.lang.String name)
public static IRubyObject getDefinedConstantOrBoundMethod(IRubyObject left, java.lang.String name, IRubyObject definedConstantMessage, IRubyObject definedMethodMessage)
public static RubyModule getSuperClassForDefined(Ruby runtime, RubyModule klazz)
public static java.lang.String[] getScopeNames(java.lang.String scopeNames)
public static RubyClass metaclass(IRubyObject object)
public static java.lang.String rawBytesToString(byte[] bytes)
public static byte[] stringToRawBytes(java.lang.String string)
public static java.lang.String encodeCaptureOffsets(int[] scopeOffsets)
public static int[] decodeCaptureOffsets(java.lang.String encoded)
@Deprecated public static IRubyObject match2AndUpdateScope(IRubyObject receiver, ThreadContext context, IRubyObject value, java.lang.String scopeOffsets)
public static void updateScopeWithCaptures(ThreadContext context, int[] scopeOffsets, IRubyObject result)
@Deprecated public static RubyArray argsPush(ThreadContext context, RubyArray first, IRubyObject second)
public static RubyArray argsPush(IRubyObject first, IRubyObject second)
public static RubyArray argsCat(ThreadContext context, IRubyObject first, IRubyObject second)
@Deprecated public static RubyArray argsCat(IRubyObject first, IRubyObject second)
public static ArgumentDescriptor[] argsNodeToArgumentDescriptors(ArgsNode argsNode)
public static ArgumentDescriptor[] parameterListToArgumentDescriptors(Ruby runtime, java.lang.String[] parameterList, boolean isLambda)
public static RubyArray argumentDescriptorsToParameters(Ruby runtime, ArgumentDescriptor[] argsDesc, boolean isLambda)
public static ArgumentDescriptor[] methodToArgumentDescriptors(DynamicMethod method)
public static IRubyObject methodToParameters(Ruby runtime, AbstractRubyMethod recv)
public static IRubyObject getDefinedCall(ThreadContext context, IRubyObject self, IRubyObject receiver, java.lang.String name, IRubyObject definedMessage)
public static IRubyObject invokedynamic(ThreadContext context, IRubyObject self, MethodNames method)
public static IRubyObject invokedynamic(ThreadContext context, IRubyObject self, MethodNames method, IRubyObject arg0)
@Deprecated public static IRubyObject lastElement(IRubyObject[] ary)
@Deprecated public static RubyString appendAsString(RubyString target, IRubyObject other)
@Deprecated public static RubyString appendByteList(RubyString target, org.jruby.util.ByteList source)
public static boolean BNE(ThreadContext context, IRubyObject value1, IRubyObject value2)
public static void irCheckArgsArrayArity(ThreadContext context, RubyArray args, int required, int opt, boolean rest)
@Deprecated public static IRubyObject invokedynamic(ThreadContext context, IRubyObject self, int index)
@Deprecated public static IRubyObject invokedynamic(ThreadContext context, IRubyObject self, int index, IRubyObject arg0)
public static void throwException(java.lang.Throwable e)
public static java.lang.String symbolBytesToString(org.jruby.util.ByteList value)
value
- the value to decodepublic static java.lang.String decodeByteList(Ruby runtime, org.jruby.util.ByteList value)
runtime
- the current runtimevalue
- the bytelistpublic static java.lang.String byteListToString(org.jruby.util.ByteList bytes)
bytes
- the bytelist to decodepublic static IRubyObject rewriteStackTraceAndThrow(ThreadContext context, java.lang.Throwable t)
@Deprecated public static void rewriteStackTrace(Ruby runtime, java.lang.Throwable e)
public static <T> T[] arrayOf(T... values)
public static <T> T[] arrayOf(java.lang.Class<T> t, int size, T fill)
public static int memchr(boolean[] ary, int start, int len, boolean find)
public static boolean isRequiredKeywordArgumentValueNode(Node asgnNode)
public static long hashStart(Ruby runtime, long value)
public static long hashEnd(long value)
public static RubyFixnum safeHash(ThreadContext context, IRubyObject obj)
public static long murmurCombine(long h, long i)
public static long murmur(long h, long k, int r)
public static long murmur_finish(long h)
public static long murmur_step(long h, long k)
public static long murmur1(long h)
@Deprecated public static java.lang.String encodeParameterList(java.util.List<java.lang.String[]> args)
public static byte[] subseq(byte[] ary, int start, int len)
public static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name, IRubyObject[] args, CallType callType, Block block)
public static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name, IRubyObject arg, CallType callType, Block block)
public static IRubyObject invoke(ThreadContext context, IRubyObject self, java.lang.String name, CallType callType)
public static boolean respondsToMethod(DynamicMethod method, boolean checkVisibility)
Copyright © 2001-2018 JRuby. All Rights Reserved.