| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private transient Object | |
| private String | |
| private final RubyString | |
| private final int | |
| private final int | |
| private static final AtomicReferenceFieldUpdater | |
| private volatile RubyString | |
| private final String | |
| private final ByteList | |
| public static final long | symbolHashSeedK0
Deprecated
|
| private final SymbolNameType |
| Access | Constructor and Description |
|---|---|
| private | RubySymbol(Ruby runtime, String
the String value of the new Symbol. This must
have been previously interned internedSymbol, ByteList the ByteList of the symbol's string representation symbolBytes)
|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static IRubyObject | |
| public static IRubyObject | |
| public void | |
| public RubySymbol | |
| public final String | Returns: a String representation of the symbolOverrides org. Implements org. rb_to_id |
| public void | associateEncoding(Encoding encoding)
RubySymbol is created by passing in a String and bytes are extracted from that. |
| public RubyString | asString()
Overrides org. Implements org. rb_obj_as_string First converts this object into a String using the "to_s" method and returns it. |
| public RubySymbol | Returns: the new symbolMake an instance variable out of this symbol (e.g. :foo will generate :foo=). |
| private RubyString | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public static String | |
| public int | compareTo(final IRubyObject
another IRubyObject that)Overrides org. Implements java. Compares this Ruby object with another. |
| public Object | |
| public static RubyClass | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public final boolean | eql(IRubyObject other)
Overrides org. Implements org. short circuit for Symbol key comparison |
| public boolean | equals(Object
object to compare other)Overrides org. This override does not do a "checked" dispatch. |
| public RubyString | |
| public final ByteList | |
| public Encoding | |
| public int | |
| 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 Encoding | |
| private RubyString | |
| 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 static RubySymbol | |
| 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 IRubyObject | |
| public IRubyObject | |
| public String | idString()
Return an id string (e.g. raw ISO-8859_1 charset String) for use with our method tables etc. |
| public static String | |
| public static RubySymbol | |
| pack-priv final RubyString | |
| public IRubyObject | inspect(ThreadContext context)
Overrides org. Overrides default org. Returns a string containing a human-readable representation of obj. |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| public boolean | isImmediate()
Overrides org. Implements org. Is object immediate (def: Fixnum, Symbol, true, false, nil?). |
| private boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static int | |
| public static int | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public static RubySymbol | |
| public static RubySymbol | |
| public static RubySymbol | Returns: a new or existing symbolthe current thread context context, IRubyObject if this constant symbol is part of a broader chain this is used for full name error reporting. fqn, ByteList to be made into a symbol (or to help retreive existing symbol) bytes)Create a symbol whose intention is to be used as a constant. |
| public static RubySymbol | |
| public static RubySymbol | |
| public static RubySymbol | |
| public static RubySymbol | |
| public static RubySymbol | |
| public static RubySymbol | Returns: a new or existing symbolof this Ruby instance. runtime, ByteList to be made into a symbol (or to help retreive existing symbol) bytes)Generic identifier symbol creation (or retrieval) method. |
| public static RubySymbol | Returns: a new or existing symbolof this Ruby instance. runtime, ByteList to be made into a symbol (or to help retreive existing symbol) bytes, RubySymbol.Generic identifier symbol creation (or retrieval) method that invokes a handler before storing new symbols. |
| public static RubySymbol | |
| private RubyString | |
| public static RubySymbol | |
| public static RubySymbol | |
| public static RubySymbol | |
| public static RubySymbol | newSymbol(Ruby runtime, ByteList bytes, RubySymbol.
Return the symbol in the symbol table if it exists, null otherwise. |
| public static RubySymbol | |
| public static String | Returns: the symbol string associated with the object's string representationthe object to symbolify object)Properly stringify an object for the current "raw bytes" representation of a symbol. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | op_eqq(ThreadContext context, IRubyObject other)
Overrides org. Implements org. rb_equal The Ruby "===" method is used by default in case/when statements. |
| public IRubyObject | op_equal(ThreadContext context, IRubyObject other)
Overrides org. Implements org. rb_obj_equal Will by default use identity equality to compare objects. |
| public IRubyObject | op_match(ThreadContext
the thread context context, IRubyObject arg other)Overrides org. rb_obj_pattern_match
call-seq:
obj =~ other => nil
Pattern Match---Overridden by descendents (notably
|
| public static IRubyObject | Returns: the object, if it is a Symbol or String, or a String produced by calling #to_str on the object.the current context context, IRubyObject the object object)Return the given object if it is a Symbol or String, or convert it to a String. |
| public static RubySymbol | Returns: the symbol table entry.to get symbol table entry for (it may be a symbol already) name)When we know we need an entry in the symbol table because the provided name will be needed to be accessed as a valid identifier later we can call this. |
| public static RubySymbol | Returns: the symbol table entry.to get symbol table entry for (it may be a symbol already) name, RubySymbol.Retrieve an ID symbol but call the handler to verify the symbol is valid. |
| public void | |
| public boolean | |
| 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. |
| private static JavaSites. | sites(ThreadContext context)
Hides org. Retrieve the call sites for this class. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public static ByteList | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| pack-priv final RubyString | |
| public IRubyObject | |
| 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 IRubyObject | |
| public final String | Returns: a StringOverrides org. Print a string for internal debugging purposes. |
| public static RubySymbol | |
| public static RubySymbol | unmarshalFrom(UnmarshalStream input, UnmarshalStream.
Deprecated
for removal since 10.0.
|
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean |