|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jruby.RubyObject
org.jruby.RubySymbol
public class RubySymbol
| Nested Class Summary | |
|---|---|
static class |
RubySymbol.SymbolTable
|
| Nested classes/interfaces inherited from class org.jruby.RubyObject |
|---|
RubyObject.Finalizer |
| Field Summary | |
|---|---|
static byte |
EQUALEQUAL_SWITCHVALUE
|
static byte |
HASH_SWITCHVALUE
|
static byte |
INSPECT_SWITCHVALUE
|
static byte |
NIL_P_SWITCHVALUE
|
static byte |
TO_I_SWITCHVALUE
|
static byte |
TO_S_SWITCHVALUE
|
static byte |
TO_SYM_SWITCHVALUE
|
| Fields inherited from class org.jruby.RubyObject |
|---|
instanceVariables, isTrue, metaClass, NEVER, OBJECT_ALLOCATOR |
| Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
|---|
NULL_ARRAY |
| Method Summary | |
|---|---|
static IRubyObject |
all_symbols(IRubyObject recv)
|
java.lang.String |
asSymbol()
rb_to_id |
IRubyObject |
callMethod(ThreadContext context,
RubyModule rubyclass,
int methodIndex,
java.lang.String name,
IRubyObject[] args,
CallType callType,
Block block)
|
static RubyClass |
createSymbolClass(Ruby runtime)
|
boolean |
eql(IRubyObject other)
short circuit for Symbol key comparison |
IRubyObject |
equal(IRubyObject other)
rb_equal |
boolean |
equals(java.lang.Object other)
This method is just a wrapper around the Ruby "==" method, provided so that RubyObjects can be used as keys in the Java HashMap object underlying RubyHash. |
IRubyObject |
freeze()
Freeze an object. |
int |
getNativeTypeIndex()
This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. |
static java.lang.String |
getSymbol(Ruby runtime,
long id)
|
RubyFixnum |
hash()
|
int |
hashCode()
|
IRubyObject |
inspect()
rb_obj_inspect |
boolean |
isImmediate()
|
static RubySymbol |
newSymbol(Ruby runtime,
java.lang.String name)
|
IRubyObject |
taint()
rb_obj_taint |
RubyFixnum |
to_i()
|
IRubyObject |
to_s()
|
IRubyObject |
to_sym()
|
static RubySymbol |
unmarshalFrom(UnmarshalStream input)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final byte NIL_P_SWITCHVALUE
public static final byte EQUALEQUAL_SWITCHVALUE
public static final byte TO_S_SWITCHVALUE
public static final byte TO_I_SWITCHVALUE
public static final byte TO_SYM_SWITCHVALUE
public static final byte HASH_SWITCHVALUE
public static final byte INSPECT_SWITCHVALUE
| Method Detail |
|---|
public static RubyClass createSymbolClass(Ruby runtime)
public int getNativeTypeIndex()
RubyObject
getNativeTypeIndex in interface IRubyObjectgetNativeTypeIndex in class RubyObject
public IRubyObject callMethod(ThreadContext context,
RubyModule rubyclass,
int methodIndex,
java.lang.String name,
IRubyObject[] args,
CallType callType,
Block block)
callMethod in interface IRubyObjectcallMethod in class RubyObjectpublic java.lang.String asSymbol()
asSymbol in interface IRubyObjectasSymbol in class RubyObjectpublic final boolean eql(IRubyObject other)
eql in interface IRubyObjecteql in class RubyObjectpublic boolean isImmediate()
isImmediate in interface IRubyObjectisImmediate in class RubyObject
public static java.lang.String getSymbol(Ruby runtime,
long id)
public static RubySymbol newSymbol(Ruby runtime,
java.lang.String name)
public IRubyObject equal(IRubyObject other)
RubyObject
equal in interface IRubyObjectequal in class RubyObjectpublic RubyFixnum to_i()
public IRubyObject inspect()
RubyObject
inspect in interface IRubyObjectinspect in class RubyObjectpublic IRubyObject to_s()
to_s in class RubyObjectpublic RubyFixnum hash()
hash in class RubyObjectpublic int hashCode()
hashCode in class RubyObjectpublic boolean equals(java.lang.Object other)
RubyObject
equals in class RubyObjectpublic IRubyObject to_sym()
public IRubyObject freeze()
RubyObject
freeze in class RubyObjectpublic IRubyObject taint()
RubyObject
taint in class RubyObjectpublic static IRubyObject all_symbols(IRubyObject recv)
public static RubySymbol unmarshalFrom(UnmarshalStream input)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||