Package org.jruby

Class RubyInstanceConfig

java.lang.Object
org.jruby.RubyInstanceConfig

public class RubyInstanceConfig extends Object
A structure used to configure new JRuby instances. All publicly-tweakable aspects of Ruby can be modified here, including those settable by command- line options, those available through JVM properties, and those suitable for embedding.
  • Field Details

    • JAVA_VERSION

      public static final int JAVA_VERSION
      The version to use for generated classes. Set to current JVM version by default
    • POOLING_ENABLED

      public static final boolean POOLING_ENABLED
      Enable a thread pool. Each Ruby thread will be mapped onto a thread from this pool. Set with the jruby.thread.pool.enabled system property.
      See Also:
    • POOL_MAX

      public static final int POOL_MAX
      Maximum thread pool size (integer, default Integer.MAX_VALUE). Set with the jruby.thread.pool.max system property.
    • POOL_MIN

      public static final int POOL_MIN
      Minimum thread pool size (integer, default 0). Set with the jruby.thread.pool.min system property.
    • POOL_TTL

      public static final int POOL_TTL
      Thread pool time-to-live in seconds. Set with the jruby.thread.pool.max system property.
    • FIBER_POOL_TTL

      public static final int FIBER_POOL_TTL
      Fiber thread pool time-to-live in seconds. Set with the jruby.fiber.thread.pool.max system property.
    • FULL_TRACE_ENABLED

      public static boolean FULL_TRACE_ENABLED
      Enable tracing of method calls. Set with the jruby.debug.fullTrace system property.
    • COMPILE_EXCLUDE

      public static final String COMPILE_EXCLUDE
      Comma-separated list of methods to exclude from JIT compilation. Specify as "Module", "Module#method" or "method". Also supports excluding based on implementation_file.rb syntax. Set with the jruby.jit.exclude system property.
    • NATIVE_ENABLED

      public static final boolean NATIVE_ENABLED
      Indicates the global default for whether native code is enabled. Default is true. This value is used to default new runtime configurations. Set with the jruby.native.enabled system property.
    • CEXT_ENABLED

      @Deprecated public static final boolean CEXT_ENABLED
      Deprecated.
      See Also:
    • REIFY_RUBY_CLASSES

      public static final boolean REIFY_RUBY_CLASSES
      Whether to reify (pre-compile and generate) a Java class per Ruby class. Set with the jruby.reify.classes system property.
    • REIFY_LOG_ERRORS

      public static final boolean REIFY_LOG_ERRORS
      Log errors that occur during reification. Set with the jruby.reify.logErrors system property.
    • DEBUG_LOAD_SERVICE

      public static final boolean DEBUG_LOAD_SERVICE
      Turn on debugging of the load service (requires and loads). Set with the jruby.debug.loadService system property.
    • DEBUG_LOAD_TIMINGS

      public static final boolean DEBUG_LOAD_TIMINGS
      Turn on timings of the load service (requires and loads). Set with the jruby.debug.loadService.timing system property.
    • DEBUG_LAUNCHING

      public static final boolean DEBUG_LAUNCHING
      Turn on debugging of subprocess launching. Set with the jruby.debug.launch system property.
    • DEBUG_SCRIPT_RESOLUTION

      public static final boolean DEBUG_SCRIPT_RESOLUTION
      Turn on debugging of script resolution with "-S". Set with the jruby.debug.scriptResolution system property.
    • DEBUG_PARSER

      public static final boolean DEBUG_PARSER
    • JUMPS_HAVE_BACKTRACE

      public static final boolean JUMPS_HAVE_BACKTRACE
    • NO_UNWRAP_PROCESS_STREAMS

      public static final boolean NO_UNWRAP_PROCESS_STREAMS
    • INTERFACES_USE_PROXY

      public static final boolean INTERFACES_USE_PROXY
    • SET_ACCESSIBLE

      public static final boolean SET_ACCESSIBLE
    • LOG_EXCEPTIONS

      public static final boolean LOG_EXCEPTIONS
    • LOG_BACKTRACES

      public static final boolean LOG_BACKTRACES
    • LOG_CALLERS

      public static final boolean LOG_CALLERS
    • LOG_WARNINGS

      public static final boolean LOG_WARNINGS
    • ERRNO_BACKTRACE

      public static final boolean ERRNO_BACKTRACE
    • STOPITERATION_BACKTRACE

      public static final boolean STOPITERATION_BACKTRACE
    • IR_DEBUG

      public static boolean IR_DEBUG
    • IR_DEBUG_IGV

      public static final String IR_DEBUG_IGV
    • IR_DEBUG_IGV_STDOUT

      public static final boolean IR_DEBUG_IGV_STDOUT
    • IR_PROFILE

      public static final boolean IR_PROFILE
    • IR_COMPILER_DEBUG

      public static boolean IR_COMPILER_DEBUG
    • IR_PRINT_PATTERN

      public static String IR_PRINT_PATTERN
    • IR_WRITING

      public static final boolean IR_WRITING
    • IR_READING

      public static final boolean IR_READING
    • IR_READING_DEBUG

      public static final boolean IR_READING_DEBUG
    • IR_WRITING_DEBUG

      public static final boolean IR_WRITING_DEBUG
    • IR_VISUALIZER

      public static final boolean IR_VISUALIZER
    • IR_UNBOXING

      public static final boolean IR_UNBOXING
    • IR_COMPILER_PASSES

      public static final String IR_COMPILER_PASSES
    • IR_JIT_PASSES

      public static final String IR_JIT_PASSES
    • IR_INLINE_COMPILER_PASSES

      public static String IR_INLINE_COMPILER_PASSES
    • RECORD_LEXICAL_HIERARCHY

      public static boolean RECORD_LEXICAL_HIERARCHY
    • CONSISTENT_HASHING_ENABLED

      public static final boolean CONSISTENT_HASHING_ENABLED
      Whether to calculate consistent hashes across JVM instances, or to ensure un-predicatable hash values using SecureRandom. Set with the jruby.consistent.hashing.enabled system property.
    • JIT_MAX_METHODS_LIMIT

      @Deprecated public static final int JIT_MAX_METHODS_LIMIT
      Deprecated.
      The max count of active methods eligible for JIT-compilation.
      See Also:
    • JIT_MAX_SIZE_LIMIT

      @Deprecated public static final int JIT_MAX_SIZE_LIMIT
      Deprecated.
      The max size of JIT-compiled methods (full class size) allowed.
      See Also:
    • JIT_THRESHOLD

      @Deprecated public static final int JIT_THRESHOLD
      Deprecated.
      The JIT threshold to the specified method invocation count.
      See Also:
    • CHAINED_COMPILE_LINE_COUNT_DEFAULT

      @Deprecated public static final int CHAINED_COMPILE_LINE_COUNT_DEFAULT
      Deprecated.
      Default size for chained compilation.
      See Also:
    • nativeEnabled

      @Deprecated public static final boolean nativeEnabled
      Deprecated.
    • JIT_CODE_CACHE

      @Deprecated public static final String JIT_CODE_CACHE
      Deprecated.
      See Also:
    • NATIVE_NET_PROTOCOL

      @Deprecated public static final boolean NATIVE_NET_PROTOCOL
      Deprecated.
    • CAN_SET_ACCESSIBLE

      @Deprecated public static final boolean CAN_SET_ACCESSIBLE
      Deprecated.
    • THREADLESS_COMPILE_ENABLED

      @Deprecated public static boolean THREADLESS_COMPILE_ENABLED
      Deprecated.
    • CHAINED_COMPILE_LINE_COUNT

      @Deprecated public static final int CHAINED_COMPILE_LINE_COUNT
      Deprecated.
      See Also:
    • PEEPHOLE_OPTZ

      @Deprecated public static final boolean PEEPHOLE_OPTZ
      Deprecated.
      See Also:
    • NOGUARDS_COMPILE_ENABLED

      @Deprecated public static boolean NOGUARDS_COMPILE_ENABLED
      Deprecated.
    • FASTEST_COMPILE_ENABLED

      @Deprecated public static final boolean FASTEST_COMPILE_ENABLED
      Deprecated.
      See Also:
    • FASTSEND_COMPILE_ENABLED

      @Deprecated public static boolean FASTSEND_COMPILE_ENABLED
      Deprecated.
    • FAST_MULTIPLE_ASSIGNMENT

      @Deprecated public static boolean FAST_MULTIPLE_ASSIGNMENT
      Deprecated.
    • JIT_LOADING_DEBUG

      @Deprecated public static final boolean JIT_LOADING_DEBUG
      Deprecated.
      See Also:
    • JIT_CACHE_ENABLED

      @Deprecated public static final boolean JIT_CACHE_ENABLED
      Deprecated.
      See Also:
    • REFLECTED_HANDLES

      @Deprecated public static final boolean REFLECTED_HANDLES
      Deprecated.
      See Also:
    • COROUTINE_FIBERS

      @Deprecated public static final boolean COROUTINE_FIBERS
      Deprecated.
      See Also:
    • USE_GENERATED_HANDLES

      @Deprecated public static final boolean USE_GENERATED_HANDLES
      Deprecated.
      See Also:
    • FASTOPS_COMPILE_ENABLED

      @Deprecated public static final boolean FASTOPS_COMPILE_ENABLED
      Deprecated.
  • Constructor Details

    • RubyInstanceConfig

      public RubyInstanceConfig()
    • RubyInstanceConfig

      public RubyInstanceConfig(boolean isSecurityRestricted)
    • RubyInstanceConfig

      public RubyInstanceConfig(RubyInstanceConfig parentConfig)
    • RubyInstanceConfig

      public RubyInstanceConfig(InputStream in, PrintStream out, PrintStream err)
  • Method Details

    • createLoadService

      public LoadService createLoadService(Ruby runtime)
    • processArguments

      public void processArguments(String[] arguments)
    • tryProcessArgumentsWithRubyopts

      public void tryProcessArgumentsWithRubyopts()
    • processArgumentsWithRubyopts

      public void processArgumentsWithRubyopts()
    • parseShebangOptions

      public String[] parseShebangOptions(InputStream in)
      The intent here is to gather up any options that might have been specified in the shebang line and return them so they can be merged into the ones specified on the command-line. This is kind of a hopeless task because it's impossible to figure out where the command invocation stops and the parameters start. We try to work with the common scenarios where /usr/bin/env is used to invoke the JRuby shell script, and skip any parameters it might have. Then we look for the interpreter invocation and assume that the binary will have the word "ruby" in the name. This is error prone but should cover more cases than the previous code.
    • isRubyShebangLine

      protected static boolean isRubyShebangLine(String line)
    • isUpdateNativeENVEnabled

      public boolean isUpdateNativeENVEnabled()
      Indicates whether the JVM process' native environment will be updated when ENV[...] is set from Ruby.
    • setUpdateNativeENVEnabled

      public void setUpdateNativeENVEnabled(boolean updateNativeENVEnabled)
      Ensure that the JVM process' native environment will be updated when ENV is modified .
    • inlineScript

      public byte[] inlineScript()
    • getScriptSource

      public InputStream getScriptSource()
    • displayedFileName

      public String displayedFileName()
    • hasLoadedNativeExtensions

      public static boolean hasLoadedNativeExtensions()
    • setLoadedNativeExtensions

      public static void setLoadedNativeExtensions(boolean loadedNativeExtensions)
    • getLoadServiceCreator

      public RubyInstanceConfig.LoadServiceCreator getLoadServiceCreator()
    • setLoadServiceCreator

      public void setLoadServiceCreator(RubyInstanceConfig.LoadServiceCreator creator)
    • getJRubyHome

      public String getJRubyHome()
    • setJRubyHome

      public void setJRubyHome(String home)
    • getCompileMode

      public RubyInstanceConfig.CompileMode getCompileMode()
    • setCompileMode

      public void setCompileMode(RubyInstanceConfig.CompileMode compileMode)
    • isJitLogging

      public boolean isJitLogging()
      See Also:
    • isJitLoggingVerbose

      public boolean isJitLoggingVerbose()
      See Also:
    • getJitLogEvery

      public int getJitLogEvery()
      See Also:
    • setJitLogEvery

      public void setJitLogEvery(int jitLogEvery)
      See Also:
    • getJitThreshold

      public int getJitThreshold()
      See Also:
    • setJitThreshold

      public void setJitThreshold(int jitThreshold)
      See Also:
    • getJitMax

      public int getJitMax()
      See Also:
    • setJitMax

      public void setJitMax(int jitMax)
      See Also:
    • getJitMaxSize

      public int getJitMaxSize()
      See Also:
    • setJitMaxSize

      public void setJitMaxSize(int jitMaxSize)
      See Also:
    • isJitEnabled

      public boolean isJitEnabled()
      Returns:
      true if JIT compilation is enabled
    • isRunRubyInProcess

      public boolean isRunRubyInProcess()
      See Also:
    • setRunRubyInProcess

      public void setRunRubyInProcess(boolean flag)
      See Also:
    • setInput

      public void setInput(InputStream newInput)
    • getInput

      public InputStream getInput()
    • setOutput

      public void setOutput(PrintStream newOutput)
    • getOutput

      public PrintStream getOutput()
    • setError

      public void setError(PrintStream newError)
    • getError

      public PrintStream getError()
    • setCurrentDirectory

      public void setCurrentDirectory(String newCurrentDirectory)
    • getCurrentDirectory

      public String getCurrentDirectory()
    • setProfile

      public void setProfile(Profile newProfile)
    • getProfile

      public Profile getProfile()
    • setObjectSpaceEnabled

      public void setObjectSpaceEnabled(boolean newObjectSpaceEnabled)
      See Also:
    • isObjectSpaceEnabled

      public boolean isObjectSpaceEnabled()
      See Also:
    • setSiphashEnabled

      public void setSiphashEnabled(boolean newSiphashEnabled)
      See Also:
    • isSiphashEnabled

      public boolean isSiphashEnabled()
      See Also:
    • setEnvironment

      public void setEnvironment(Map<String,String> newEnvironment)
    • getEnvironment

      public Map<String,String> getEnvironment()
    • getLoader

      public ClassLoader getLoader()
    • setLoader

      public void setLoader(ClassLoader loader)
    • getExtraLoadPaths

      public List<String> getExtraLoadPaths()
    • getExtraGemPaths

      public List<String> getExtraGemPaths()
    • getExtraLoaders

      public List<Loader> getExtraLoaders()
    • addLoader

      public void addLoader(ClassLoader loader)
      adds a given ClassLoader to jruby. i.e. adds the root of the classloader to the LOAD_PATH so embedded ruby scripts can be found. dito for embedded gems. since classloaders do not provide directory information (some do and some do not) the source of the classloader needs to have a '.jrubydir' in each with the list of files and directories of the same directory. (see jruby-stdlib.jar or jruby-complete.jar inside META-INF/jruby.home for examples). these files can be generated by jruby -S generate_dir_info {path/to/ruby/files}
      Parameters:
      loader -
    • addLoader

      public void addLoader(Loader bundle)
      adds a given "bundle" to jruby. an OSGi bundle and a classloader both have common set of method but do not share a common interface. for adding a bundle or classloader to jruby is done via the base URL of the classloader/bundle. all we need is the 'getResource'/'getResources' method to do so.
      Parameters:
      bundle -
    • getArgv

      public String[] getArgv()
    • setArgv

      public void setArgv(String[] argv)
    • getInlineScript

      public StringBuffer getInlineScript()
    • setHasInlineScript

      public void setHasInlineScript(boolean hasInlineScript)
    • hasInlineScript

      public boolean hasInlineScript()
    • getRequiredLibraries

      public Collection<String> getRequiredLibraries()
    • getLoadPaths

      public List<String> getLoadPaths()
    • setLoadPaths

      public void setLoadPaths(List<String> loadPaths)
    • setShouldPrintUsage

      public void setShouldPrintUsage(boolean shouldPrintUsage)
      See Also:
    • getShouldPrintUsage

      public boolean getShouldPrintUsage()
      See Also:
    • setShouldPrintProperties

      public void setShouldPrintProperties(boolean shouldPrintProperties)
      See Also:
    • getShouldPrintProperties

      public boolean getShouldPrintProperties()
      See Also:
    • isInlineScript

      public boolean isInlineScript()
    • isForceStdin

      public boolean isForceStdin()
      True if we are only using source from stdin and not from a -e or file argument.
    • setForceStdin

      public void setForceStdin(boolean forceStdin)
      Set whether we should only look at stdin for source.
    • setScriptFileName

      public void setScriptFileName(String scriptFileName)
    • getScriptFileName

      public String getScriptFileName()
    • setAssumeLoop

      public void setAssumeLoop(boolean assumeLoop)
      See Also:
    • isAssumeLoop

      public boolean isAssumeLoop()
      See Also:
    • setAssumePrinting

      public void setAssumePrinting(boolean assumePrinting)
      See Also:
    • isAssumePrinting

      public boolean isAssumePrinting()
      See Also:
    • setProcessLineEnds

      public void setProcessLineEnds(boolean processLineEnds)
      See Also:
    • isProcessLineEnds

      public boolean isProcessLineEnds()
      See Also:
    • setSplit

      public void setSplit(boolean split)
      See Also:
    • isSplit

      public boolean isSplit()
      See Also:
    • getVerbosity

      public RubyInstanceConfig.Verbosity getVerbosity()
      See Also:
    • setVerbosity

      public void setVerbosity(RubyInstanceConfig.Verbosity verbosity)
      See Also:
    • setBacktraceLimit

      public void setBacktraceLimit(Integer limit)
    • getBacktraceLimit

      public Integer getBacktraceLimit()
    • isVerbose

      public boolean isVerbose()
      See Also:
    • isDebug

      public boolean isDebug()
      See Also:
    • setDebug

      public void setDebug(boolean debug)
      See Also:
    • getWarningCategories

      public Set<RubyWarnings.Category> getWarningCategories()
      Get the set of enabled warning categories.
      Returns:
      the set of enabled warning categories
    • isParserDebug

      public boolean isParserDebug()
      See Also:
    • setParserDebug

      public void setParserDebug(boolean parserDebug)
      See Also:
    • getParserDebug

      public boolean getParserDebug()
      See Also:
    • setShowVersion

      public void setShowVersion(boolean showVersion)
      See Also:
    • isShowVersion

      public boolean isShowVersion()
      See Also:
    • setShowBytecode

      public void setShowBytecode(boolean showBytecode)
      See Also:
    • isShowBytecode

      public boolean isShowBytecode()
      See Also:
    • setShowCopyright

      public void setShowCopyright(boolean showCopyright)
      See Also:
    • isShowCopyright

      public boolean isShowCopyright()
      See Also:
    • setShouldRunInterpreter

      public void setShouldRunInterpreter(boolean shouldRunInterpreter)
    • getShouldRunInterpreter

      public boolean getShouldRunInterpreter()
    • setShouldCheckSyntax

      public void setShouldCheckSyntax(boolean shouldSetSyntax)
      See Also:
    • getShouldCheckSyntax

      public boolean getShouldCheckSyntax()
      See Also:
    • setInputFieldSeparator

      public void setInputFieldSeparator(String inputFieldSeparator)
      See Also:
    • getInputFieldSeparator

      public String getInputFieldSeparator()
      See Also:
    • getKCode

      public KCode getKCode()
      See Also:
    • setKCode

      public void setKCode(KCode kcode)
      See Also:
    • setInternalEncoding

      public void setInternalEncoding(String internalEncoding)
      See Also:
    • getInternalEncoding

      public String getInternalEncoding()
      See Also:
    • setExternalEncoding

      public void setExternalEncoding(String externalEncoding)
      See Also:
    • getExternalEncoding

      public String getExternalEncoding()
      See Also:
    • setSourceEncoding

      public void setSourceEncoding(String sourceEncoding)
      See Also:
    • getSourceEncoding

      public String getSourceEncoding()
      See Also:
    • setRecordSeparator

      public void setRecordSeparator(String recordSeparator)
      See Also:
    • getRecordSeparator

      public String getRecordSeparator()
      See Also:
    • getSafeLevel

      public int getSafeLevel()
    • setInPlaceBackupExtension

      public void setInPlaceBackupExtension(String inPlaceBackupExtension)
      See Also:
    • getInPlaceBackupExtension

      public String getInPlaceBackupExtension()
      See Also:
    • getOptionGlobals

      public Map<String,String> getOptionGlobals()
    • isManagementEnabled

      public boolean isManagementEnabled()
    • getExcludedMethods

      public Set<String> getExcludedMethods()
    • isArgvGlobalsOn

      public boolean isArgvGlobalsOn()
    • setArgvGlobalsOn

      public void setArgvGlobalsOn(boolean argvGlobalsOn)
    • isHardExit

      public boolean isHardExit()
    • setHardExit

      public void setHardExit(boolean hardExit)
    • isProfiling

      public boolean isProfiling()
      See Also:
    • isProfilingEntireRun

      public boolean isProfilingEntireRun()
      See Also:
    • setProfilingMode

      public void setProfilingMode(RubyInstanceConfig.ProfilingMode profilingMode)
      See Also:
    • getProfilingMode

      public RubyInstanceConfig.ProfilingMode getProfilingMode()
      See Also:
    • setProfileOutput

      public void setProfileOutput(ProfileOutput output)
    • getProfileOutput

      public ProfileOutput getProfileOutput()
    • hasShebangLine

      public boolean hasShebangLine()
    • setHasShebangLine

      public void setHasShebangLine(boolean hasShebangLine)
    • isDisableGems

      public boolean isDisableGems()
      See Also:
    • isDisableDidYouMean

      public boolean isDisableDidYouMean()
      See Also:
    • isDisableErrorHighlight

      public boolean isDisableErrorHighlight()
      See Also:
    • isDisableSyntaxSuggest

      public boolean isDisableSyntaxSuggest()
      See Also:
    • setDisableRUBYOPT

      public void setDisableRUBYOPT(boolean dr)
      See Also:
    • setDisableGems

      public void setDisableGems(boolean dg)
      See Also:
    • setDisableDidYouMean

      public void setDisableDidYouMean(boolean ddym)
      See Also:
    • setDisableErrorHighlight

      public void setDisableErrorHighlight(boolean eh)
      See Also:
    • setDisableSyntaxSuggest

      public void setDisableSyntaxSuggest(boolean ss)
      See Also:
    • getTraceType

      public TraceType getTraceType()
      See Also:
    • setTraceType

      public void setTraceType(TraceType traceType)
      See Also:
    • setHasScriptArgv

      public void setHasScriptArgv(boolean argvRemains)
    • getHasScriptArgv

      public boolean getHasScriptArgv()
    • getBacktraceMask

      public boolean getBacktraceMask()
      Whether to mask .java lines in the Ruby backtrace, as MRI does for C calls.
      Returns:
      true if masking; false otherwise
      See Also:
    • setBacktraceMask

      public void setBacktraceMask(boolean backtraceMask)
      Set whether to mask .java lines in the Ruby backtrace.
      Parameters:
      backtraceMask - true to mask; false otherwise
      See Also:
    • setNativeEnabled

      public void setNativeEnabled(boolean b)
      Set whether native code is enabled for this config.
      Parameters:
      b - new value indicating whether native code is enabled
      See Also:
    • isNativeEnabled

      public boolean isNativeEnabled()
      Get whether native code is enabled for this config.
      Returns:
      true if native code is enabled; false otherwise.
      See Also:
    • setClassloaderDelegate

      public void setClassloaderDelegate(boolean b)
      Set whether to use the self-first jruby classloader.
      Parameters:
      b - new value indicating whether self-first classloader is used
      See Also:
    • isClassloaderDelegate

      public boolean isClassloaderDelegate()
      Get whether to use the self-first jruby classloader.
      Returns:
      true if self-first classloader is used; false otherwise.
      See Also:
    • setXFlag

      public void setXFlag(boolean xFlag)
      See Also:
    • isXFlag

      public boolean isXFlag()
      See Also:
    • getBacktraceColor

      public boolean getBacktraceColor()
      True if colorized backtraces are enabled. False otherwise.
      See Also:
    • setBacktraceColor

      public void setBacktraceColor(boolean backtraceColor)
      Set to true to enable colorized backtraces.
      See Also:
    • setJitBackground

      public void setJitBackground(boolean jitBackground)
      Set whether the JIT compiler should run in a background thread (Executor-based).
      Parameters:
      jitBackground - whether to run the JIT compiler in a background thread
      See Also:
    • getJitBackground

      public boolean getJitBackground()
      Get whether the JIT compiler will run in a background thread.
      Returns:
      whether the JIT compiler will run in a background thread
      See Also:
    • setLoadGemfile

      public void setLoadGemfile(boolean loadGemfile)
      Set whether to load and setup bundler on startup.
      See Also:
    • getLoadGemfile

      public boolean getLoadGemfile()
      Whether to load and setup bundler on startup.
      See Also:
    • setProfileMaxMethods

      public void setProfileMaxMethods(int profileMaxMethods)
      Set the maximum number of methods to consider when profiling.
      See Also:
    • getProfileMaxMethods

      public int getProfileMaxMethods()
      Get the maximum number of methods to consider when profiling.
      See Also:
    • setKernelGsubDefined

      public void setKernelGsubDefined(boolean setDefineKernelGsub)
      Set whether Kernel#gsub should be defined
    • getKernelGsubDefined

      public boolean getKernelGsubDefined()
      Get Kernel#gsub is defined or not
    • getAllowUppercasePackageNames

      public boolean getAllowUppercasePackageNames()
      get whether uppercase package names will be honored
    • setAllowUppercasePackageNames

      public void setAllowUppercasePackageNames(boolean allow)
      set whether uppercase package names will be honored
    • getProfilingService

      public String getProfilingService()
    • setProfilingService

      public void setProfilingService(String service)
    • isFrozenStringLiteral

      public Boolean isFrozenStringLiteral()
    • setFrozenStringLiteral

      public void setFrozenStringLiteral(boolean frozenStringLiteral)
    • isDebuggingFrozenStringLiteral

      public boolean isDebuggingFrozenStringLiteral()
    • setDebuggingFrozenStringLiteral

      public void setDebuggingFrozenStringLiteral(boolean debuggingFrozenStringLiteral)
    • isInterruptibleRegexps

      public boolean isInterruptibleRegexps()
    • defaultClassLoader

      public static ClassLoader defaultClassLoader()
    • getCurrentThreadClassLoader

      public ClassLoader getCurrentThreadClassLoader()
    • setSafeLevel

      @Deprecated public void setSafeLevel(int safeLevel)
      Deprecated.
    • getInPlaceBackupExtention

      @Deprecated public String getInPlaceBackupExtention()
      Deprecated.
    • getBasicUsageHelp

      @Deprecated public String getBasicUsageHelp()
      Deprecated.
    • getExtendedHelp

      @Deprecated public String getExtendedHelp()
      Deprecated.
    • getPropertyHelp

      @Deprecated public String getPropertyHelp()
      Deprecated.
    • getVersionString

      @Deprecated public String getVersionString()
      Deprecated.
    • getCopyrightString

      @Deprecated public String getCopyrightString()
      Deprecated.
    • requiredLibraries

      @Deprecated public Collection<String> requiredLibraries()
      Deprecated.
    • loadPaths

      @Deprecated public List<String> loadPaths()
      Deprecated.
    • shouldPrintUsage

      @Deprecated public boolean shouldPrintUsage()
      Deprecated.
    • shouldPrintProperties

      @Deprecated public boolean shouldPrintProperties()
      Deprecated.
    • getVerbose

      @Deprecated public Boolean getVerbose()
      Deprecated.
    • shouldRunInterpreter

      @Deprecated public boolean shouldRunInterpreter()
      Deprecated.
    • isShouldRunInterpreter

      @Deprecated public boolean isShouldRunInterpreter()
      Deprecated.
    • isxFlag

      @Deprecated public boolean isxFlag()
      Deprecated.
    • isSamplingEnabled

      @Deprecated public boolean isSamplingEnabled()
      Deprecated.
    • setBenchmarking

      @Deprecated public void setBenchmarking(boolean benchmarking)
      Deprecated.
    • isBenchmarking

      @Deprecated public boolean isBenchmarking()
      Deprecated.
    • setCextEnabled

      @Deprecated public void setCextEnabled(boolean b)
      Deprecated.
    • isCextEnabled

      @Deprecated public boolean isCextEnabled()
      Deprecated.
    • isJitDumping

      @Deprecated public boolean isJitDumping()
      Deprecated.
    • getThreadDumpSignal

      @Deprecated public String getThreadDumpSignal()
      Deprecated.
    • isGlobalRequireLock

      @Deprecated public boolean isGlobalRequireLock()
      Deprecated.
    • setGlobalRequireLock

      @Deprecated public void setGlobalRequireLock(boolean globalRequireLock)
      Deprecated.