public class RubyInstanceConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RubyInstanceConfig.CompileMode |
static interface |
RubyInstanceConfig.LoadServiceCreator |
static class |
RubyInstanceConfig.ProfilingMode |
static class |
RubyInstanceConfig.Verbosity |
Modifier and Type | Field and Description |
---|---|
static boolean |
CAN_SET_ACCESSIBLE |
static boolean |
CEXT_ENABLED
Deprecated.
|
static int |
CHAINED_COMPILE_LINE_COUNT
The number of lines at which a method, class, or block body is split into
chained methods (to dodge 64k method-size limit in JVM).
|
static int |
CHAINED_COMPILE_LINE_COUNT_DEFAULT
Deprecated.
|
static String |
COMPILE_EXCLUDE
Comma-separated list of methods to exclude from JIT compilation.
|
static boolean |
CONSISTENT_HASHING_ENABLED
Whether to calculate consistent hashes across JVM instances, or to ensure
un-predicatable hash values using SecureRandom.
|
static boolean |
COROUTINE_FIBERS |
static boolean |
DEBUG_LAUNCHING
Turn on debugging of subprocess launching.
|
static boolean |
DEBUG_LOAD_SERVICE
Turn on debugging of the load service (requires and loads).
|
static boolean |
DEBUG_LOAD_TIMINGS
Turn on timings of the load service (requires and loads).
|
static boolean |
DEBUG_PARSER |
static boolean |
DEBUG_SCRIPT_RESOLUTION
Turn on debugging of script resolution with "-S".
|
static boolean |
ERRNO_BACKTRACE |
static boolean |
FAST_MULTIPLE_ASSIGNMENT
Enable fast multiple assignment optimization.
|
static boolean |
FASTEST_COMPILE_ENABLED
Enable compiler "fastest" set of optimizations.
|
static boolean |
FASTOPS_COMPILE_ENABLED
Enable fast operator compiler optimizations.
|
static boolean |
FASTSEND_COMPILE_ENABLED
Enable "fast send" compiler optimizations.
|
static int |
FIBER_POOL_TTL
Fiber thread pool time-to-live in seconds.
|
static boolean |
FULL_TRACE_ENABLED
Enable tracing of method calls.
|
static boolean |
INTERFACES_USE_PROXY |
static boolean |
IR_COMPILER_DEBUG |
static String |
IR_COMPILER_PASSES |
static boolean |
IR_DEBUG |
static String |
IR_INLINE_COMPILER_PASSES |
static String |
IR_JIT_PASSES |
static boolean |
IR_PROFILE |
static boolean |
IR_READING |
static boolean |
IR_READING_DEBUG |
static boolean |
IR_UNBOXING |
static boolean |
IR_VISUALIZER |
static boolean |
IR_WRITING |
static boolean |
IR_WRITING_DEBUG |
static int |
JAVA_VERSION
The version to use for generated classes.
|
static boolean |
JIT_CACHE_ENABLED |
static String |
JIT_CODE_CACHE
Deprecated.
|
static boolean |
JIT_LOADING_DEBUG |
static int |
JIT_MAX_METHODS_LIMIT
Deprecated.
|
static int |
JIT_MAX_SIZE_LIMIT
Deprecated.
|
static int |
JIT_THRESHOLD
Deprecated.
|
static boolean |
JUMPS_HAVE_BACKTRACE |
static boolean |
LOG_BACKTRACES |
static boolean |
LOG_CALLERS |
static boolean |
LOG_EXCEPTIONS |
static boolean |
LOG_WARNINGS |
static boolean |
NATIVE_ENABLED
Indicates the global default for whether native code is enabled.
|
static boolean |
NATIVE_NET_PROTOCOL
Enable use of the native Java version of the 'net/protocol' library.
|
static boolean |
nativeEnabled
Deprecated.
|
static boolean |
NO_UNWRAP_PROCESS_STREAMS |
static boolean |
NOGUARDS_COMPILE_ENABLED
Enable compiler "noguards" optimizations.
|
static boolean |
PEEPHOLE_OPTZ
Enable compiler peephole optimizations.
|
static int |
POOL_MAX
Maximum thread pool size (integer, default Integer.MAX_VALUE).
|
static int |
POOL_MIN
Minimum thread pool size (integer, default 0).
|
static int |
POOL_TTL
Thread pool time-to-live in seconds.
|
static boolean |
POOLING_ENABLED
Enable a thread pool.
|
static boolean |
REFLECTED_HANDLES |
static boolean |
REIFY_LOG_ERRORS
Log errors that occur during reification.
|
static boolean |
REIFY_RUBY_CLASSES
Whether to reify (pre-compile and generate) a Java class per Ruby class.
|
static boolean |
STOPITERATION_BACKTRACE |
static boolean |
THREADLESS_COMPILE_ENABLED
Enable "threadless" compile.
|
static boolean |
USE_GENERATED_HANDLES
Whether to use a custom-generated handle for Java methods instead of
reflection.
|
Constructor and Description |
---|
RubyInstanceConfig() |
RubyInstanceConfig(InputStream in,
PrintStream out,
PrintStream err) |
RubyInstanceConfig(RubyInstanceConfig parentConfig) |
Modifier and Type | Method and Description |
---|---|
void |
addLoader(ClassLoader loader)
adds a given ClassLoader to jruby.
|
void |
addLoader(GetResources bundle)
adds a given "bundle" to jruby.
|
LoadService |
createLoadService(Ruby runtime) |
static ClassLoader |
defaultClassLoader() |
String |
displayedFileName() |
boolean |
getAllowUppercasePackageNames()
get whether uppercase package names will be honored
|
String[] |
getArgv() |
boolean |
getBacktraceColor()
True if colorized backtraces are enabled.
|
boolean |
getBacktraceMask()
Whether to mask .java lines in the Ruby backtrace, as MRI does for C calls.
|
String |
getBasicUsageHelp()
Deprecated.
|
CompatVersion |
getCompatVersion()
Deprecated.
|
RubyInstanceConfig.CompileMode |
getCompileMode() |
String |
getCopyrightString()
Deprecated.
|
String |
getCurrentDirectory() |
ClassLoader |
getCurrentThreadClassLoader() |
Map<String,String> |
getEnvironment() |
PrintStream |
getError() |
Set<String> |
getExcludedMethods() |
String |
getExtendedHelp()
Deprecated.
|
String |
getExternalEncoding() |
List<String> |
getExtraGemPaths() |
List<String> |
getExtraLoadPaths() |
boolean |
getHasScriptArgv() |
StringBuffer |
getInlineScript() |
String |
getInPlaceBackupExtension() |
String |
getInPlaceBackupExtention()
Deprecated.
|
InputStream |
getInput() |
String |
getInputFieldSeparator() |
String |
getInternalEncoding() |
boolean |
getIPv4Preferred()
get whether IPv4 is preferred
|
boolean |
getJitBackground()
Get whether the JIT compiler will run in a background thread.
|
int |
getJitLogEvery() |
int |
getJitMax() |
int |
getJitMaxSize() |
int |
getJitThreshold() |
String |
getJRubyHome() |
KCode |
getKCode() |
boolean |
getKernelGsubDefined()
Get Kernel#gsub is defined or not
|
ClassLoader |
getLoader() |
boolean |
getLoadGemfile()
Whether to load and setup bundler on startup.
|
List<String> |
getLoadPaths() |
RubyInstanceConfig.LoadServiceCreator |
getLoadServiceCreator() |
Map<String,String> |
getOptionGlobals() |
PrintStream |
getOutput() |
boolean |
getParserDebug() |
Profile |
getProfile() |
int |
getProfileMaxMethods()
Get the maximum number of methods to consider when profiling.
|
ProfileOutput |
getProfileOutput() |
RubyInstanceConfig.ProfilingMode |
getProfilingMode() |
String |
getProfilingService() |
String |
getPropertyHelp()
Deprecated.
|
String |
getRecordSeparator() |
Collection<String> |
getRequiredLibraries() |
int |
getSafeLevel() |
String |
getScriptFileName() |
InputStream |
getScriptSource() |
boolean |
getShouldCheckSyntax() |
boolean |
getShouldPrintProperties() |
boolean |
getShouldPrintUsage() |
boolean |
getShouldRunInterpreter() |
String |
getSourceEncoding() |
String |
getThreadDumpSignal() |
TraceType |
getTraceType() |
Boolean |
getVerbose()
Deprecated.
|
RubyInstanceConfig.Verbosity |
getVerbosity() |
String |
getVersionString()
Deprecated.
|
boolean |
hasInlineScript() |
static boolean |
hasLoadedNativeExtensions() |
boolean |
hasShebangLine() |
byte[] |
inlineScript() |
boolean |
isArgvGlobalsOn() |
boolean |
isAssumeLoop() |
boolean |
isAssumePrinting() |
boolean |
isBenchmarking()
Deprecated.
|
boolean |
isCextEnabled()
Deprecated.
|
boolean |
isClassloaderDelegate()
Get whether to use the self-first jruby classloader.
|
boolean |
isDebug() |
boolean |
isDisableGems() |
boolean |
isForceStdin()
True if we are only using source from stdin and not from a -e or file argument.
|
boolean |
isGlobalRequireLock()
Whether to use a single global lock for requires.
|
boolean |
isHardExit() |
boolean |
isInlineScript() |
boolean |
isJitDumping() |
boolean |
isJitLogging() |
boolean |
isJitLoggingVerbose() |
boolean |
isManagementEnabled() |
boolean |
isNativeEnabled()
Get whether native code is enabled for this config.
|
boolean |
isObjectSpaceEnabled() |
boolean |
isParserDebug() |
boolean |
isProcessLineEnds() |
boolean |
isProfiling() |
boolean |
isProfilingEntireRun() |
protected static boolean |
isRubyShebangLine(String line) |
boolean |
isRunRubyInProcess() |
boolean |
isSamplingEnabled()
Deprecated.
|
boolean |
isShouldRunInterpreter()
Deprecated.
|
boolean |
isShowBytecode() |
boolean |
isShowCopyright() |
boolean |
isShowVersion() |
boolean |
isSiphashEnabled() |
boolean |
isSplit() |
boolean |
isUpdateNativeENVEnabled()
Indicates whether the JVM process' native environment will be updated when ENV[...] is set from Ruby.
|
boolean |
isVerbose() |
boolean |
isxFlag()
Deprecated.
|
boolean |
isXFlag() |
List<String> |
loadPaths()
Deprecated.
|
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.
|
void |
processArguments(String[] arguments) |
Collection<String> |
requiredLibraries()
Deprecated.
|
void |
setAllowUppercasePackageNames(boolean allow)
set whether uppercase package names will be honored
|
void |
setArgv(String[] argv) |
void |
setArgvGlobalsOn(boolean argvGlobalsOn) |
void |
setAssumeLoop(boolean assumeLoop) |
void |
setAssumePrinting(boolean assumePrinting) |
void |
setBacktraceColor(boolean backtraceColor)
Set to true to enable colorized backtraces.
|
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 |
setCompatVersion(CompatVersion compatVersion)
Deprecated.
|
void |
setCompileMode(RubyInstanceConfig.CompileMode compileMode) |
void |
setCurrentDirectory(String newCurrentDirectory) |
void |
setDebug(boolean debug) |
void |
setDisableGems(boolean dg) |
void |
setDisableRUBYOPT(boolean dr) |
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 |
setGlobalRequireLock(boolean globalRequireLock)
Set whether to use a single global lock for requires.
|
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 |
setKCode(KCode kcode) |
void |
setKernelGsubDefined(boolean setDefineKernelGsub)
Set whether Kernel#gsub should be defined
|
static 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 |
setLoadServiceCreator(RubyInstanceConfig.LoadServiceCreator creator) |
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 |
shouldPrintProperties()
Deprecated.
|
boolean |
shouldPrintUsage()
Deprecated.
|
boolean |
shouldRunInterpreter()
Deprecated.
|
void |
tryProcessArgumentsWithRubyopts() |
public static final int JAVA_VERSION
public static final int CHAINED_COMPILE_LINE_COUNT
public static final boolean PEEPHOLE_OPTZ
public static boolean NOGUARDS_COMPILE_ENABLED
public static boolean FASTEST_COMPILE_ENABLED
public static boolean FASTOPS_COMPILE_ENABLED
public static boolean THREADLESS_COMPILE_ENABLED
public static boolean FASTSEND_COMPILE_ENABLED
public static boolean FAST_MULTIPLE_ASSIGNMENT
public static final boolean POOLING_ENABLED
public static final int POOL_MAX
public static final int POOL_MIN
public static final int POOL_TTL
public static final int FIBER_POOL_TTL
public static final boolean NATIVE_NET_PROTOCOL
public static boolean FULL_TRACE_ENABLED
public static final String COMPILE_EXCLUDE
public static final boolean NATIVE_ENABLED
@Deprecated public static final boolean CEXT_ENABLED
public static final boolean REIFY_RUBY_CLASSES
public static final boolean REIFY_LOG_ERRORS
public static final boolean USE_GENERATED_HANDLES
public static final boolean DEBUG_LOAD_SERVICE
public static final boolean DEBUG_LOAD_TIMINGS
public static final boolean DEBUG_LAUNCHING
public static final boolean DEBUG_SCRIPT_RESOLUTION
public static final boolean DEBUG_PARSER
public static final boolean JUMPS_HAVE_BACKTRACE
public static final boolean JIT_CACHE_ENABLED
public static final boolean REFLECTED_HANDLES
public static final boolean NO_UNWRAP_PROCESS_STREAMS
public static final boolean INTERFACES_USE_PROXY
public static final boolean JIT_LOADING_DEBUG
public static final boolean CAN_SET_ACCESSIBLE
public static final boolean LOG_EXCEPTIONS
public static final boolean LOG_BACKTRACES
public static final boolean LOG_CALLERS
public static final boolean LOG_WARNINGS
public static final boolean ERRNO_BACKTRACE
public static final boolean STOPITERATION_BACKTRACE
public static boolean IR_DEBUG
public static boolean IR_PROFILE
public static boolean IR_COMPILER_DEBUG
public static boolean IR_WRITING
public static boolean IR_READING
public static boolean IR_READING_DEBUG
public static boolean IR_WRITING_DEBUG
public static boolean IR_VISUALIZER
public static boolean IR_UNBOXING
public static String IR_COMPILER_PASSES
public static String IR_JIT_PASSES
public static String IR_INLINE_COMPILER_PASSES
public static final boolean COROUTINE_FIBERS
public static final boolean CONSISTENT_HASHING_ENABLED
@Deprecated public static final int JIT_MAX_METHODS_LIMIT
@Deprecated public static final int JIT_MAX_SIZE_LIMIT
@Deprecated public static final int JIT_THRESHOLD
@Deprecated public static final int CHAINED_COMPILE_LINE_COUNT_DEFAULT
@Deprecated public static final boolean nativeEnabled
@Deprecated public static final String JIT_CODE_CACHE
public RubyInstanceConfig()
public RubyInstanceConfig(RubyInstanceConfig parentConfig)
public RubyInstanceConfig(InputStream in, PrintStream out, PrintStream err)
public LoadService createLoadService(Ruby runtime)
public void processArguments(String[] arguments)
public void tryProcessArgumentsWithRubyopts()
public String[] parseShebangOptions(InputStream in)
protected static boolean isRubyShebangLine(String line)
public boolean isUpdateNativeENVEnabled()
public void setUpdateNativeENVEnabled(boolean updateNativeENVEnabled)
public byte[] inlineScript()
public InputStream getScriptSource()
public String displayedFileName()
public static boolean hasLoadedNativeExtensions()
public static void setLoadedNativeExtensions(boolean loadedNativeExtensions)
public RubyInstanceConfig.LoadServiceCreator getLoadServiceCreator()
public void setLoadServiceCreator(RubyInstanceConfig.LoadServiceCreator creator)
public String getJRubyHome()
public void setJRubyHome(String home)
public RubyInstanceConfig.CompileMode getCompileMode()
public void setCompileMode(RubyInstanceConfig.CompileMode compileMode)
public boolean isJitLogging()
Options.JIT_LOGGING
public boolean isJitDumping()
Options.JIT_DUMPING
public boolean isJitLoggingVerbose()
Options.JIT_LOGGING_VERBOSE
public int getJitLogEvery()
Options.JIT_LOGEVERY
public void setJitLogEvery(int jitLogEvery)
Options.JIT_LOGEVERY
public int getJitThreshold()
Options.JIT_THRESHOLD
public void setJitThreshold(int jitThreshold)
Options.JIT_THRESHOLD
public int getJitMax()
Options.JIT_MAX
public void setJitMax(int jitMax)
Options.JIT_MAX
public int getJitMaxSize()
Options.JIT_MAXSIZE
public void setJitMaxSize(int jitMaxSize)
Options.JIT_MAXSIZE
public boolean isRunRubyInProcess()
Options.LAUNCH_INPROC
public void setRunRubyInProcess(boolean flag)
Options.LAUNCH_INPROC
public void setInput(InputStream newInput)
public InputStream getInput()
@Deprecated public CompatVersion getCompatVersion()
@Deprecated public void setCompatVersion(CompatVersion compatVersion)
public void setOutput(PrintStream newOutput)
public PrintStream getOutput()
public void setError(PrintStream newError)
public PrintStream getError()
public void setCurrentDirectory(String newCurrentDirectory)
public String getCurrentDirectory()
public void setProfile(Profile newProfile)
public Profile getProfile()
public void setObjectSpaceEnabled(boolean newObjectSpaceEnabled)
Options.OBJECTSPACE_ENABLED
public boolean isObjectSpaceEnabled()
Options.OBJECTSPACE_ENABLED
public void setSiphashEnabled(boolean newSiphashEnabled)
Options.SIPHASH_ENABLED
public boolean isSiphashEnabled()
Options.SIPHASH_ENABLED
public ClassLoader getLoader()
public void setLoader(ClassLoader loader)
public void addLoader(ClassLoader loader)
jruby -S generate_dir_info {path/to/ruby/files}
loader
- public void addLoader(GetResources bundle)
bundle
- public String[] getArgv()
public void setArgv(String[] argv)
public StringBuffer getInlineScript()
public void setHasInlineScript(boolean hasInlineScript)
public boolean hasInlineScript()
public Collection<String> getRequiredLibraries()
public void setShouldPrintUsage(boolean shouldPrintUsage)
Options.CLI_HELP
public boolean getShouldPrintUsage()
Options.CLI_HELP
public void setShouldPrintProperties(boolean shouldPrintProperties)
Options.CLI_PROPERTIES
public boolean getShouldPrintProperties()
Options.CLI_PROPERTIES
public boolean isInlineScript()
public boolean isForceStdin()
public void setForceStdin(boolean forceStdin)
public void setScriptFileName(String scriptFileName)
public String getScriptFileName()
public void setAssumeLoop(boolean assumeLoop)
Options.CLI_ASSUME_LOOP
public boolean isAssumeLoop()
Options.CLI_ASSUME_LOOP
public void setAssumePrinting(boolean assumePrinting)
Options.CLI_ASSUME_PRINT
public boolean isAssumePrinting()
Options.CLI_ASSUME_PRINT
public void setProcessLineEnds(boolean processLineEnds)
Options.CLI_PROCESS_LINE_ENDS
public boolean isProcessLineEnds()
Options.CLI_PROCESS_LINE_ENDS
public void setSplit(boolean split)
Options.CLI_AUTOSPLIT
public boolean isSplit()
Options.CLI_AUTOSPLIT
public RubyInstanceConfig.Verbosity getVerbosity()
Options.CLI_WARNING_LEVEL
public void setVerbosity(RubyInstanceConfig.Verbosity verbosity)
Options.CLI_WARNING_LEVEL
public boolean isVerbose()
Options.CLI_VERBOSE
public boolean isDebug()
Options.CLI_DEBUG
public void setDebug(boolean debug)
Options.CLI_DEBUG
public boolean isParserDebug()
Options.CLI_PARSER_DEBUG
public void setParserDebug(boolean parserDebug)
Options.CLI_PARSER_DEBUG
public boolean getParserDebug()
Options.CLI_PARSER_DEBUG
public void setShowVersion(boolean showVersion)
Options.CLI_VERSION
public boolean isShowVersion()
Options.CLI_VERSION
public void setShowBytecode(boolean showBytecode)
Options.CLI_BYTECODE
public boolean isShowBytecode()
Options.CLI_BYTECODE
public void setShowCopyright(boolean showCopyright)
Options.CLI_COPYRIGHT
public boolean isShowCopyright()
Options.CLI_COPYRIGHT
public void setShouldRunInterpreter(boolean shouldRunInterpreter)
public boolean getShouldRunInterpreter()
public void setShouldCheckSyntax(boolean shouldSetSyntax)
Options.CLI_CHECK_SYNTAX
public boolean getShouldCheckSyntax()
Options.CLI_CHECK_SYNTAX
public void setInputFieldSeparator(String inputFieldSeparator)
Options.CLI_AUTOSPLIT_SEPARATOR
public String getInputFieldSeparator()
Options.CLI_AUTOSPLIT_SEPARATOR
public KCode getKCode()
Options.CLI_KCODE
public void setKCode(KCode kcode)
Options.CLI_KCODE
public void setInternalEncoding(String internalEncoding)
Options.CLI_ENCODING_INTERNAL
public String getInternalEncoding()
Options.CLI_ENCODING_INTERNAL
public void setExternalEncoding(String externalEncoding)
Options.CLI_ENCODING_EXTERNAL
public String getExternalEncoding()
Options.CLI_ENCODING_EXTERNAL
public void setSourceEncoding(String sourceEncoding)
Options.CLI_ENCODING_SOURCE
public String getSourceEncoding()
Options.CLI_ENCODING_SOURCE
public void setRecordSeparator(String recordSeparator)
Options.CLI_RECORD_SEPARATOR
public String getRecordSeparator()
Options.CLI_RECORD_SEPARATOR
public int getSafeLevel()
public void setInPlaceBackupExtension(String inPlaceBackupExtension)
Options.CLI_BACKUP_EXTENSION
public String getInPlaceBackupExtension()
Options.CLI_BACKUP_EXTENSION
public boolean isManagementEnabled()
public boolean isArgvGlobalsOn()
public void setArgvGlobalsOn(boolean argvGlobalsOn)
public String getThreadDumpSignal()
public boolean isHardExit()
public void setHardExit(boolean hardExit)
public boolean isProfiling()
Options.CLI_PROFILING_MODE
public boolean isProfilingEntireRun()
Options.CLI_PROFILING_MODE
public void setProfilingMode(RubyInstanceConfig.ProfilingMode profilingMode)
Options.CLI_PROFILING_MODE
public RubyInstanceConfig.ProfilingMode getProfilingMode()
Options.CLI_PROFILING_MODE
public void setProfileOutput(ProfileOutput output)
public ProfileOutput getProfileOutput()
public boolean hasShebangLine()
public void setHasShebangLine(boolean hasShebangLine)
public boolean isDisableGems()
Options.CLI_RUBYGEMS_ENABLE
public void setDisableRUBYOPT(boolean dr)
Options.CLI_RUBYOPT_ENABLE
public void setDisableGems(boolean dg)
Options.CLI_RUBYGEMS_ENABLE
public TraceType getTraceType()
Options.BACKTRACE_STYLE
public void setTraceType(TraceType traceType)
Options.BACKTRACE_STYLE
public void setHasScriptArgv(boolean argvRemains)
public boolean getHasScriptArgv()
public boolean getBacktraceMask()
Options.BACKTRACE_MASK
public void setBacktraceMask(boolean backtraceMask)
backtraceMask
- true to mask; false otherwiseOptions.BACKTRACE_MASK
public void setNativeEnabled(boolean b)
b
- new value indicating whether native code is enabledOptions.NATIVE_ENABLED
public boolean isNativeEnabled()
Options.NATIVE_ENABLED
public void setClassloaderDelegate(boolean b)
b
- new value indicating whether self-first classloader is usedOptions.CLASSLOADER_DELEGATE
public boolean isClassloaderDelegate()
Options.CLASSLOADER_DELEGATE
public void setXFlag(boolean xFlag)
Options.CLI_STRIP_HEADER
public boolean isXFlag()
Options.CLI_STRIP_HEADER
public boolean getBacktraceColor()
Options.BACKTRACE_COLOR
public void setBacktraceColor(boolean backtraceColor)
Options.BACKTRACE_COLOR
public boolean isGlobalRequireLock()
Options.GLOBAL_REQUIRE_LOCK
public void setGlobalRequireLock(boolean globalRequireLock)
Options.GLOBAL_REQUIRE_LOCK
public void setJitBackground(boolean jitBackground)
jitBackground
- whether to run the JIT compiler in a background threadOptions.JIT_BACKGROUND
public boolean getJitBackground()
Options.JIT_BACKGROUND
public void setLoadGemfile(boolean loadGemfile)
Options.CLI_LOAD_GEMFILE
public boolean getLoadGemfile()
Options.CLI_LOAD_GEMFILE
public void setProfileMaxMethods(int profileMaxMethods)
Options.PROFILE_MAX_METHODS
public int getProfileMaxMethods()
Options.PROFILE_MAX_METHODS
public void setKernelGsubDefined(boolean setDefineKernelGsub)
public boolean getKernelGsubDefined()
public boolean getIPv4Preferred()
Options.PREFER_IPV4
public boolean getAllowUppercasePackageNames()
public void setAllowUppercasePackageNames(boolean allow)
public String getProfilingService()
public void setProfilingService(String service)
public static ClassLoader defaultClassLoader()
public ClassLoader getCurrentThreadClassLoader()
@Deprecated public void setSafeLevel(int safeLevel)
@Deprecated public String getInPlaceBackupExtention()
@Deprecated public String getBasicUsageHelp()
@Deprecated public String getExtendedHelp()
@Deprecated public String getPropertyHelp()
@Deprecated public String getVersionString()
@Deprecated public String getCopyrightString()
@Deprecated public Collection<String> requiredLibraries()
@Deprecated public List<String> loadPaths()
@Deprecated public boolean shouldPrintUsage()
@Deprecated public boolean shouldPrintProperties()
@Deprecated public Boolean getVerbose()
@Deprecated public boolean shouldRunInterpreter()
@Deprecated public boolean isShouldRunInterpreter()
@Deprecated public boolean isxFlag()
@Deprecated public boolean isSamplingEnabled()
@Deprecated public void setBenchmarking(boolean benchmarking)
@Deprecated public boolean isBenchmarking()
@Deprecated public void setCextEnabled(boolean b)
@Deprecated public boolean isCextEnabled()
Copyright © 2001-2015 JRuby. All Rights Reserved.