Package org.jruby.api
Class Access
java.lang.Object
org.jruby.api.Access
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IRubyObject
argsFile
(ThreadContext context) Retrieve ARGF (RubyArgsFile) instancestatic RubyClass
argumentErrorClass
(ThreadContext context) Retrieve the instance of the class ArgumentErrorstatic RubyClass
arrayClass
(ThreadContext context) Retrieve the instance of the class Arraystatic RubyClass
basicObjectClass
(ThreadContext context) Retrieve the instance of the class BasicObjectstatic RubyClass
classClass
(ThreadContext context) Retrieve the instance of the class Classstatic RubyModule
comparableModule
(ThreadContext context) Retrieve the instance of the module Comparable.static RubyClass
dirClass
(ThreadContext context) Retrieve the instance of the class Dirstatic EncodingService
encodingService
(ThreadContext context) Retrieve the encoding service objectstatic RubyModule
enumerableModule
(ThreadContext context) Retrieve the instance of the module Enumerable.static RubyClass
enumeratorClass
(ThreadContext context) Retrieve the instance of the class Enumeratorstatic RubyModule
errnoModule
(ThreadContext context) Retrieve the instance of the module Errno.static RubyClass
exceptionClass
(ThreadContext context) Retrieve the instance of the class Exceptionstatic RubyClass
fileClass
(ThreadContext context) Retrieve the instance of the class Filestatic RubyModule
fileTestModule
(ThreadContext context) Retrieve the instance of the module FileTest.static RubyClass
fixnumClass
(ThreadContext context) Retrieve the instance of the class Fixnumstatic RubyClass
floatClass
(ThreadContext context) Retrieve the instance of the class Floatstatic RubyClass
getClass
(ThreadContext context, String name) Return a class instance based on the name of the class in Object.static RubyClass
getClass
(ThreadContext context, String... names) Return a class instance based on a chain of module/classes starting at Object.static RubyModule
getModule
(ThreadContext context, String name) Retrieve the instance of the module by namestatic GlobalVariables
globalVariables
(ThreadContext context) Retrieve the object containing Ruby Global Variables.static RubyClass
hashClass
(ThreadContext context) Retrieve the instance of the class Hashstatic RubyInstanceConfig
instanceConfig
(ThreadContext context) Retrieve our runtimes instance config which holds many configurable options which are set up from command-line properties or Java system properties.static RubyClass
integerClass
(ThreadContext context) Retrieve the instance of the class Integerstatic RubyClass
ioClass
(ThreadContext context) Retrieve the instance of the class IOstatic RubyModule
kernelModule
(ThreadContext context) Retrieve the instance of the module Kernel.static LoadService
loadService
(ThreadContext context) Retrieve LoadService instancestatic RubyClass
moduleClass
(ThreadContext context) Retrieve the instance of the class Modulestatic RubyClass
nilClass
(ThreadContext context) Retrieve the instance of the class NilClassstatic RubyClass
objectClass
(ThreadContext context) Retrieve the instance of the class Objectstatic RubyClass
procClass
(ThreadContext context) Retrieve the instance of the class Procstatic RubyModule
processModule
(ThreadContext context) Retrieve the instance of the module Processstatic RubyClass
randomClass
(ThreadContext context) Retrieve the instance of the class Randomstatic RubyClass
rangeClass
(ThreadContext context) Retrieve the instance of the class Rangestatic RubyClass
regexpClass
(ThreadContext context) Retrieve the instance of the class Regexpstatic RubyClass
runtimeErrorClass
(ThreadContext context) Retrieve the instance of the class RuntimeErrorstatic RubyClass
standardErrorClass
(ThreadContext context) Retrieve the instance of the class StandardErrorstatic RubyClass
stringClass
(ThreadContext context) Retrieve the instance of the class Stringstatic RubyClass
structClass
(ThreadContext context) Retrieve the instance of the class Structstatic RubyClass
symbolClass
(ThreadContext context) Retrieve the instance of the class Symbolstatic RubyClass
timeClass
(ThreadContext context) Retrieve the instance of the class Time
-
Constructor Details
-
Access
public Access()
-
-
Method Details
-
arrayClass
Retrieve the instance of the class Array- Parameters:
context
- the current thread context- Returns:
- the Class
-
argsFile
Retrieve ARGF (RubyArgsFile) instance- Parameters:
context
- the current thread context- Returns:
- the instance
-
argumentErrorClass
Retrieve the instance of the class ArgumentError- Parameters:
context
- the current thread context- Returns:
- the Class
-
basicObjectClass
Retrieve the instance of the class BasicObject- Parameters:
context
- the current thread context- Returns:
- the Class
-
classClass
Retrieve the instance of the class Class- Parameters:
context
- the current thread context- Returns:
- the Class
-
comparableModule
Retrieve the instance of the module Comparable.- Parameters:
context
- the current thread context- Returns:
- the Module
-
dirClass
Retrieve the instance of the class Dir- Parameters:
context
- the current thread context- Returns:
- the Class
-
encodingService
Retrieve the encoding service object- Parameters:
context
- the current thread context- Returns:
- the object
-
enumerableModule
Retrieve the instance of the module Enumerable.- Parameters:
context
- the current thread context- Returns:
- the Module
-
enumeratorClass
Retrieve the instance of the class Enumerator- Parameters:
context
- the current thread context- Returns:
- the Class
-
errnoModule
Retrieve the instance of the module Errno.- Parameters:
context
- the current thread context- Returns:
- the Module
-
exceptionClass
Retrieve the instance of the class Exception- Parameters:
context
- the current thread context- Returns:
- the Class
-
fileClass
Retrieve the instance of the class File- Parameters:
context
- the current thread context- Returns:
- the Class
-
fileTestModule
Retrieve the instance of the module FileTest.- Parameters:
context
- the current thread context- Returns:
- the Module
-
fixnumClass
Retrieve the instance of the class Fixnum- Parameters:
context
- the current thread context- Returns:
- the Class
-
floatClass
Retrieve the instance of the class Float- Parameters:
context
- the current thread context- Returns:
- the Class
-
globalVariables
Retrieve the object containing Ruby Global Variables.- Parameters:
context
- the current thread context- Returns:
- the object
-
hashClass
Retrieve the instance of the class Hash- Parameters:
context
- the current thread context- Returns:
- the Class
-
integerClass
Retrieve the instance of the class Integer- Parameters:
context
- the current thread context- Returns:
- the Class
-
instanceConfig
Retrieve our runtimes instance config which holds many configurable options which are set up from command-line properties or Java system properties.- Parameters:
context
- the current thread context- Returns:
- the object
-
ioClass
Retrieve the instance of the class IO- Parameters:
context
- the current thread context- Returns:
- the Class
-
kernelModule
Retrieve the instance of the module Kernel.- Parameters:
context
- the current thread context- Returns:
- the Module
-
loadService
Retrieve LoadService instance- Parameters:
context
- the current thread context- Returns:
- the instance
-
getModule
Retrieve the instance of the module by name- Parameters:
context
- the current thread contextname
- of the module to return- Returns:
- the Module
-
getClass
Return a class instance based on the name of the class in Object.- Parameters:
context
- the current contextname
- to be resolved- Returns:
- the eventual class found
-
getClass
Return a class instance based on a chain of module/classes starting at Object.- Parameters:
context
- the current contextnames
- to be resolved- Returns:
- the eventual class found
-
moduleClass
Retrieve the instance of the class Module- Parameters:
context
- the current thread context- Returns:
- the Class
-
nilClass
Retrieve the instance of the class NilClass- Parameters:
context
- the current thread context- Returns:
- the Class
-
objectClass
Retrieve the instance of the class Object- Parameters:
context
- the current thread context- Returns:
- the Class
-
procClass
Retrieve the instance of the class Proc- Parameters:
context
- the current thread context- Returns:
- the Class
-
processModule
Retrieve the instance of the module Process- Parameters:
context
- the current thread context- Returns:
- the Class
-
randomClass
Retrieve the instance of the class Random- Parameters:
context
- the current thread context- Returns:
- the Class
-
rangeClass
Retrieve the instance of the class Range- Parameters:
context
- the current thread context- Returns:
- the Class
-
regexpClass
Retrieve the instance of the class Regexp- Parameters:
context
- the current thread context- Returns:
- the Class
-
runtimeErrorClass
Retrieve the instance of the class RuntimeError- Parameters:
context
- the current thread context- Returns:
- the Class
-
standardErrorClass
Retrieve the instance of the class StandardError- Parameters:
context
- the current thread context- Returns:
- the Class
-
stringClass
Retrieve the instance of the class String- Parameters:
context
- the current thread context- Returns:
- the Class
-
structClass
Retrieve the instance of the class Struct- Parameters:
context
- the current thread context- Returns:
- the Class
-
symbolClass
Retrieve the instance of the class Symbol- Parameters:
context
- the current thread context- Returns:
- the Class
-
timeClass
Retrieve the instance of the class Time- Parameters:
context
- the current thread context- Returns:
- the Class
-