Package org.jruby.api

Class Access

java.lang.Object
org.jruby.api.Access

public class Access extends Object
  • Constructor Details

    • Access

      public Access()
  • Method Details

    • arrayClass

      public static RubyClass arrayClass(ThreadContext context)
      Retrieve the instance of the class Array
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • argsFile

      public static IRubyObject argsFile(ThreadContext context)
      Retrieve ARGF (RubyArgsFile) instance
      Parameters:
      context - the current thread context
      Returns:
      the instance
    • argumentErrorClass

      public static RubyClass argumentErrorClass(ThreadContext context)
      Retrieve the instance of the class ArgumentError
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • basicObjectClass

      public static RubyClass basicObjectClass(ThreadContext context)
      Retrieve the instance of the class BasicObject
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • classClass

      public static RubyClass classClass(ThreadContext context)
      Retrieve the instance of the class Class
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • comparableModule

      public static RubyModule comparableModule(ThreadContext context)
      Retrieve the instance of the module Comparable.
      Parameters:
      context - the current thread context
      Returns:
      the Module
    • dirClass

      public static RubyClass dirClass(ThreadContext context)
      Retrieve the instance of the class Dir
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • encodingService

      public static EncodingService encodingService(ThreadContext context)
      Retrieve the encoding service object
      Parameters:
      context - the current thread context
      Returns:
      the object
    • enumerableModule

      public static RubyModule enumerableModule(ThreadContext context)
      Retrieve the instance of the module Enumerable.
      Parameters:
      context - the current thread context
      Returns:
      the Module
    • enumeratorClass

      public static RubyClass enumeratorClass(ThreadContext context)
      Retrieve the instance of the class Enumerator
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • errnoModule

      public static RubyModule errnoModule(ThreadContext context)
      Retrieve the instance of the module Errno.
      Parameters:
      context - the current thread context
      Returns:
      the Module
    • exceptionClass

      public static RubyClass exceptionClass(ThreadContext context)
      Retrieve the instance of the class Exception
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • fileClass

      public static RubyClass fileClass(ThreadContext context)
      Retrieve the instance of the class File
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • fileTestModule

      public static RubyModule fileTestModule(ThreadContext context)
      Retrieve the instance of the module FileTest.
      Parameters:
      context - the current thread context
      Returns:
      the Module
    • fixnumClass

      public static RubyClass fixnumClass(ThreadContext context)
      Retrieve the instance of the class Fixnum
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • floatClass

      public static RubyClass floatClass(ThreadContext context)
      Retrieve the instance of the class Float
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • globalVariables

      public static GlobalVariables globalVariables(ThreadContext context)
      Retrieve the object containing Ruby Global Variables.
      Parameters:
      context - the current thread context
      Returns:
      the object
    • hashClass

      public static RubyClass hashClass(ThreadContext context)
      Retrieve the instance of the class Hash
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • integerClass

      public static RubyClass integerClass(ThreadContext context)
      Retrieve the instance of the class Integer
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • instanceConfig

      public static 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.
      Parameters:
      context - the current thread context
      Returns:
      the object
    • ioClass

      public static RubyClass ioClass(ThreadContext context)
      Retrieve the instance of the class IO
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • kernelModule

      public static RubyModule kernelModule(ThreadContext context)
      Retrieve the instance of the module Kernel.
      Parameters:
      context - the current thread context
      Returns:
      the Module
    • loadService

      public static LoadService loadService(ThreadContext context)
      Retrieve LoadService instance
      Parameters:
      context - the current thread context
      Returns:
      the instance
    • getModule

      public static RubyModule getModule(ThreadContext context, String name)
      Retrieve the instance of the module by name
      Parameters:
      context - the current thread context
      name - of the module to return
      Returns:
      the Module
    • getClass

      public static RubyClass getClass(ThreadContext context, String name)
      Return a class instance based on the name of the class in Object.
      Parameters:
      context - the current context
      name - to be resolved
      Returns:
      the eventual class found
    • getClass

      public static RubyClass getClass(ThreadContext context, String... names)
      Return a class instance based on a chain of module/classes starting at Object.
      Parameters:
      context - the current context
      names - to be resolved
      Returns:
      the eventual class found
    • moduleClass

      public static RubyClass moduleClass(ThreadContext context)
      Retrieve the instance of the class Module
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • nilClass

      public static RubyClass nilClass(ThreadContext context)
      Retrieve the instance of the class NilClass
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • objectClass

      public static RubyClass objectClass(ThreadContext context)
      Retrieve the instance of the class Object
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • procClass

      public static RubyClass procClass(ThreadContext context)
      Retrieve the instance of the class Proc
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • processModule

      public static RubyModule processModule(ThreadContext context)
      Retrieve the instance of the module Process
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • randomClass

      public static RubyClass randomClass(ThreadContext context)
      Retrieve the instance of the class Random
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • rangeClass

      public static RubyClass rangeClass(ThreadContext context)
      Retrieve the instance of the class Range
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • regexpClass

      public static RubyClass regexpClass(ThreadContext context)
      Retrieve the instance of the class Regexp
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • runtimeErrorClass

      public static RubyClass runtimeErrorClass(ThreadContext context)
      Retrieve the instance of the class RuntimeError
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • standardErrorClass

      public static RubyClass standardErrorClass(ThreadContext context)
      Retrieve the instance of the class StandardError
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • stringClass

      public static RubyClass stringClass(ThreadContext context)
      Retrieve the instance of the class String
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • structClass

      public static RubyClass structClass(ThreadContext context)
      Retrieve the instance of the class Struct
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • symbolClass

      public static RubyClass symbolClass(ThreadContext context)
      Retrieve the instance of the class Symbol
      Parameters:
      context - the current thread context
      Returns:
      the Class
    • timeClass

      public static RubyClass timeClass(ThreadContext context)
      Retrieve the instance of the class Time
      Parameters:
      context - the current thread context
      Returns:
      the Class