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
Indicates the global default for whether C extensions are enabled.
|
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 boolean |
FULL_TRACE_ENABLED
Enable tracing of method calls.
|
static boolean |
INTERFACES_USE_PROXY |
static boolean |
INVOKEDYNAMIC_ALL |
static boolean |
INVOKEDYNAMIC_ATTR |
static boolean |
INVOKEDYNAMIC_CACHE |
static boolean |
INVOKEDYNAMIC_CONSTANTS |
static boolean |
INVOKEDYNAMIC_FASTOPS |
static boolean |
INVOKEDYNAMIC_INDIRECT |
static boolean |
INVOKEDYNAMIC_INVOCATION |
static boolean |
INVOKEDYNAMIC_INVOCATION_SWITCHPOINT |
static boolean |
INVOKEDYNAMIC_IVARS |
static boolean |
INVOKEDYNAMIC_JAVA |
static boolean |
INVOKEDYNAMIC_LITERALS |
static boolean |
INVOKEDYNAMIC_SAFE |
static boolean |
IR_COMPILER_DEBUG |
static String |
IR_COMPILER_PASSES |
static boolean |
IR_DEBUG |
static String |
IR_INLINE_COMPILER_PASSES |
static boolean |
IR_PROFILE |
static boolean |
IR_VISUALIZER |
static int |
JAVA_VERSION
The version to use for generated classes.
|
static boolean |
JIT_CACHE_ENABLED |
static String |
JIT_CODE_CACHE |
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 |
LAZYHANDLES_COMPILE
Enable lazy handles optimizations.
|
static boolean |
LOG_BACKTRACES |
static boolean |
LOG_CALLERS |
static boolean |
LOG_EXCEPTIONS |
static boolean |
LOG_INDY_BINDINGS |
static boolean |
LOG_INDY_CONSTANTS |
static boolean |
LOG_WARNINGS |
static int |
MAX_FAIL_COUNT |
static int |
MAX_POLY_COUNT |
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 int |
TIMEOUT_POOL_MAX
Maximum timeout thread pool size (integer, default # of cores).
|
static boolean |
UPPER_CASE_PACKAGE_NAME_ALLOWED
Deprecated.
|
static boolean |
USE_GENERATED_HANDLES
Whether to use a custom-generated handle for Java methods instead of
reflection.
|
static boolean |
USE_INVOKEDYNAMIC |
| Constructor and Description |
|---|
RubyInstanceConfig() |
RubyInstanceConfig(InputStream in,
PrintStream out,
PrintStream err) |
RubyInstanceConfig(RubyInstanceConfig parentConfig) |
| Modifier and Type | Method and Description |
|---|---|
LoadService |
createLoadService(Ruby runtime) |
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.
|
ClassCache |
getClassCache() |
CompatVersion |
getCompatVersion() |
RubyInstanceConfig.CompileMode |
getCompileMode() |
String |
getCopyrightString()
Deprecated.
|
String |
getCurrentDirectory() |
Map |
getEnvironment() |
PrintStream |
getError() |
Set |
getExcludedMethods() |
String |
getExtendedHelp()
Deprecated.
|
String |
getExternalEncoding() |
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 |
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 |
getPropertyHelp()
Deprecated.
|
String |
getRecordSeparator() |
Collection<String> |
getRequiredLibraries() |
int |
getSafeLevel() |
String |
getScriptFileName() |
InputStream |
getScriptSource() |
boolean |
getShouldCheckSyntax() |
boolean |
getShouldPrintProperties() |
boolean |
getShouldPrintUsage() |
boolean |
getShouldRunInterpreter() |
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()
Get whether C extensions are enabled for this config.
|
boolean |
isDebug() |
boolean |
isDisableGems() |
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.
|
ASTCompiler |
newCompiler() |
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)
Set whether C extensions are enabled for this config.
|
void |
setClassCache(ClassCache classCache) |
void |
setCompatVersion(CompatVersion compatVersion) |
void |
setCompileMode(RubyInstanceConfig.CompileMode compileMode) |
void |
setCurrentDirectory(String newCurrentDirectory) |
void |
setDebug(boolean debug) |
void |
setDisableGems(boolean dg) |
void |
setEnvironment(Map newEnvironment) |
void |
setError(PrintStream newError) |
void |
setExternalEncoding(String externalEncoding) |
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 |
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 |
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 LAZYHANDLES_COMPILE
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 TIMEOUT_POOL_MAX
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
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 String JIT_CODE_CACHE
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
@Deprecated public static final boolean UPPER_CASE_PACKAGE_NAME_ALLOWED
public static final boolean USE_INVOKEDYNAMIC
public static final int MAX_FAIL_COUNT
public static final int MAX_POLY_COUNT
public static final boolean LOG_INDY_BINDINGS
public static final boolean LOG_INDY_CONSTANTS
public static final boolean INVOKEDYNAMIC_ALL
public static final boolean INVOKEDYNAMIC_SAFE
public static final boolean INVOKEDYNAMIC_INVOCATION
public static final boolean INVOKEDYNAMIC_INVOCATION_SWITCHPOINT
public static final boolean INVOKEDYNAMIC_INDIRECT
public static final boolean INVOKEDYNAMIC_JAVA
public static final boolean INVOKEDYNAMIC_ATTR
public static final boolean INVOKEDYNAMIC_FASTOPS
public static final boolean INVOKEDYNAMIC_CACHE
public static final boolean INVOKEDYNAMIC_CONSTANTS
public static final boolean INVOKEDYNAMIC_LITERALS
public static final boolean INVOKEDYNAMIC_IVARS
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_VISUALIZER
public static String IR_COMPILER_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
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 ASTCompiler newCompiler()
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()
public CompatVersion getCompatVersion()
Options.COMPAT_VERSIONpublic void setCompatVersion(CompatVersion compatVersion)
Options.COMPAT_VERSIONpublic 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 void setEnvironment(Map newEnvironment)
public Map getEnvironment()
public ClassLoader getLoader()
public void setLoader(ClassLoader loader)
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 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 setRecordSeparator(String recordSeparator)
Options.CLI_RECORD_SEPARATORpublic String getRecordSeparator()
Options.CLI_RECORD_SEPARATORpublic int getSafeLevel()
public ClassCache getClassCache()
public void setInPlaceBackupExtension(String inPlaceBackupExtension)
Options.CLI_BACKUP_EXTENSIONpublic String getInPlaceBackupExtension()
Options.CLI_BACKUP_EXTENSIONpublic void setClassCache(ClassCache classCache)
public Map getOptionGlobals()
public boolean isManagementEnabled()
public Set getExcludedMethods()
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 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 setCextEnabled(boolean b)
b - new value indicating whether native code is enabledOptions.CEXT_ENABLEDpublic boolean isCextEnabled()
Options.CEXT_ENABLEDpublic 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_COLORRpublic 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)
@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()
Copyright © 2001-2013 JRuby. All Rights Reserved.