org.jruby
Class RubySymbol

java.lang.Object
  extended byorg.jruby.RubyObject
      extended byorg.jruby.RubySymbol
All Implemented Interfaces:
java.lang.Cloneable, IRubyObject

public class RubySymbol
extends RubyObject

Author:
jpetersen

Nested Class Summary
static class RubySymbol.SymbolTable
           
 
Field Summary
 
Fields inherited from class org.jruby.RubyObject
runtime
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Method Summary
 java.lang.String asSymbol()
          rb_to_id
static RubyClass createSymbolClass(Ruby ruby)
           
 RubyBoolean equal(IRubyObject other)
          rb_obj_equal
 IRubyObject freeze()
          Freeze an object.
static RubySymbol getSymbol(Ruby ruby, long id)
           
 RubyFixnum hash()
           
 RubyString inspect()
          rb_obj_inspect
 void marshalTo(MarshalStream output)
          Method marshalTo.
static RubySymbol newSymbol(Ruby ruby, java.lang.String name)
           
static RubySymbol nilSymbol(Ruby ruby)
           
 IRubyObject rbClone()
          rb_obj_clone
 boolean singletonMethodsAllowed()
           
 IRubyObject taint()
          rb_obj_taint
 RubyFixnum to_i()
           
 RubyString to_s()
           
static RubySymbol unmarshalFrom(UnmarshalStream input)
           
 
Methods inherited from class org.jruby.RubyObject
argCount, callbackFactory, callInit, callMethod, callMethod, callMethod, checkSafeString, convertToString, convertToType, convertType, createObjectClass, defineSingletonMethod, display, dup, equals, eval, eval, evalUnder, extend, extendObject, frozen, getInstanceVariable, getInstanceVariables, getJavaClass, getMetaClass, getRuntime, getSingletonClass, getType, hashCode, hasInstanceVariable, id, infectBy, instance_eval, instance_of, instance_variables, instanceVariableNames, isFalse, isFrozen, isKindOf, isNil, isTaint, isTrue, kind_of, makeMetaClass, method_missing, method, methods, nilObject, private_methods, protected_methods, removeInstanceVariable, respond_to, respondsTo, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, setupClone, singleton_methods, specificEval, tainted, to_a, toString, type, untaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

asSymbol

public java.lang.String asSymbol()
rb_to_id

Specified by:
asSymbol in interface IRubyObject
Overrides:
asSymbol in class RubyObject

nilSymbol

public static RubySymbol nilSymbol(Ruby ruby)

createSymbolClass

public static RubyClass createSymbolClass(Ruby ruby)

singletonMethodsAllowed

public boolean singletonMethodsAllowed()
Specified by:
singletonMethodsAllowed in interface IRubyObject
Overrides:
singletonMethodsAllowed in class RubyObject

getSymbol

public static RubySymbol getSymbol(Ruby ruby,
                                   long id)

newSymbol

public static RubySymbol newSymbol(Ruby ruby,
                                   java.lang.String name)

to_i

public RubyFixnum to_i()

inspect

public RubyString inspect()
Description copied from class: RubyObject
rb_obj_inspect

Specified by:
inspect in interface IRubyObject
Overrides:
inspect in class RubyObject

to_s

public RubyString to_s()
Overrides:
to_s in class RubyObject

equal

public RubyBoolean equal(IRubyObject other)
Description copied from class: RubyObject
rb_obj_equal

Overrides:
equal in class RubyObject

hash

public RubyFixnum hash()
Overrides:
hash in class RubyObject

rbClone

public IRubyObject rbClone()
Description copied from class: RubyObject
rb_obj_clone

Specified by:
rbClone in interface IRubyObject
Overrides:
rbClone in class RubyObject

freeze

public IRubyObject freeze()
Description copied from class: RubyObject
Freeze an object. rb_obj_freeze

Overrides:
freeze in class RubyObject

taint

public IRubyObject taint()
Description copied from class: RubyObject
rb_obj_taint

Overrides:
taint in class RubyObject

marshalTo

public void marshalTo(MarshalStream output)
               throws java.io.IOException
Description copied from interface: IRubyObject
Method marshalTo.

Specified by:
marshalTo in interface IRubyObject
Overrides:
marshalTo in class RubyObject
Throws:
java.io.IOException

unmarshalFrom

public static RubySymbol unmarshalFrom(UnmarshalStream input)
                                throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.