|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.RubyInstanceConfig
public class RubyInstanceConfig
Nested Class Summary | |
---|---|
static class |
RubyInstanceConfig.CompileMode
|
static interface |
RubyInstanceConfig.LoadServiceCreator
|
static class |
RubyInstanceConfig.ProfilingMode
|
Field Summary | |
---|---|
static boolean |
CAN_SET_ACCESSIBLE
|
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
Default size for chained compilation. |
int |
characterIndex
|
static java.lang.String |
COMPILE_EXCLUDE
|
static boolean |
DEBUG_LAUNCHING
|
static boolean |
DEBUG_LOAD_SERVICE
|
static boolean |
DEBUG_LOAD_TIMINGS
|
static boolean |
DEBUG_SCRIPT_RESOLUTION
|
static boolean |
DYNOPT_COMPILE_ENABLED
|
static boolean |
ERRNO_BACKTRACE
|
static boolean |
FASTEST_COMPILE_ENABLED
|
static boolean |
FASTOPS_COMPILE_ENABLED
|
static boolean |
FASTSEND_COMPILE_ENABLED
|
static boolean |
FULL_TRACE_ENABLED
|
static boolean |
INLINE_DYNCALL_ENABLED
|
static boolean |
INTERFACES_USE_PROXY
|
static int |
JAVA_VERSION
The version to use for generated classes. |
static boolean |
JIT_CACHE_ENABLED
|
static java.lang.String |
JIT_CODE_CACHE
|
static boolean |
JIT_LOADING_DEBUG
|
static int |
JIT_MAX_METHODS_LIMIT
The max count of active methods eligible for JIT-compilation. |
static int |
JIT_MAX_SIZE_LIMIT
The max size of JIT-compiled methods (full class size) allowed. |
static int |
JIT_THRESHOLD
The JIT threshold to the specified method invocation count. |
static boolean |
JUMPS_HAVE_BACKTRACE
|
static boolean |
LAZYHANDLES_COMPILE
|
static boolean |
NATIVE_NET_PROTOCOL
|
static boolean |
nativeEnabled
|
static boolean |
NO_UNWRAP_PROCESS_STREAMS
|
static boolean |
NOGUARDS_COMPILE_ENABLED
|
static boolean |
PEEPHOLE_OPTZ
|
static int |
POOL_MAX
|
static int |
POOL_MIN
|
static int |
POOL_TTL
|
static boolean |
POOLING_ENABLED
|
static boolean |
REFLECTED_HANDLES
|
static boolean |
REIFY_LOG_ERRORS
|
static boolean |
REIFY_RUBY_CLASSES
|
static boolean |
THREADLESS_COMPILE_ENABLED
|
static boolean |
USE_GENERATED_HANDLES
|
Constructor Summary | |
---|---|
RubyInstanceConfig()
|
|
RubyInstanceConfig(RubyInstanceConfig parentConfig)
|
Method Summary | |
---|---|
LoadService |
createLoadService(Ruby runtime)
|
java.lang.String |
displayedFileName()
|
java.lang.String[] |
getArgv()
|
java.lang.String |
getBasicUsageHelp()
|
ClassCache |
getClassCache()
|
CompatVersion |
getCompatVersion()
|
RubyInstanceConfig.CompileMode |
getCompileMode()
|
java.lang.String |
getCopyrightString()
|
java.lang.String |
getCurrentDirectory()
|
java.util.Map |
getEnvironment()
|
java.io.PrintStream |
getError()
|
java.util.Set |
getExcludedMethods()
|
java.lang.String |
getExtendedHelp()
|
java.lang.String |
getExternalEncoding()
|
java.lang.String |
getInPlaceBackupExtention()
|
java.io.InputStream |
getInput()
|
java.lang.String |
getInputFieldSeparator()
|
java.lang.String |
getInternalEncoding()
|
int |
getJitLogEvery()
|
int |
getJitMax()
|
int |
getJitMaxSize()
|
int |
getJitThreshold()
|
java.lang.String |
getJRubyHome()
|
KCode |
getKCode()
|
java.lang.ClassLoader |
getLoader()
|
RubyInstanceConfig.LoadServiceCreator |
getLoadServiceCreator()
|
java.util.Map |
getOptionGlobals()
|
java.io.PrintStream |
getOutput()
|
Profile |
getProfile()
|
RubyInstanceConfig.ProfilingMode |
getProfilingMode()
|
java.lang.String |
getPropertyHelp()
|
java.lang.String |
getRecordSeparator()
|
int |
getSafeLevel()
|
java.lang.String |
getScriptFileName()
|
java.io.InputStream |
getScriptSource()
|
java.lang.String |
getThreadDumpSignal()
|
TraceType |
getTraceType()
|
java.lang.Boolean |
getVerbose()
|
java.lang.String |
getVersionString()
|
static boolean |
hasLoadedNativeExtensions()
|
boolean |
hasShebangLine()
|
byte[] |
inlineScript()
|
boolean |
isAssumeLoop()
|
boolean |
isAssumePrinting()
|
boolean |
isBenchmarking()
|
boolean |
isDebug()
|
boolean |
isDisableGems()
|
boolean |
isHardExit()
|
boolean |
isInlineScript()
|
boolean |
isJitDumping()
|
boolean |
isJitLogging()
|
boolean |
isJitLoggingVerbose()
|
boolean |
isManagementEnabled()
|
boolean |
isObjectSpaceEnabled()
|
boolean |
isParserDebug()
|
boolean |
isProcessLineEnds()
|
boolean |
isProfiling()
|
boolean |
isProfilingEntireRun()
|
boolean |
isRunRubyInProcess()
|
boolean |
isSamplingEnabled()
|
protected static boolean |
isShebangLine(java.lang.String line)
|
boolean |
isShouldCheckSyntax()
|
boolean |
isShouldRunInterpreter()
|
boolean |
isShowBytecode()
|
boolean |
isShowCopyright()
|
boolean |
isShowVersion()
|
boolean |
isSplit()
|
boolean |
isVerbose()
|
boolean |
isxFlag()
|
java.util.List<java.lang.String> |
loadPaths()
|
AbstractProfilePrinter |
makeDefaultProfilePrinter(IProfileData profileData)
|
ASTCompiler |
newCompiler()
|
java.lang.String[] |
parseShebangOptions(java.io.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 commandline. |
void |
processArguments(java.lang.String[] arguments)
|
java.util.Collection<java.lang.String> |
requiredLibraries()
|
void |
setArgv(java.lang.String[] argv)
|
void |
setClassCache(ClassCache classCache)
|
void |
setCompatVersion(CompatVersion compatVersion)
|
void |
setCompileMode(RubyInstanceConfig.CompileMode compileMode)
|
void |
setCurrentDirectory(java.lang.String newCurrentDirectory)
|
void |
setDebug(boolean debug)
|
void |
setDisableGems(boolean dg)
|
void |
setEnvironment(java.util.Map newEnvironment)
|
void |
setError(java.io.PrintStream newError)
|
void |
setHardExit(boolean hardExit)
|
void |
setHasShebangLine(boolean hasShebangLine)
|
void |
setInput(java.io.InputStream newInput)
|
void |
setJitLogEvery(int jitLogEvery)
|
void |
setJitMax(int jitMax)
|
void |
setJitMaxSize(int jitMaxSize)
|
void |
setJitThreshold(int jitThreshold)
|
void |
setJRubyHome(java.lang.String home)
|
void |
setKCode(KCode kcode)
|
static void |
setLoadedNativeExtensions(boolean loadedNativeExtensions)
|
void |
setLoader(java.lang.ClassLoader loader)
|
void |
setLoadPaths(java.util.List<java.lang.String> loadPaths)
|
void |
setLoadServiceCreator(RubyInstanceConfig.LoadServiceCreator creator)
|
void |
setObjectSpaceEnabled(boolean newObjectSpaceEnabled)
|
void |
setOutput(java.io.PrintStream newOutput)
|
void |
setProfile(Profile newProfile)
|
void |
setRecordSeparator(java.lang.String recordSeparator)
|
void |
setRunRubyInProcess(boolean flag)
|
void |
setScriptFileName(java.lang.String scriptFileName)
|
protected void |
setShowBytecode(boolean showBytecode)
|
protected void |
setShowCopyright(boolean showCopyright)
|
protected void |
setShowVersion(boolean showVersion)
|
void |
setTraceType(TraceType traceType)
|
boolean |
shouldPrintProperties()
|
boolean |
shouldPrintUsage()
|
boolean |
shouldRunInterpreter()
|
void |
tryProcessArgumentsWithRubyopts()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int JIT_MAX_METHODS_LIMIT
public static final int JIT_MAX_SIZE_LIMIT
public static final int JIT_THRESHOLD
public static final int JAVA_VERSION
public static final int CHAINED_COMPILE_LINE_COUNT_DEFAULT
public static final int CHAINED_COMPILE_LINE_COUNT
public static final boolean PEEPHOLE_OPTZ
public static boolean DYNOPT_COMPILE_ENABLED
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 INLINE_DYNCALL_ENABLED
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 boolean NATIVE_NET_PROTOCOL
public static boolean FULL_TRACE_ENABLED
public static final java.lang.String COMPILE_EXCLUDE
public static boolean nativeEnabled
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 JUMPS_HAVE_BACKTRACE
public static final boolean JIT_CACHE_ENABLED
public static final java.lang.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
public static final boolean ERRNO_BACKTRACE
public int characterIndex
Constructor Detail |
---|
public RubyInstanceConfig(RubyInstanceConfig parentConfig)
public RubyInstanceConfig()
Method Detail |
---|
public boolean hasShebangLine()
public void setHasShebangLine(boolean hasShebangLine)
public boolean isxFlag()
public RubyInstanceConfig.LoadServiceCreator getLoadServiceCreator()
public void setLoadServiceCreator(RubyInstanceConfig.LoadServiceCreator creator)
public LoadService createLoadService(Ruby runtime)
public java.lang.String getBasicUsageHelp()
public java.lang.String getExtendedHelp()
public java.lang.String getPropertyHelp()
public java.lang.String getVersionString()
public java.lang.String getCopyrightString()
public void processArguments(java.lang.String[] arguments)
public void tryProcessArgumentsWithRubyopts()
public java.lang.String[] parseShebangOptions(java.io.InputStream in)
protected static boolean isShebangLine(java.lang.String line)
public RubyInstanceConfig.CompileMode getCompileMode()
public void setCompileMode(RubyInstanceConfig.CompileMode compileMode)
public boolean isJitLogging()
public boolean isJitDumping()
public boolean isJitLoggingVerbose()
public int getJitLogEvery()
public void setJitLogEvery(int jitLogEvery)
public boolean isSamplingEnabled()
public int getJitThreshold()
public void setJitThreshold(int jitThreshold)
public int getJitMax()
public void setJitMax(int jitMax)
public int getJitMaxSize()
public void setJitMaxSize(int jitMaxSize)
public boolean isRunRubyInProcess()
public void setRunRubyInProcess(boolean flag)
public void setInput(java.io.InputStream newInput)
public java.io.InputStream getInput()
public CompatVersion getCompatVersion()
public void setCompatVersion(CompatVersion compatVersion)
public void setOutput(java.io.PrintStream newOutput)
public java.io.PrintStream getOutput()
public void setError(java.io.PrintStream newError)
public java.io.PrintStream getError()
public void setCurrentDirectory(java.lang.String newCurrentDirectory)
public java.lang.String getCurrentDirectory()
public void setProfile(Profile newProfile)
public Profile getProfile()
public void setObjectSpaceEnabled(boolean newObjectSpaceEnabled)
public boolean isObjectSpaceEnabled()
public void setEnvironment(java.util.Map newEnvironment)
public java.util.Map getEnvironment()
public java.lang.ClassLoader getLoader()
public void setLoader(java.lang.ClassLoader loader)
public java.lang.String[] getArgv()
public void setArgv(java.lang.String[] argv)
public java.lang.String getJRubyHome()
public void setJRubyHome(java.lang.String home)
public byte[] inlineScript()
public java.util.Collection<java.lang.String> requiredLibraries()
public java.util.List<java.lang.String> loadPaths()
public void setLoadPaths(java.util.List<java.lang.String> loadPaths)
public boolean shouldRunInterpreter()
public boolean shouldPrintUsage()
public boolean shouldPrintProperties()
public boolean isInlineScript()
public java.io.InputStream getScriptSource()
public java.lang.String displayedFileName()
public void setScriptFileName(java.lang.String scriptFileName)
public java.lang.String getScriptFileName()
public boolean isBenchmarking()
public boolean isAssumeLoop()
public boolean isAssumePrinting()
public boolean isProcessLineEnds()
public boolean isSplit()
public boolean isVerbose()
public java.lang.Boolean getVerbose()
public boolean isDebug()
public void setDebug(boolean debug)
public boolean isParserDebug()
public boolean isShowVersion()
public boolean isShowBytecode()
public boolean isShowCopyright()
protected void setShowVersion(boolean showVersion)
protected void setShowBytecode(boolean showBytecode)
protected void setShowCopyright(boolean showCopyright)
public boolean isShouldRunInterpreter()
public boolean isShouldCheckSyntax()
public java.lang.String getInputFieldSeparator()
public KCode getKCode()
public void setKCode(KCode kcode)
public java.lang.String getInternalEncoding()
public java.lang.String getExternalEncoding()
public java.lang.String getRecordSeparator()
public int getSafeLevel()
public void setRecordSeparator(java.lang.String recordSeparator)
public ClassCache getClassCache()
public java.lang.String getInPlaceBackupExtention()
public void setClassCache(ClassCache classCache)
public java.util.Map getOptionGlobals()
public boolean isManagementEnabled()
public java.util.Set getExcludedMethods()
public ASTCompiler newCompiler()
public java.lang.String getThreadDumpSignal()
public boolean isHardExit()
public void setHardExit(boolean hardExit)
public boolean isProfiling()
public boolean isProfilingEntireRun()
public RubyInstanceConfig.ProfilingMode getProfilingMode()
public AbstractProfilePrinter makeDefaultProfilePrinter(IProfileData profileData)
public boolean isDisableGems()
public void setDisableGems(boolean dg)
public TraceType getTraceType()
public void setTraceType(TraceType traceType)
public static boolean hasLoadedNativeExtensions()
public static void setLoadedNativeExtensions(boolean loadedNativeExtensions)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |