Package org.jruby.api
Class Access
java.lang.Object
org.jruby.api.Access
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IRubyObjectargsFile(ThreadContext context) Retrieve ARGF (RubyArgsFile) instancestatic RubyClassargumentErrorClass(ThreadContext context) Retrieve the instance of the class ArgumentErrorstatic RubyClassarrayClass(ThreadContext context) Retrieve the instance of the class Arraystatic RubyClassbasicObjectClass(ThreadContext context) Retrieve the instance of the class BasicObjectstatic RubyClassclassClass(ThreadContext context) Retrieve the instance of the class Classstatic RubyModulecomparableModule(ThreadContext context) Retrieve the instance of the module Comparable.static RubyClassdirClass(ThreadContext context) Retrieve the instance of the class Dirstatic EncodingServiceencodingService(ThreadContext context) Retrieve the encoding service objectstatic RubyModuleenumerableModule(ThreadContext context) Retrieve the instance of the module Enumerable.static RubyClassenumeratorClass(ThreadContext context) Retrieve the instance of the class Enumeratorstatic RubyModuleerrnoModule(ThreadContext context) Retrieve the instance of the module Errno.static RubyClassexceptionClass(ThreadContext context) Retrieve the instance of the class Exceptionstatic RubyClassfileClass(ThreadContext context) Retrieve the instance of the class Filestatic RubyModulefileTestModule(ThreadContext context) Retrieve the instance of the module FileTest.static RubyClassfixnumClass(ThreadContext context) Retrieve the instance of the class Fixnumstatic RubyClassfloatClass(ThreadContext context) Retrieve the instance of the class Floatstatic RubyClassgetClass(ThreadContext context, String name) Return a class instance based on the name of the class in Object.static RubyClassgetClass(ThreadContext context, String... names) Return a class instance based on a chain of module/classes starting at Object.static RubyModulegetModule(ThreadContext context, String name) Retrieve the instance of the module by namestatic GlobalVariablesglobalVariables(ThreadContext context) Retrieve the object containing Ruby Global Variables.static RubyClasshashClass(ThreadContext context) Retrieve the instance of the class Hashstatic RubyInstanceConfiginstanceConfig(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 RubyClassintegerClass(ThreadContext context) Retrieve the instance of the class Integerstatic RubyClassioClass(ThreadContext context) Retrieve the instance of the class IOstatic RubyModulekernelModule(ThreadContext context) Retrieve the instance of the module Kernel.static LoadServiceloadService(ThreadContext context) Retrieve LoadService instancestatic RubyClassmoduleClass(ThreadContext context) Retrieve the instance of the class Modulestatic RubyClassnilClass(ThreadContext context) Retrieve the instance of the class NilClassstatic RubyClassobjectClass(ThreadContext context) Retrieve the instance of the class Objectstatic RubyClassprocClass(ThreadContext context) Retrieve the instance of the class Procstatic RubyModuleprocessModule(ThreadContext context) Retrieve the instance of the module Processstatic RubyClassrandomClass(ThreadContext context) Retrieve the instance of the class Randomstatic RubyClassrangeClass(ThreadContext context) Retrieve the instance of the class Rangestatic RubyClassregexpClass(ThreadContext context) Retrieve the instance of the class Regexpstatic RubyClassruntimeErrorClass(ThreadContext context) Retrieve the instance of the class RuntimeErrorstatic RubyClassstandardErrorClass(ThreadContext context) Retrieve the instance of the class StandardErrorstatic RubyClassstringClass(ThreadContext context) Retrieve the instance of the class Stringstatic RubyClassstructClass(ThreadContext context) Retrieve the instance of the class Structstatic RubyClasssymbolClass(ThreadContext context) Retrieve the instance of the class Symbolstatic RubyClasstimeClass(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
-