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_LOGGINGpublic boolean isJitDumping()
Options.JIT_DUMPINGpublic boolean isJitLoggingVerbose()
Options.JIT_LOGGING_VERBOSEpublic int getJitLogEvery()
Options.JIT_LOGEVERYpublic void setJitLogEvery(int jitLogEvery)
Options.JIT_LOGEVERYpublic int getJitThreshold()
Options.JIT_THRESHOLDpublic void setJitThreshold(int jitThreshold)
Options.JIT_THRESHOLDpublic int getJitMax()
Options.JIT_MAXpublic void setJitMax(int jitMax)
Options.JIT_MAXpublic int getJitMaxSize()
Options.JIT_MAXSIZEpublic void setJitMaxSize(int jitMaxSize)
Options.JIT_MAXSIZEpublic boolean isRunRubyInProcess()
Options.LAUNCH_INPROCpublic void setRunRubyInProcess(boolean flag)
Options.LAUNCH_INPROCpublic 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_ENABLEDpublic boolean isObjectSpaceEnabled()
Options.OBJECTSPACE_ENABLEDpublic void setSiphashEnabled(boolean newSiphashEnabled)
Options.SIPHASH_ENABLEDpublic boolean isSiphashEnabled()
Options.SIPHASH_ENABLEDpublic 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_HELPpublic boolean getShouldPrintUsage()
Options.CLI_HELPpublic void setShouldPrintProperties(boolean shouldPrintProperties)
Options.CLI_PROPERTIESpublic boolean getShouldPrintProperties()
Options.CLI_PROPERTIESpublic 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_LOOPpublic boolean isAssumeLoop()
Options.CLI_ASSUME_LOOPpublic void setAssumePrinting(boolean assumePrinting)
Options.CLI_ASSUME_PRINTpublic boolean isAssumePrinting()
Options.CLI_ASSUME_PRINTpublic void setProcessLineEnds(boolean processLineEnds)
Options.CLI_PROCESS_LINE_ENDSpublic boolean isProcessLineEnds()
Options.CLI_PROCESS_LINE_ENDSpublic void setSplit(boolean split)
Options.CLI_AUTOSPLITpublic boolean isSplit()
Options.CLI_AUTOSPLITpublic RubyInstanceConfig.Verbosity getVerbosity()
Options.CLI_WARNING_LEVELpublic void setVerbosity(RubyInstanceConfig.Verbosity verbosity)
Options.CLI_WARNING_LEVELpublic boolean isVerbose()
Options.CLI_VERBOSEpublic boolean isDebug()
Options.CLI_DEBUGpublic void setDebug(boolean debug)
Options.CLI_DEBUGpublic boolean isParserDebug()
Options.CLI_PARSER_DEBUGpublic void setParserDebug(boolean parserDebug)
Options.CLI_PARSER_DEBUGpublic boolean getParserDebug()
Options.CLI_PARSER_DEBUGpublic void setShowVersion(boolean showVersion)
Options.CLI_VERSIONpublic boolean isShowVersion()
Options.CLI_VERSIONpublic void setShowBytecode(boolean showBytecode)
Options.CLI_BYTECODEpublic boolean isShowBytecode()
Options.CLI_BYTECODEpublic void setShowCopyright(boolean showCopyright)
Options.CLI_COPYRIGHTpublic boolean isShowCopyright()
Options.CLI_COPYRIGHTpublic void setShouldRunInterpreter(boolean shouldRunInterpreter)
public boolean getShouldRunInterpreter()
public void setShouldCheckSyntax(boolean shouldSetSyntax)
Options.CLI_CHECK_SYNTAXpublic boolean getShouldCheckSyntax()
Options.CLI_CHECK_SYNTAXpublic void setInputFieldSeparator(String inputFieldSeparator)
Options.CLI_AUTOSPLIT_SEPARATORpublic String getInputFieldSeparator()
Options.CLI_AUTOSPLIT_SEPARATORpublic KCode getKCode()
Options.CLI_KCODEpublic void setKCode(KCode kcode)
Options.CLI_KCODEpublic void setInternalEncoding(String internalEncoding)
Options.CLI_ENCODING_INTERNALpublic String getInternalEncoding()
Options.CLI_ENCODING_INTERNALpublic void setExternalEncoding(String externalEncoding)
Options.CLI_ENCODING_EXTERNALpublic String getExternalEncoding()
Options.CLI_ENCODING_EXTERNALpublic void setSourceEncoding(String sourceEncoding)
Options.CLI_ENCODING_SOURCEpublic String getSourceEncoding()
Options.CLI_ENCODING_SOURCEpublic void setRecordSeparator(String recordSeparator)
Options.CLI_RECORD_SEPARATORpublic String getRecordSeparator()
Options.CLI_RECORD_SEPARATORpublic int getSafeLevel()
public void setInPlaceBackupExtension(String inPlaceBackupExtension)
Options.CLI_BACKUP_EXTENSIONpublic String getInPlaceBackupExtension()
Options.CLI_BACKUP_EXTENSIONpublic 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_MODEpublic boolean isProfilingEntireRun()
Options.CLI_PROFILING_MODEpublic void setProfilingMode(RubyInstanceConfig.ProfilingMode profilingMode)
Options.CLI_PROFILING_MODEpublic RubyInstanceConfig.ProfilingMode getProfilingMode()
Options.CLI_PROFILING_MODEpublic void setProfileOutput(ProfileOutput output)
public ProfileOutput getProfileOutput()
public boolean hasShebangLine()
public void setHasShebangLine(boolean hasShebangLine)
public boolean isDisableGems()
Options.CLI_RUBYGEMS_ENABLEpublic void setDisableRUBYOPT(boolean dr)
Options.CLI_RUBYOPT_ENABLEpublic void setDisableGems(boolean dg)
Options.CLI_RUBYGEMS_ENABLEpublic TraceType getTraceType()
Options.BACKTRACE_STYLEpublic void setTraceType(TraceType traceType)
Options.BACKTRACE_STYLEpublic void setHasScriptArgv(boolean argvRemains)
public boolean getHasScriptArgv()
public boolean getBacktraceMask()
Options.BACKTRACE_MASKpublic void setBacktraceMask(boolean backtraceMask)
backtraceMask - true to mask; false otherwiseOptions.BACKTRACE_MASKpublic void setNativeEnabled(boolean b)
b - new value indicating whether native code is enabledOptions.NATIVE_ENABLEDpublic boolean isNativeEnabled()
Options.NATIVE_ENABLEDpublic void setClassloaderDelegate(boolean b)
b - new value indicating whether self-first classloader is usedOptions.CLASSLOADER_DELEGATEpublic boolean isClassloaderDelegate()
Options.CLASSLOADER_DELEGATEpublic void setXFlag(boolean xFlag)
Options.CLI_STRIP_HEADERpublic boolean isXFlag()
Options.CLI_STRIP_HEADERpublic boolean getBacktraceColor()
Options.BACKTRACE_COLORpublic void setBacktraceColor(boolean backtraceColor)
Options.BACKTRACE_COLORpublic boolean isGlobalRequireLock()
Options.GLOBAL_REQUIRE_LOCKpublic void setGlobalRequireLock(boolean globalRequireLock)
Options.GLOBAL_REQUIRE_LOCKpublic void setJitBackground(boolean jitBackground)
jitBackground - whether to run the JIT compiler in a background threadOptions.JIT_BACKGROUNDpublic boolean getJitBackground()
Options.JIT_BACKGROUNDpublic void setLoadGemfile(boolean loadGemfile)
Options.CLI_LOAD_GEMFILEpublic boolean getLoadGemfile()
Options.CLI_LOAD_GEMFILEpublic void setProfileMaxMethods(int profileMaxMethods)
Options.PROFILE_MAX_METHODSpublic int getProfileMaxMethods()
Options.PROFILE_MAX_METHODSpublic void setKernelGsubDefined(boolean setDefineKernelGsub)
public boolean getKernelGsubDefined()
public boolean getIPv4Preferred()
Options.PREFER_IPV4public 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-2016 JRuby. All Rights Reserved.