| Modifier and Type | Field and Description |
|---|---|
| private static final String[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | Returns: the converted valuethe object to check obj)
Deprecated
Checks that this object is of type DATA and then returns it, otherwise raises failure (MRI: Check_Type(obj, T_DATA)) |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static RubySymbol | |
| public static RubySymbol | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | checkStringType(ThreadContext context, JavaSites.
|
| public static IRubyObject | |
| public static IRubyObject | |
| public static void | |
| public static String | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | Returns: the converted valuethe object to convert obj, RubyClass is the type we are trying to convert to target, String is the method to be called to try and convert to target type convertMethod, boolean will throw an Error if conversion does not work raise)Converts this object to type 'targetType' using 'convertMethod' method (MRI: convert_type). |
| public static IRubyObject | convertToType(ThreadContext context, IRubyObject obj, RubyClass target, String convertMethod, boolean raise)
|
| public static IRubyObject | Returns: the converted valuethe object to convert obj, RubyClass is the type we are trying to convert to target, JavaSites.is the CheckedSites call sites to be called to try and convert to targetType sites,will throw an Error if conversion does not work raise)Converts this object to type 'targetType' using 'convertMethod' method (MRI: convert_type 1.9). |
| public static IRubyObject | Returns: the converted valuethe object to convert obj, RubyClass is the type we are trying to convert to target, String is the method to be called to try and convert to targeType convertMethod)Converts this object to type 'targetType' using 'convertMethod' method and raises TypeError exception on failure (MRI: rb_convert_type). |
| public static IRubyObject | Returns: the converted valuethe object to convert obj, RubyClass is the type we are trying to convert to target, JavaSites.is the CheckedSites call sites to use to dispatch the convert method sitesConverts this object to type 'targetType' using 'convertMethod' method and raises TypeError exception on failure (MRI: rb_convert_type). |
| public static IRubyObject | convertToType(IRubyObject obj, RubyClass target, int convertMethodIndex, String convertMethod, boolean raise)
Deprecated
|
| public static IRubyObject | convertToType(IRubyObject obj, RubyClass target, int convertMethodIndex, String convertMethod)
Deprecated
|
| public static IRubyObject | Returns: the converted valuethe object to convert obj, RubyClass is the type we are trying to convert to target, String is the method to be called to try and convert to targeType convertMethod)
Deprecated
Higher level conversion utility similar to convertToType but it can throw an additional TypeError during conversion (MRI: rb_check_convert_type). |
| public static IRubyObject | convertToTypeUnchecked(ThreadContext context, IRubyObject obj, RubyClass target, String convertMethod, boolean raise)
|
| public static IRubyObject | Returns: the converted valuethe object to convert obj, RubyClass is the type we are trying to convert to target, String is the method to be called to try and convert to targeType convertMethod)Higher level conversion utility similar to convertToType but it can throw an additional TypeError during conversion (MRI: rb_check_convert_type). |
| public static IRubyObject | Returns: the converted valuethe object to convert obj, RubyClass is the type we are trying to convert to target, JavaSites.the CheckedSites call sites to use for coersion sitesHigher level conversion utility similar to convertToType but it can throw an additional TypeError during conversion (MRI: rb_check_convert_type). |
| public static IRubyObject | convertToTypeWithCheck(IRubyObject obj, RubyClass target, int convertMethodIndex, String convertMethod)
Deprecated
|
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static RubyIO | |
| private static boolean | |
| public static RaiseException | |
| public static RaiseException | |
| public static RaiseException | newTypeErrorMismatch(Ruby runtime, IRubyObject obj, RubyClass target, String methodName, IRubyObject val)
|
| private static IRubyObject | |
| public static RubyArray | |
| public static JavaSites. | |
| public static RubyArray | |
| public static RubyFloat | |
| public static RubyString |
| IMPLICIT_CONVERTED_METHODS | back to summary |
|---|---|
| private static final String[] IMPLICIT_CONVERTED_METHODS | |
| TypeConverter | back to summary |
|---|---|
| public TypeConverter() | |
| booleanExpected | back to summary |
|---|---|
| public static boolean booleanExpected(ThreadContext context, IRubyObject object, String id) | |
| checkArrayType | back to summary |
|---|---|
| public static IRubyObject checkArrayType(Ruby runtime, IRubyObject obj) | |
| checkArrayType | back to summary |
|---|---|
| public static IRubyObject checkArrayType(ThreadContext context, JavaSites. | |
| checkArrayType | back to summary |
|---|---|
| public static IRubyObject checkArrayType(ThreadContext context, IRubyObject obj) | |
| checkArrayType | back to summary |
|---|---|
| public static IRubyObject checkArrayType(IRubyObject obj)
Deprecated
| |
| checkData | back to summary |
|---|---|
| public static IRubyObject checkData(IRubyObject obj)
Deprecated
Checks that this object is of type DATA and then returns it, otherwise raises failure (MRI: Check_Type(obj, T_DATA))
| |
| checkFloatType | back to summary |
|---|---|
| public static IRubyObject checkFloatType(Ruby runtime, IRubyObject obj) | |
| checkHashType | back to summary |
|---|---|
| public static IRubyObject checkHashType(Ruby runtime, IRubyObject obj) | |
| checkHashType | back to summary |
|---|---|
| public static IRubyObject checkHashType(Ruby runtime, IRubyObject obj, boolean raise) | |
| checkHashType | back to summary |
|---|---|
| public static IRubyObject checkHashType(ThreadContext context, JavaSites. | |
| checkID | back to summary |
|---|---|
| public static RubySymbol checkID(IRubyObject obj)
Deprecated since 10.0.
| |
| checkID | back to summary |
|---|---|
| public static RubySymbol checkID(Ruby runtime, String name)
Deprecated since 10.0. Convert the supplied object into an internal identifier String. Basically, symbols are stored internally as raw bytes from whatever encoding they were originally sourced from. When methods are stored they must also get stored in this same raw fashion so that if we use symbols to look up methods or make symbols from these method names they will match up. For 2.2 compatibility, we also force all incoming identifiers to get anchored as hard-referenced symbols.
| |
| checkIntegerType | back to summary |
|---|---|
| public static IRubyObject checkIntegerType(ThreadContext context, IRubyObject obj) | |
| checkStringType | back to summary |
|---|---|
| public static IRubyObject checkStringType(Ruby runtime, IRubyObject obj) | |
| checkStringType | back to summary |
|---|---|
| public static IRubyObject checkStringType(ThreadContext context, JavaSites. | |
| checkStringType | back to summary |
|---|---|
| public static IRubyObject checkStringType(ThreadContext context, JavaSites. | |
| checkToInteger | back to summary |
|---|---|
| public static IRubyObject checkToInteger(ThreadContext context, IRubyObject obj)
Deprecated
| |
| checkToInteger | back to summary |
|---|---|
| public static IRubyObject checkToInteger(Ruby runtime, IRubyObject obj, String method)
Deprecated
| |
| checkType | back to summary |
|---|---|
| public static void checkType(ThreadContext context, IRubyObject x, final RubyModule type) | |
| convertToIdentifier | back to summary |
|---|---|
| public static String convertToIdentifier(IRubyObject obj)
Deprecated
| |
| convertToInteger | back to summary |
|---|---|
| public static IRubyObject convertToInteger(ThreadContext context, IRubyObject val, int base, boolean exception) | |
| convertToInteger | back to summary |
|---|---|
| public static IRubyObject convertToInteger(ThreadContext context, IRubyObject val, int base) | |
| convertToType | back to summary |
|---|---|
| public static IRubyObject convertToType(IRubyObject obj, RubyClass target, String convertMethod, boolean raise) Converts this object to type 'targetType' using 'convertMethod' method (MRI: convert_type).
| |
| convertToType | back to summary |
|---|---|
| public static IRubyObject convertToType(ThreadContext context, IRubyObject obj, RubyClass target, String convertMethod, boolean raise) | |
| convertToType | back to summary |
|---|---|
| public static IRubyObject convertToType(ThreadContext context, IRubyObject obj, RubyClass target, JavaSites. Converts this object to type 'targetType' using 'convertMethod' method (MRI: convert_type 1.9).
| |
| convertToType | back to summary |
|---|---|
| public static IRubyObject convertToType(IRubyObject obj, RubyClass target, String convertMethod) Converts this object to type 'targetType' using 'convertMethod' method and raises TypeError exception on failure (MRI: rb_convert_type).
| |
| convertToType | back to summary |
|---|---|
| public static IRubyObject convertToType(ThreadContext context, IRubyObject obj, RubyClass target, JavaSites. Converts this object to type 'targetType' using 'convertMethod' method and raises TypeError exception on failure (MRI: rb_convert_type).
| |
| convertToType | back to summary |
|---|---|
| public static IRubyObject convertToType(IRubyObject obj, RubyClass target, int convertMethodIndex, String convertMethod, boolean raise)
Deprecated
| |
| convertToType | back to summary |
|---|---|
| public static IRubyObject convertToType(IRubyObject obj, RubyClass target, int convertMethodIndex, String convertMethod)
Deprecated
| |
| convertToTypeOrRaise | back to summary |
|---|---|
| public static IRubyObject convertToTypeOrRaise(IRubyObject obj, RubyClass target, String convertMethod)
Deprecated
Higher level conversion utility similar to convertToType but it can throw an additional TypeError during conversion (MRI: rb_check_convert_type).
| |
| convertToTypeUnchecked | back to summary |
|---|---|
| public static IRubyObject convertToTypeUnchecked(ThreadContext context, IRubyObject obj, RubyClass target, String convertMethod, boolean raise) | |
| convertToTypeWithCheck | back to summary |
|---|---|
| public static IRubyObject convertToTypeWithCheck(IRubyObject obj, RubyClass target, String convertMethod) Higher level conversion utility similar to convertToType but it can throw an additional TypeError during conversion (MRI: rb_check_convert_type).
| |
| convertToTypeWithCheck | back to summary |
|---|---|
| public static IRubyObject convertToTypeWithCheck(ThreadContext context, IRubyObject obj, RubyClass target, JavaSites. Higher level conversion utility similar to convertToType but it can throw an additional TypeError during conversion (MRI: rb_check_convert_type).
| |
| convertToTypeWithCheck | back to summary |
|---|---|
| public static IRubyObject convertToTypeWithCheck(IRubyObject obj, RubyClass target, int convertMethodIndex, String convertMethod)
Deprecated
| |
| handleImplicitlyUncoercibleObject | back to summary |
|---|---|
| public static IRubyObject handleImplicitlyUncoercibleObject(boolean raise, IRubyObject obj, RubyClass target)
Deprecated
| |
| handleUncoercibleObject | back to summary |
|---|---|
| public static IRubyObject handleUncoercibleObject(boolean raise, IRubyObject obj, RubyClass target) | |
| handleUncoercibleObject | back to summary |
|---|---|
| public static IRubyObject handleUncoercibleObject(Ruby runtime, IRubyObject obj, RubyClass target, boolean raise) | |
| ioCheckIO | back to summary |
|---|---|
| public static IRubyObject ioCheckIO(Ruby runtime, IRubyObject obj) | |
| ioGetIO | back to summary |
|---|---|
| public static RubyIO ioGetIO(Ruby runtime, IRubyObject obj) | |
| isImplicitTypeError | back to summary |
|---|---|
| private static boolean isImplicitTypeError(String methodID) | |
| newTypeError | back to summary |
|---|---|
| public static RaiseException newTypeError(IRubyObject obj, RubyClass target, String convertMethod, IRubyObject val) | |
| newTypeError | back to summary |
|---|---|
| public static RaiseException newTypeError(Ruby runtime, IRubyObject obj, RubyClass target, String methodName, IRubyObject val) | |
| newTypeErrorMismatch | back to summary |
|---|---|
| public static RaiseException newTypeErrorMismatch(Ruby runtime, IRubyObject obj, RubyClass target, String methodName, IRubyObject val) | |
| raiseIntegerBaseError | back to summary |
|---|---|
| private static IRubyObject raiseIntegerBaseError(ThreadContext context, boolean exception) | |
| rb_Array | back to summary |
|---|---|
| public static RubyArray | |
| sites | back to summary |
|---|---|
| public static JavaSites. | |
| to_ary | back to summary |
|---|---|
| public static RubyArray | |
| toFloat | back to summary |
|---|---|
| public static RubyFloat toFloat(Ruby runtime, IRubyObject obj) | |
| typeAsString | back to summary |
|---|---|
| public static RubyString typeAsString(IRubyObject obj) | |