Package org.jruby
Class RubyInstanceConfig
java.lang.Object
org.jruby.RubyInstanceConfig
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static interface
static enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
Deprecated.static final boolean
Deprecated.static final int
Deprecated.static final int
Deprecated.static final String
Comma-separated list of methods to exclude from JIT compilation.static final boolean
Whether to calculate consistent hashes across JVM instances, or to ensure un-predicatable hash values using SecureRandom.static final boolean
Deprecated.static final boolean
Turn on debugging of subprocess launching.static final boolean
Turn on debugging of the load service (requires and loads).static final boolean
Turn on timings of the load service (requires and loads).static final boolean
static final boolean
Turn on debugging of script resolution with "-S".static final boolean
static boolean
Deprecated.static final boolean
Deprecated.static final boolean
Deprecated.static boolean
Deprecated.static final int
Fiber thread pool time-to-live in seconds.static boolean
Enable tracing of method calls.static final boolean
static boolean
static final String
static boolean
static final String
static final boolean
static String
static final String
static String
static final boolean
static final boolean
static final boolean
static final boolean
static final boolean
static final boolean
static final boolean
static final int
The version to use for generated classes.static final boolean
Deprecated.static final String
Deprecated.static final boolean
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final boolean
static final boolean
static final boolean
static final boolean
static final boolean
static final boolean
Indicates the global default for whether native code is enabled.static final boolean
Deprecated.static final boolean
Deprecated.static final boolean
static boolean
Deprecated.static final boolean
Deprecated.static final int
Maximum thread pool size (integer, default Integer.MAX_VALUE).static final int
Minimum thread pool size (integer, default 0).static final int
Thread pool time-to-live in seconds.static final boolean
Enable a thread pool.static boolean
static final boolean
Deprecated.static final boolean
Log errors that occur during reification.static final boolean
Whether to reify (pre-compile and generate) a Java class per Ruby class.static final boolean
static final boolean
static boolean
Deprecated.static final boolean
Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionRubyInstanceConfig
(boolean isSecurityRestricted) RubyInstanceConfig
(InputStream in, PrintStream out, PrintStream err) RubyInstanceConfig
(RubyInstanceConfig parentConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLoader
(ClassLoader loader) adds a given ClassLoader to jruby.void
adds a given "bundle" to jruby.createLoadService
(Ruby runtime) static ClassLoader
boolean
get whether uppercase package names will be honoredString[]
getArgv()
boolean
True if colorized backtraces are enabled.boolean
Whether to mask .java lines in the Ruby backtrace, as MRI does for C calls.Deprecated.Deprecated.getError()
Deprecated.boolean
Deprecated.getInput()
boolean
Get whether the JIT compiler will run in a background thread.int
int
int
int
getKCode()
boolean
Get Kernel#gsub is defined or notboolean
Whether to load and setup bundler on startup.boolean
int
Get the maximum number of methods to consider when profiling.Deprecated.int
boolean
boolean
boolean
boolean
Deprecated.Deprecated.Deprecated.Get the set of enabled warning categories.boolean
static boolean
boolean
byte[]
boolean
boolean
boolean
boolean
Deprecated.boolean
Deprecated.boolean
Get whether to use the self-first jruby classloader.boolean
isDebug()
boolean
boolean
boolean
boolean
boolean
boolean
True if we are only using source from stdin and not from a -e or file argument.boolean
Deprecated.boolean
boolean
boolean
boolean
Deprecated.boolean
boolean
boolean
boolean
boolean
Get whether native code is enabled for this config.boolean
boolean
boolean
boolean
boolean
protected static boolean
isRubyShebangLine
(String line) boolean
boolean
Deprecated.boolean
Deprecated.boolean
boolean
boolean
boolean
boolean
isSplit()
boolean
Indicates whether the JVM process' native environment will be updated when ENV[...] is set from Ruby.boolean
boolean
isxFlag()
Deprecated.boolean
isXFlag()
Deprecated.String[]
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.void
processArguments
(String[] arguments) void
Deprecated.void
setAllowUppercasePackageNames
(boolean allow) set whether uppercase package names will be honoredvoid
void
setArgvGlobalsOn
(boolean argvGlobalsOn) void
setAssumeLoop
(boolean assumeLoop) void
setAssumePrinting
(boolean assumePrinting) void
setBacktraceColor
(boolean backtraceColor) Set to true to enable colorized backtraces.void
setBacktraceLimit
(Integer limit) void
setBacktraceMask
(boolean backtraceMask) Set whether to mask .java lines in the Ruby backtrace.void
setBenchmarking
(boolean benchmarking) Deprecated.void
setCextEnabled
(boolean b) Deprecated.void
setClassloaderDelegate
(boolean b) Set whether to use the self-first jruby classloader.void
setCompileMode
(RubyInstanceConfig.CompileMode compileMode) void
setCurrentDirectory
(String newCurrentDirectory) void
setDebug
(boolean debug) void
setDebuggingFrozenStringLiteral
(boolean debuggingFrozenStringLiteral) void
setDisableDidYouMean
(boolean ddym) void
setDisableErrorHighlight
(boolean eh) void
setDisableGems
(boolean dg) void
setDisableRUBYOPT
(boolean dr) void
setDisableSyntaxSuggest
(boolean ss) void
setEnvironment
(Map<String, String> newEnvironment) void
setError
(PrintStream newError) void
setExternalEncoding
(String externalEncoding) void
setForceStdin
(boolean forceStdin) Set whether we should only look at stdin for source.void
setFrozenStringLiteral
(boolean frozenStringLiteral) void
setGlobalRequireLock
(boolean globalRequireLock) Deprecated.void
setHardExit
(boolean hardExit) void
setHasInlineScript
(boolean hasInlineScript) void
setHasScriptArgv
(boolean argvRemains) void
setHasShebangLine
(boolean hasShebangLine) void
setInPlaceBackupExtension
(String inPlaceBackupExtension) void
setInput
(InputStream newInput) void
setInputFieldSeparator
(String inputFieldSeparator) void
setInternalEncoding
(String internalEncoding) void
setJitBackground
(boolean jitBackground) Set whether the JIT compiler should run in a background thread (Executor-based).void
setJitLogEvery
(int jitLogEvery) void
setJitMax
(int jitMax) void
setJitMaxSize
(int jitMaxSize) void
setJitThreshold
(int jitThreshold) void
setJRubyHome
(String home) void
void
setKernelGsubDefined
(boolean setDefineKernelGsub) Set whether Kernel#gsub should be definedstatic void
setLoadedNativeExtensions
(boolean loadedNativeExtensions) void
setLoader
(ClassLoader loader) void
setLoadGemfile
(boolean loadGemfile) Set whether to load and setup bundler on startup.void
setLoadPaths
(List<String> loadPaths) void
void
setNativeEnabled
(boolean b) Set whether native code is enabled for this config.void
setObjectSpaceEnabled
(boolean newObjectSpaceEnabled) void
setOutput
(PrintStream newOutput) void
setParserDebug
(boolean parserDebug) void
setProcessLineEnds
(boolean processLineEnds) void
setProfile
(Profile newProfile) void
setProfileMaxMethods
(int profileMaxMethods) Set the maximum number of methods to consider when profiling.void
setProfileOutput
(ProfileOutput output) void
setProfilingMode
(RubyInstanceConfig.ProfilingMode profilingMode) void
setProfilingService
(String service) void
setRecordSeparator
(String recordSeparator) void
setRunRubyInProcess
(boolean flag) void
setSafeLevel
(int safeLevel) Deprecated.void
setScriptFileName
(String scriptFileName) void
setShouldCheckSyntax
(boolean shouldSetSyntax) void
setShouldPrintProperties
(boolean shouldPrintProperties) void
setShouldPrintUsage
(boolean shouldPrintUsage) void
setShouldRunInterpreter
(boolean shouldRunInterpreter) void
setShowBytecode
(boolean showBytecode) void
setShowCopyright
(boolean showCopyright) void
setShowVersion
(boolean showVersion) void
setSiphashEnabled
(boolean newSiphashEnabled) void
setSourceEncoding
(String sourceEncoding) void
setSplit
(boolean split) void
setTraceType
(TraceType traceType) void
setUpdateNativeENVEnabled
(boolean updateNativeENVEnabled) Ensure that the JVM process' native environment will be updated when ENV is modified .void
setVerbosity
(RubyInstanceConfig.Verbosity verbosity) void
setXFlag
(boolean xFlag) boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.void
-
Field Details
-
JAVA_VERSION
public static final int JAVA_VERSIONThe version to use for generated classes. Set to current JVM version by default -
POOLING_ENABLED
public static final boolean POOLING_ENABLEDEnable a thread pool. Each Ruby thread will be mapped onto a thread from this pool. Set with thejruby.thread.pool.enabled
system property.- See Also:
-
POOL_MAX
public static final int POOL_MAXMaximum thread pool size (integer, default Integer.MAX_VALUE). Set with thejruby.thread.pool.max
system property. -
POOL_MIN
public static final int POOL_MINMinimum thread pool size (integer, default 0). Set with thejruby.thread.pool.min
system property. -
POOL_TTL
public static final int POOL_TTLThread pool time-to-live in seconds. Set with thejruby.thread.pool.max
system property. -
FIBER_POOL_TTL
public static final int FIBER_POOL_TTLFiber thread pool time-to-live in seconds. Set with thejruby.fiber.thread.pool.max
system property. -
FULL_TRACE_ENABLED
public static boolean FULL_TRACE_ENABLEDEnable tracing of method calls. Set with thejruby.debug.fullTrace
system property. -
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 thejruby.jit.exclude
system property. -
NATIVE_ENABLED
public static final boolean NATIVE_ENABLEDIndicates the global default for whether native code is enabled. Default is true. This value is used to default new runtime configurations. Set with thejruby.native.enabled
system property. -
CEXT_ENABLED
Deprecated.- See Also:
-
REIFY_RUBY_CLASSES
public static final boolean REIFY_RUBY_CLASSESWhether to reify (pre-compile and generate) a Java class per Ruby class. Set with thejruby.reify.classes
system property. -
REIFY_LOG_ERRORS
public static final boolean REIFY_LOG_ERRORSLog errors that occur during reification. Set with thejruby.reify.logErrors
system property. -
DEBUG_LOAD_SERVICE
public static final boolean DEBUG_LOAD_SERVICETurn on debugging of the load service (requires and loads). Set with thejruby.debug.loadService
system property. -
DEBUG_LOAD_TIMINGS
public static final boolean DEBUG_LOAD_TIMINGSTurn on timings of the load service (requires and loads). Set with thejruby.debug.loadService.timing
system property. -
DEBUG_LAUNCHING
public static final boolean DEBUG_LAUNCHINGTurn on debugging of subprocess launching. Set with thejruby.debug.launch
system property. -
DEBUG_SCRIPT_RESOLUTION
public static final boolean DEBUG_SCRIPT_RESOLUTIONTurn on debugging of script resolution with "-S". Set with thejruby.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
-
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
-
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
-
IR_JIT_PASSES
-
IR_INLINE_COMPILER_PASSES
-
RECORD_LEXICAL_HIERARCHY
public static boolean RECORD_LEXICAL_HIERARCHY -
CONSISTENT_HASHING_ENABLED
public static final boolean CONSISTENT_HASHING_ENABLEDWhether to calculate consistent hashes across JVM instances, or to ensure un-predicatable hash values using SecureRandom. Set with thejruby.consistent.hashing.enabled
system property. -
JIT_MAX_METHODS_LIMIT
Deprecated.The max count of active methods eligible for JIT-compilation.- See Also:
-
JIT_MAX_SIZE_LIMIT
Deprecated.The max size of JIT-compiled methods (full class size) allowed.- See Also:
-
JIT_THRESHOLD
Deprecated.The JIT threshold to the specified method invocation count.- See Also:
-
CHAINED_COMPILE_LINE_COUNT_DEFAULT
Deprecated.Default size for chained compilation.- See Also:
-
nativeEnabled
Deprecated. -
JIT_CODE_CACHE
Deprecated.- See Also:
-
NATIVE_NET_PROTOCOL
Deprecated. -
CAN_SET_ACCESSIBLE
Deprecated. -
THREADLESS_COMPILE_ENABLED
Deprecated. -
CHAINED_COMPILE_LINE_COUNT
Deprecated.- See Also:
-
PEEPHOLE_OPTZ
Deprecated.- See Also:
-
NOGUARDS_COMPILE_ENABLED
Deprecated. -
FASTEST_COMPILE_ENABLED
Deprecated.- See Also:
-
FASTSEND_COMPILE_ENABLED
Deprecated. -
FAST_MULTIPLE_ASSIGNMENT
Deprecated. -
JIT_LOADING_DEBUG
Deprecated.- See Also:
-
JIT_CACHE_ENABLED
Deprecated.- See Also:
-
REFLECTED_HANDLES
Deprecated.- See Also:
-
COROUTINE_FIBERS
Deprecated.- See Also:
-
USE_GENERATED_HANDLES
Deprecated.- See Also:
-
FASTOPS_COMPILE_ENABLED
Deprecated.
-
-
Constructor Details
-
RubyInstanceConfig
public RubyInstanceConfig() -
RubyInstanceConfig
public RubyInstanceConfig(boolean isSecurityRestricted) -
RubyInstanceConfig
-
RubyInstanceConfig
-
-
Method Details
-
createLoadService
-
processArguments
-
tryProcessArgumentsWithRubyopts
public void tryProcessArgumentsWithRubyopts() -
processArgumentsWithRubyopts
public void processArgumentsWithRubyopts() -
parseShebangOptions
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
-
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
-
displayedFileName
-
hasLoadedNativeExtensions
public static boolean hasLoadedNativeExtensions() -
setLoadedNativeExtensions
public static void setLoadedNativeExtensions(boolean loadedNativeExtensions) -
getLoadServiceCreator
-
setLoadServiceCreator
-
getJRubyHome
-
setJRubyHome
-
getCompileMode
-
setCompileMode
-
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
-
getInput
-
setOutput
-
getOutput
-
setError
-
getError
-
setCurrentDirectory
-
getCurrentDirectory
-
setProfile
-
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
-
getEnvironment
-
getLoader
-
setLoader
-
getExtraLoadPaths
-
getExtraGemPaths
-
getExtraLoaders
-
addLoader
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 byjruby -S generate_dir_info {path/to/ruby/files}
- Parameters:
loader
-
-
addLoader
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
-
setArgv
-
getInlineScript
-
setHasInlineScript
public void setHasInlineScript(boolean hasInlineScript) -
hasInlineScript
public boolean hasInlineScript() -
getRequiredLibraries
-
getLoadPaths
-
setLoadPaths
-
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
-
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
- See Also:
-
setVerbosity
- See Also:
-
setBacktraceLimit
-
getBacktraceLimit
-
isVerbose
public boolean isVerbose()- See Also:
-
isDebug
public boolean isDebug()- See Also:
-
setDebug
public void setDebug(boolean debug) - See Also:
-
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
- See Also:
-
getInputFieldSeparator
- See Also:
-
getKCode
- See Also:
-
setKCode
- See Also:
-
setInternalEncoding
- See Also:
-
getInternalEncoding
- See Also:
-
setExternalEncoding
- See Also:
-
getExternalEncoding
- See Also:
-
setSourceEncoding
- See Also:
-
getSourceEncoding
- See Also:
-
setRecordSeparator
- See Also:
-
getRecordSeparator
- See Also:
-
getSafeLevel
public int getSafeLevel() -
setInPlaceBackupExtension
- See Also:
-
getInPlaceBackupExtension
- See Also:
-
getOptionGlobals
-
isManagementEnabled
public boolean isManagementEnabled() -
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
- See Also:
-
getProfilingMode
- See Also:
-
setProfileOutput
-
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
- See Also:
-
setTraceType
- 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
-
setProfilingService
-
isFrozenStringLiteral
-
setFrozenStringLiteral
public void setFrozenStringLiteral(boolean frozenStringLiteral) -
isDebuggingFrozenStringLiteral
public boolean isDebuggingFrozenStringLiteral() -
setDebuggingFrozenStringLiteral
public void setDebuggingFrozenStringLiteral(boolean debuggingFrozenStringLiteral) -
isInterruptibleRegexps
public boolean isInterruptibleRegexps() -
defaultClassLoader
-
getCurrentThreadClassLoader
-
setSafeLevel
Deprecated. -
getInPlaceBackupExtention
Deprecated. -
getBasicUsageHelp
Deprecated. -
getExtendedHelp
Deprecated. -
getPropertyHelp
Deprecated. -
getVersionString
Deprecated. -
getCopyrightString
Deprecated. -
requiredLibraries
Deprecated. -
loadPaths
Deprecated. -
shouldPrintUsage
Deprecated. -
shouldPrintProperties
Deprecated. -
getVerbose
Deprecated. -
shouldRunInterpreter
Deprecated. -
isShouldRunInterpreter
Deprecated. -
isxFlag
Deprecated. -
isSamplingEnabled
Deprecated. -
setBenchmarking
Deprecated. -
isBenchmarking
Deprecated. -
setCextEnabled
Deprecated. -
isCextEnabled
Deprecated. -
isJitDumping
Deprecated. -
getThreadDumpSignal
Deprecated. -
isGlobalRequireLock
Deprecated. -
setGlobalRequireLock
Deprecated.
-