| Modifier and Type | Field and Description |
|---|---|
| private final transient Object | |
| private final int | |
| pack-priv static final ByteList | |
| public static final ObjectAllocator | NIL_ALLOCATOR
Deprecated
|
| pack-priv static final byte[] |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| 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 IRubyObject | inspect(ThreadContext context)
Overrides org. Overrides default org. nil_inspect |
| pack-priv static RubyString | |
| public boolean | isImmediate()
Overrides org. Implements org. Is object immediate (def: Fixnum, Symbol, true, false, nil?). |
| public RubyBoolean | nil_p(ThreadContext
the thread context context)Overrides org. rb_false call_seq: nil.nil? |
| public IRubyObject | |
| public static RubyBoolean | |
| public IRubyObject | op_match(ThreadContext
the thread context context, IRubyObject arg arg)Overrides org. rb_obj_pattern_match
call-seq:
obj =~ other => nil
Pattern Match---Overridden by descendents (notably
|
| public static RubyBoolean | |
| public static RubyBoolean | |
| public static IRubyObject | |
| 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 | |
| public static RubyArray | |
| public static IRubyObject | |
| public static RubyFloat | |
| public static RubyHash | |
| public static RubyFixnum | |
| public static IRubyObject | |
| public static RubyString | |
| 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. |
| constant | back to summary |
|---|---|
| private final transient Object constant | |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| nil | back to summary |
|---|---|
| pack-priv static final ByteList nil | |
| NIL_ALLOCATOR | back to summary |
|---|---|
| public static final ObjectAllocator NIL_ALLOCATOR
Deprecated
| |
| nilBytes | back to summary |
|---|---|
| pack-priv static final byte[] nilBytes | |
| RubyNil | back to summary |
|---|---|
| public RubyNil(Ruby runtime, RubyClass Nil) | |
| constant | back to summary |
|---|---|
| public Object constant() Implements org.
| |
| finishNilClass | back to summary |
|---|---|
| public static void finishNilClass(ThreadContext context, RubyClass Nil) | |
| 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.
| |
| inspect | back to summary |
|---|---|
| public IRubyObject inspect(ThreadContext context) Overrides org. Overrides default org. nil_inspect
| |
| inspect | back to summary |
|---|---|
| pack-priv static RubyString inspect(Ruby runtime) | |
| isImmediate | back to summary |
|---|---|
| public boolean isImmediate() Overrides org. Implements org. Doc from org. Is object immediate (def: Fixnum, Symbol, true, false, nil?).
| |
| nil_p | back to summary |
|---|---|
| public RubyBoolean nil_p(ThreadContext context) Overrides org. Doc from org. rb_false
call_seq:
nil.nil? => true
<anything_else>.nil? => false
Only the object nil responds
| |
| nil_p | back to summary |
|---|---|
| public IRubyObject nil_p()
Deprecated
| |
| op_and | back to summary |
|---|---|
| public static RubyBoolean op_and(ThreadContext context, IRubyObject recv, IRubyObject obj) nil_and
| |
| op_match | back to summary |
|---|---|
| public IRubyObject op_match(ThreadContext context, IRubyObject arg) Overrides org. Doc from org. rb_obj_pattern_match
call-seq:
obj =~ other => nil
Pattern Match---Overridden by descendents (notably
| |
| op_or | back to summary |
|---|---|
| public static RubyBoolean op_or(ThreadContext context, IRubyObject recv, IRubyObject obj) nil_or
| |
| op_xor | back to summary |
|---|---|
| public static RubyBoolean op_xor(ThreadContext context, IRubyObject recv, IRubyObject obj) nil_xor
| |
| rationalize | back to summary |
|---|---|
| public static IRubyObject rationalize(ThreadContext context, IRubyObject recv, IRubyObject[] args) nilclass_rationalize
| |
| 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
| |
| to_a | back to summary |
|---|---|
| public static RubyArray nil_to_a
| |
| to_c | back to summary |
|---|---|
| public static IRubyObject to_c(ThreadContext context, IRubyObject recv) nilclass_to_c
| |
| to_f | back to summary |
|---|---|
| public static RubyFloat to_f(ThreadContext context, IRubyObject recv) nil_to_f
| |
| to_h | back to summary |
|---|---|
public static RubyHash to_h(ThreadContext context, IRubyObject recv)
| |
| to_i | back to summary |
|---|---|
| public static RubyFixnum to_i(ThreadContext context, IRubyObject recv) nil_to_i
| |
| to_r | back to summary |
|---|---|
| public static IRubyObject to_r(ThreadContext context, IRubyObject recv) nilclass_to_r
| |
| to_s | back to summary |
|---|---|
| public static RubyString to_s(ThreadContext context, IRubyObject recv) nil_to_s
| |
| 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. | |