|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.RubyClasses
In this class there are references to the core (or built-in) classes and modules of Ruby and JRuby. There is also a Map of referenced to the named classes in a Ruby runtime. The default classes are:
Constructor Summary | |
RubyClasses(Ruby ruby)
Creates a new RubyClasses instance and defines all the core classes and modules in the Ruby runtime. |
Method Summary | |
RubyClass |
getArrayClass()
Returns the reference to the Array class. |
RubyClass |
getBignumClass()
Returns the reference to the Bignum class. |
RubyClass |
getBindingClass()
Returns the reference to the Binding class. |
RubyModule |
getClass(java.lang.String name)
Gets the class attribute of the RubyClasses object |
RubyClass |
getClassClass()
Returns the reference to the Class class. |
RubyModule |
getClassFromPath(java.lang.String path)
|
java.util.Map |
getClassMap()
Returns a RubyMap with references to all named classes in a ruby runtime.. |
RubyModule |
getComparableModule()
Returns the reference to the Comparable module. |
RubyClass |
getContinuationClass()
Returns the reference to the Continuation class. |
RubyClass |
getDirClass()
Returns the reference to the Dir class. |
RubyModule |
getEnumerableModule()
Returns the reference to the Enumerable module. |
RubyClass |
getExceptionClass()
Returns the reference to the Exception class. |
RubyClass |
getFalseClass()
Returns the reference to the FalseClass class. |
RubyClass |
getFileClass()
Returns the reference to the File class. |
RubyClass |
getFileStatClass()
|
RubyModule |
getFileTestModule()
Returns the reference to the Enumerable module. |
RubyClass |
getFixnumClass()
Returns the reference to the Fixnum class. |
RubyClass |
getFloatClass()
Returns the reference to the Float class. |
RubyModule |
getGcModule()
Returns the reference to the GC module. |
RubyClass |
getHashClass()
Returns the reference to the Hash class. |
RubyClass |
getIntegerClass()
Returns the reference to the Integer class. |
RubyClass |
getIoClass()
Returns the reference to the IO class. |
RubyClass |
getJavaArrayClass()
|
RubyModule |
getJavaModule()
Returns the reference to the Java module. |
RubyClass |
getJavaObjectClass()
Returns the reference to the JavaObject class. |
RubyModule |
getKernelModule()
Returns the reference to the Kernel module. |
RubyModule |
getMarshalModule()
Returns the reference to the Marshal module. |
RubyClass |
getMatchDataClass()
Returns the reference to the MatchData class. |
RubyModule |
getMathModule()
Returns the reference to the Math module. |
RubyClass |
getMethodClass()
Returns the reference to the Method class. |
RubyClass |
getModuleClass()
Returns the reference to the Module class. |
RubyClass |
getNilClass()
Returns the reference to the NilClass class. |
RubyClass |
getNumericClass()
Returns the reference to the Numeric class. |
RubyClass |
getObjectClass()
Returns the reference to the Object class. |
RubyModule |
getObjectSpaceModule()
Returns the reference to the ObjectSpace module. |
RubyModule |
getPrecisionModule()
Gets the precisionModule attribute of the RubyClasses object |
RubyClass |
getProcClass()
Returns the reference to the Proc class. |
RubyModule |
getProcessModule()
Gets the processModule attribute of the RubyClasses object |
RubyClass |
getRangeClass()
Returns the reference to the Range class. |
RubyClass |
getRegExpClass()
Returns the reference to the RegExp class. |
RubyClass |
getStringClass()
Returns the reference to the String class. |
RubyClass |
getStructClass()
Returns the reference to the Struct class. |
RubyClass |
getStructTmsClass()
Returns the reference to the Struct::Tms class. |
RubyClass |
getSymbolClass()
Returns the reference to the Symbol class. |
RubyClass |
getThreadClass()
Returns the reference to the Thread class. |
RubyClass |
getThreadGroupClass()
Returns the reference to the ThreadGroup class. |
RubyClass |
getTimeClass()
Returns the reference to the Time class. |
RubyClass |
getTrueClass()
Returns the reference to the TrueClass class. |
RubyClass |
getUnboundMethodClass()
|
void |
initBuiltinClasses()
|
void |
initCoreClasses()
This method defines the core classes and modules in the Ruby runtime. |
java.util.Iterator |
nameIterator()
Description of the Method |
void |
putClass(java.lang.String name,
RubyModule rbClass)
Description of the Method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RubyClasses(Ruby ruby)
ruby
- The Ruby runtime.Method Detail |
public void initCoreClasses()
+------------------+ | | Object---->(Object) | ^ ^ ^ ^ | | | | | | | | +-----+ +---------+ | | | | | | | +-----------+ | | | | | | | +------+ | Module--->(Module) | | | ^ ^ | OtherClass-->(OtherClass) | | | | | | Class---->(Class) | ^ | | | +----------------++ All metaclasses are instances of the class `Class'.
public void initBuiltinClasses()
public RubyClass getBindingClass()
public RubyClass getClassClass()
public RubyClass getModuleClass()
public RubyClass getStructClass()
public RubyModule getComparableModule()
public RubyClass getHashClass()
public RubyModule getMathModule()
public RubyClass getRegExpClass()
public RubyClass getIoClass()
public RubyClass getThreadGroupClass()
public RubyClass getBignumClass()
public RubyClass getStructTmsClass()
public RubyClass getRangeClass()
public RubyModule getGcModule()
public RubyClass getSymbolClass()
public RubyClass getProcClass()
public RubyClass getContinuationClass()
public RubyClass getFalseClass()
public RubyClass getFloatClass()
public RubyClass getMethodClass()
public RubyClass getMatchDataClass()
public RubyModule getMarshalModule()
public RubyClass getFixnumClass()
public RubyClass getObjectClass()
public RubyModule getObjectSpaceModule()
public RubyClass getDirClass()
public RubyClass getExceptionClass()
public RubyClass getStringClass()
public RubyClass getTrueClass()
public RubyClass getIntegerClass()
public RubyModule getKernelModule()
public RubyClass getThreadClass()
public RubyClass getFileClass()
public RubyClass getFileStatClass()
public RubyClass getNilClass()
public RubyClass getArrayClass()
public RubyModule getEnumerableModule()
public RubyModule getFileTestModule()
public RubyModule getPrecisionModule()
public RubyModule getProcessModule()
public RubyClass getJavaObjectClass()
public RubyClass getJavaArrayClass()
public RubyModule getJavaModule()
public RubyClass getNumericClass()
public RubyClass getTimeClass()
public RubyClass getUnboundMethodClass()
public java.util.Map getClassMap()
public RubyModule getClass(java.lang.String name)
name
- Description of the Parameter
public RubyModule getClassFromPath(java.lang.String path)
public void putClass(java.lang.String name, RubyModule rbClass)
name
- Description of the ParameterrbClass
- Description of the Parameterpublic java.util.Iterator nameIterator()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |