| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final transient Object | |
| public static final ByteList | |
| private final int | |
| private final RubyString | |
| public static final ByteList |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Object | |
| public static void | |
| public static void | |
| public Class | getJavaClass()
Overrides org. Implements org. Will return the Java interface that most closely can represent this object, when working through Java integration translations. |
| public ClassIndex | getNativeClassIndex()
Overrides org. Implements org. This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. |
| public RubyFixnum | hash(ThreadContext
the current thread context context)Overrides org. Will return the hash code of this object. |
| public int | hashCode()
Overrides org. This override does not do "checked" dispatch since Object usually has #hash defined. |
| public RubyFixnum | id()
Overrides org. Implements org. rb_obj_id Return the internal id of an object. |
| public boolean | isImmediate()
Overrides org. Implements org. Is object immediate (def: Fixnum, Symbol, true, false, nil?). |
| public void | |
| public static RubyBoolean | |
| public static RubyBoolean | |
| public RubyClass | singletonClass(ThreadContext
the current thread context context)Overrides org. Overrides default org. Will either return the existing singleton class for this object, or create a new one and return that. |
| public IRubyObject |
| constant | back to summary |
|---|---|
| private final transient Object constant | |
| FALSE_BYTES | back to summary |
|---|---|
| public static final ByteList FALSE_BYTES | |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| toS | back to summary |
|---|---|
| private final RubyString toS | |
| TRUE_BYTES | back to summary |
|---|---|
| public static final ByteList TRUE_BYTES | |
| RubyBoolean | back to summary |
|---|---|
| pack-priv RubyBoolean(Ruby runtime, boolean value) | |
| appendIntoString | back to summary |
|---|---|
| public void appendIntoString(RubyString target) Implements org.
| |
| constant | back to summary |
|---|---|
| public Object constant() Implements org.
| |
| finishFalseClass | back to summary |
|---|---|
| public static void finishFalseClass(ThreadContext context, RubyClass False) | |
| finishTrueClass | back to summary |
|---|---|
| public static void finishTrueClass(ThreadContext context, RubyClass True) | |
| getJavaClass | back to summary |
|---|---|
| public Class Overrides org. Implements org. Doc from org. Will return the Java interface that most closely can represent this object, when working through Java integration translations. | |
| getNativeClassIndex | back to summary |
|---|---|
| public ClassIndex getNativeClassIndex() Overrides org. Implements org. Doc from org. This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. Will generally return a value from org.jruby.runtime.ClassIndex
| |
| hash | back to summary |
|---|---|
| public RubyFixnum hash(ThreadContext context) Overrides org. Doc from org. Will return the hash code of this object. In comparison to MRI, this method will use the Java identity hash code instead of using rb_obj_id, since the usage of id in JRuby will incur the cost of some. ObjectSpace maintenance.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from org. This override does not do "checked" dispatch since Object usually has #hash defined.
| |
| id | back to summary |
|---|---|
| public RubyFixnum id() Overrides org. Implements org. Doc from org. rb_obj_id Return the internal id of an object.
| |
| isImmediate | back to summary |
|---|---|
| public boolean isImmediate() Overrides org. Implements org. Doc from org. Is object immediate (def: Fixnum, Symbol, true, false, nil?).
| |
| marshalTo | back to summary |
|---|---|
| public void marshalTo(MarshalStream output) throws IOException
Deprecated for removal since 10.0.
| |
| newBoolean | back to summary |
|---|---|
| public static RubyBoolean newBoolean(Ruby runtime, boolean value)
Deprecated
| |
| newBoolean | back to summary |
|---|---|
| public static RubyBoolean newBoolean(ThreadContext context, boolean value)
Deprecated
| |
| singletonClass | back to summary |
|---|---|
| public RubyClass singletonClass(ThreadContext context) Overrides org. Overrides default org. Doc from org. Will either return the existing singleton class for this object, or create a new one and return that. For a few types a singleton class is not possible so it will throw an error.
| |
| taint | back to summary |
|---|---|
| public IRubyObject taint(ThreadContext context) Overrides org. Deprecated
| |
| Modifier and Type | Method and Description |
|---|---|
| public static IRubyObject | |
| public static IRubyObject | |
| public static RubyString | |
| public static IRubyObject | |
| public RubyString | inspect()
Overrides org. Implements org.
Deprecated
since 10.0.
RubyMethod inspect. |
| public RubyString | inspect(ThreadContext context)
Overrides org. Overrides default org. Returns a string containing a human-readable representation of obj. |
| public <T> T | toJava(Class<T>
The target type to which the object should be converted. target)Overrides org. Implements org. Convert the object to the specified Java class, if possible. |
| False | back to summary |
|---|---|
| pack-priv False(Ruby runtime) | |
| false_and | back to summary |
|---|---|
public static IRubyObject false_and(IRubyObject fals, IRubyObject oth)
| |
| false_or | back to summary |
|---|---|
public static IRubyObject false_or(ThreadContext context, IRubyObject fals, IRubyObject oth)
| |
| false_to_s | back to summary |
|---|---|
| public static RubyString false_to_s(ThreadContext context, IRubyObject fals)
Deprecated
| |
| false_xor | back to summary |
|---|---|
public static IRubyObject false_xor(ThreadContext context, IRubyObject fals, IRubyObject oth)
| |
| inspect | back to summary |
|---|---|
| public RubyString inspect() Overrides org. Implements org. Doc from org. Deprecated since 10.0. RubyMethod inspect.
| |
| inspect | back to summary |
|---|---|
| public RubyString inspect(ThreadContext context) Overrides org. Overrides default org. Doc from org. Returns a string containing a human-readable representation of
obj. If not overridden, uses the
| |
| toJava | back to summary |
|---|---|
| public <T> T toJava(Class<T> target) Overrides org. Implements org. Doc from org. Convert the object to the specified Java class, if possible. | |
| Modifier and Type | Method and Description |
|---|---|
| public RubyString | inspect()
Overrides org. Implements org.
Deprecated
since 10.0.
RubyMethod inspect. |
| public RubyString | inspect(ThreadContext context)
Overrides org. Overrides default org. Returns a string containing a human-readable representation of obj. |
| public <T> T | toJava(Class<T>
The target type to which the object should be converted. target)Overrides org. Implements org. Convert the object to the specified Java class, if possible. |
| public static IRubyObject | |
| public static IRubyObject | |
| public static RubyString | |
| public static IRubyObject |
| True | back to summary |
|---|---|
| pack-priv True(Ruby runtime) | |
| inspect | back to summary |
|---|---|
| public RubyString inspect() Overrides org. Implements org. Doc from org. Deprecated since 10.0. RubyMethod inspect.
| |
| inspect | back to summary |
|---|---|
| public RubyString inspect(ThreadContext context) Overrides org. Overrides default org. Doc from org. Returns a string containing a human-readable representation of
obj. If not overridden, uses the
| |
| toJava | back to summary |
|---|---|
| public <T> T toJava(Class<T> target) Overrides org. Implements org. Doc from org. Convert the object to the specified Java class, if possible. | |
| true_and | back to summary |
|---|---|
public static IRubyObject true_and(ThreadContext context, IRubyObject tru, IRubyObject oth)
| |
| true_or | back to summary |
|---|---|
public static IRubyObject true_or(IRubyObject tru, IRubyObject oth)
| |
| true_to_s | back to summary |
|---|---|
| public static RubyString true_to_s(ThreadContext context, IRubyObject tru)
Deprecated since 10.0.
| |
| true_xor | back to summary |
|---|---|
public static IRubyObject true_xor(ThreadContext context, IRubyObject tru, IRubyObject oth)
| |