Methods
Modifier and Type |
Method and Description |
void |
addBoundMethod(String className,
String methodName,
String rubyName) |
void |
addEventHook(EventHook hook) |
void |
addFinalizer(Finalizable finalizer) |
void |
addInternalFinalizer(Finalizable finalizer) |
void |
addModule(RubyModule module) |
void |
addToObjectSpace(boolean useObjectSpace,
IRubyObject object) |
int |
allocModuleId() |
int |
allocSymbolId() |
CallbackFactory |
callbackFactory(Class<?> type)
Deprecated.
|
void |
callEventHooks(ThreadContext context,
RubyEvent event,
String file,
int line,
String name,
IRubyObject type) |
void |
checkSafeString(IRubyObject object)
Deprecated.
|
static void |
clearGlobalRuntime()
Clear the global runtime.
|
void |
compileAndLoadFile(String filename,
InputStream in,
boolean wrap) |
RubyClass |
defineClass(String name,
RubyClass superClass,
ObjectAllocator allocator)
Define a new class under the Object namespace.
|
RubyClass |
defineClass(String name,
RubyClass superClass,
ObjectAllocator allocator,
CallSite[] callSites)
A variation of defineClass that allows passing in an array of subplementary
call sites for improving dynamic invocation performance.
|
RubyClass |
defineClassUnder(String name,
RubyClass superClass,
ObjectAllocator allocator,
RubyModule parent)
Define a new class with the given name under the given module or class
namespace.
|
RubyClass |
defineClassUnder(String name,
RubyClass superClass,
ObjectAllocator allocator,
RubyModule parent,
CallSite[] callSites)
A variation of defineClassUnder that allows passing in an array of
supplementary call sites to improve dynamic invocation.
|
void |
defineGlobalConstant(String name,
IRubyObject value)
rb_define_global_const
Define a constant on the global namespace (i.e.
|
RubyModule |
defineModule(String name)
Define a new module under the Object namespace.
|
RubyModule |
defineModuleUnder(String name,
RubyModule parent)
Define a new module with the given name under the given module or
class namespace.
|
void |
defineReadonlyVariable(String name,
IRubyObject value,
GlobalVariable.Scope scope)
defines a readonly global variable
|
void |
defineVariable(GlobalVariable variable,
GlobalVariable.Scope scope)
Defines a global variable
|
void |
eachModule(Function1<Object,IRubyObject> func) |
IRubyObject |
evalScriptlet(String script)
Evaluates a script under the current scope (perhaps the top-level
scope) and returns the result (generally the last value calculated).
|
IRubyObject |
evalScriptlet(String script,
DynamicScope scope)
Evaluates a script under the current scope (perhaps the top-level
scope) and returns the result (generally the last value calculated).
|
IRubyObject |
execRecursive(Ruby.RecursiveFunction func,
IRubyObject obj)
Perform a recursive walk on the given object using the given function.
|
IRubyObject |
execRecursiveOuter(Ruby.RecursiveFunction func,
IRubyObject obj)
Perform a recursive walk on the given object using the given function.
|
IRubyObject |
executeScript(String script,
String filename)
Parse and execute the specified script
This differs from the other methods in that it accepts a string-based script and
parses and runs it as though it were loaded at a command-line.
|
RubyClass |
fastGetClass(String internedName)
Deprecated.
|
RubyModule |
fastGetModule(String internedName)
Deprecated.
|
RubySymbol |
fastNewSymbol(String internedName)
|
IRubyObject |
fetchGlobalConstant(String name)
Fetch a constant from the global namespace (i.e.
|
IRubyObject |
getArgsFile() |
RubyClass |
getArgumentError() |
RubyClass |
getArray() |
int |
getBacktraceCount()
Get the current backtrace count.
|
RubyClass |
getBasicObject() |
BeanManager |
getBeanManager() |
RubyClass |
getBignum() |
RubyClass |
getBinding() |
Map<String,Map<String,String>> |
getBoundMethods() |
int |
getCallerCount()
Get the current backtrace count.
|
RubyHash |
getCharsetMap() |
Invalidator |
getCheckpointInvalidator() |
RubyClass |
getClass(String name)
Retrieve the class with the given name from the Object namespace.
|
RubyClass |
getClassClass() |
RubyModule |
getClassFromPath(String path) |
static ClassLoader |
getClassLoader() |
RubyModule |
getComparable() |
RubyClass |
getComplex() |
RubyClass |
getConcurrencyError() |
int |
getConstantGeneration()
Deprecated.
|
Invalidator |
getConstantInvalidator(String constantName) |
RubyClass |
getContinuation() |
RubyClass |
getConverter() |
RubyClass |
getConverterNotFoundError() |
CoverageData |
getCoverageData() |
ThreadContext |
getCurrentContext() |
String |
getCurrentDirectory() |
static Ruby |
getCurrentInstance()
Deprecated.
|
int |
getCurrentLine() |
IRubyObject |
getDebug()
Getter for property isDebug.
|
org.jcodings.Encoding |
getDefaultExternalEncoding() |
static Ruby |
getDefaultInstance()
Deprecated.
use #newInstance()
|
org.jcodings.Encoding |
getDefaultInternalEncoding()
This is an internal encoding if actually specified via default_internal=
or passed in via -E.
|
DynamicMethod |
getDefaultMethodMissing() |
RubyRandom.RandomType |
getDefaultRand() |
RubyThreadGroup |
getDefaultThreadGroup() |
RubyString |
getDefinedMessage(DefinedMessage definedMessage) |
ChannelDescriptor |
getDescriptorByFileno(int aFileno)
Deprecated.
|
RubyClass |
getDir() |
RubyClass |
getDummy() |
RubyArray |
getEmptyFrozenArray() |
RubyClass |
getEncoding() |
RubyClass |
getEncodingCompatibilityError() |
RubyClass |
getEncodingError() |
EncodingService |
getEncodingService() |
RubyModule |
getEnumerable() |
RubyClass |
getEnumerator() |
RubyHash |
getENV() |
RubyClass |
getEOFError() |
PrintStream |
getErr() |
RubyModule |
getErrno() |
RubyClass |
getErrno(int n) |
PrintStream |
getErrorStream() |
RubyModule |
getEtc() |
RubyClass |
getException() |
int |
getExceptionCount()
Get the current exception count.
|
ExecutorService |
getExecutor() |
RubyBoolean |
getFalse()
Returns the "false" instance from the instance pool.
|
RubyClass |
getFalseClass() |
RubyClass |
getFatal() |
FFI |
getFFI() |
RubyClass |
getFiberError() |
ExecutorService |
getFiberExecutor() |
RubyClass |
getFile() |
int |
getFileno(ChannelDescriptor descriptor)
Get the "external" fileno for a given ChannelDescriptor.
|
int |
getFilenoExtMap(int external) |
int |
getFilenoIntMap(int internal) |
int |
getFilenoIntMapSize() |
RubyClass |
getFileStat() |
RubyModule |
getFileTest() |
RubyClass |
getFixnum() |
Invalidator |
getFixnumInvalidator()
Retrieve the invalidator for Fixnum reopening
|
RubyClass |
getFloat() |
RubyClass |
getFloatDomainError() |
Invalidator |
getFloatInvalidator()
Retrieve the invalidator for Float reopening
|
RubyModule |
getGC() |
static Ruby |
getGlobalRuntime()
Get the global runtime.
|
long |
getGlobalState()
GET_VM_STATE_VERSION
|
GlobalVariables |
getGlobalVariables() |
IRubyObject |
getGroupStruct() |
RubyClass |
getHash() |
long |
getHashSeedK0() |
long |
getHashSeedK1() |
Object |
getHierarchyLock()
Get the global object used to synchronize class-hierarchy modifications like
cache invalidation, subclass sets, and included hierarchy sets.
|
InputStream |
getIn() |
RubyClass |
getIndexError() |
InputStream |
getInputStream() |
RubyInstanceConfig |
getInstanceConfig() |
RubyClass |
getInteger() |
RubyClass |
getInterrupt() |
RubyClass |
getInterruptedRegexpError() |
RubyClass |
getInvalidByteSequenceError() |
RubyClass |
getIO() |
RubyClass |
getIOError() |
IRManager |
getIRManager() |
JavaProxyClassFactory |
getJavaProxyClassFactory() |
JavaSupport |
getJavaSupport() |
JITCompiler |
getJITCompiler() |
Set<Script> |
getJittedMethods() |
JRubyClassLoader |
getJRubyClassLoader() |
String |
getJRubyHome() |
KCode |
getKCode() |
RubyModule |
getKernel() |
RubyClass |
getKeyError() |
RubyClass |
getLoadError() |
LoadService |
getLoadService()
Returns the loadService.
|
RubyClass |
getLocalJumpError() |
RubyClass |
getLocation() |
RubyModule |
getMarshal() |
RubyClass |
getMatchData() |
RubyModule |
getMath() |
RubyClass |
getMathDomainError() |
RubyClass |
getMethod() |
RubyClass |
getModule() |
RubyModule |
getModule(String name)
Retrieve the module with the given name from the Object namespace.
|
RubyClass |
getNameError() |
RubyClass |
getNameErrorMessage() |
RubyClass |
getNativeException() |
long |
getNextDynamicMethodSerial()
Get a new serial number for a new DynamicMethod instance
|
int |
getNextModuleGeneration()
Get a new generation number for a module or class.
|
IRubyObject |
getNil()
Returns the "nil" singleton instance.
|
RubyClass |
getNilClass() |
IRubyObject[] |
getNilPrefilledArray() |
RubyClass |
getNoMemoryError() |
RubyClass |
getNoMethodError() |
DynamicMethod |
getNormalMethodMissing() |
RubyClass |
getNotImplementedError() |
RubyClass |
getNumeric() |
RubyClass |
getObject() |
ObjectSpace |
getObjectSpace() |
RubyModule |
getObjectSpaceModule() |
RubyModule |
getOrCreateModule(String name)
From Object, retrieve the named module.
|
PrintStream |
getOut() |
PrintStream |
getOutputStream() |
Parser |
getParser() |
IRubyObject |
getPasswdStruct() |
jnr.posix.POSIX |
getPosix() |
RubyModule |
getPrecision() |
DynamicMethod |
getPrivateMethodMissing() |
RubyClass |
getProc() |
RubyModule |
getProcess() |
RubyModule |
getProcGID() |
RubyClass |
getProcStatus() |
RubyModule |
getProcSysModule() |
RubyModule |
getProcUID() |
Profile |
getProfile() |
ProfiledMethod[] |
getProfiledMethods()
Get the list of method holders for methods being profiled.
|
DynamicMethod |
getProtectedMethodMissing() |
Random |
getRandom() |
RubyClass |
getRandomClass() |
RubyClass |
getRange() |
RubyClass |
getRangeError() |
RubyClass |
getRational() |
GlobalVariable |
getRecordSeparatorVar() |
RubyClass |
getRegexp() |
RubyClass |
getRegexpError() |
DynamicMethod |
getRespondToMethod() |
DynamicMethod |
getRespondToMissingMethod() |
IRubyObject |
getRootFiber() |
RuntimeCache |
getRuntimeCache()
Get the core class RuntimeCache instance, for doing dynamic calls from
core class methods.
|
RubyClass |
getRuntimeError() |
int |
getRuntimeNumber() |
int |
getSafeLevel()
Deprecated.
|
RubyClass |
getSecurityError() |
SelectorPool |
getSelectorPool()
Get the runtime-global selector pool
|
RubyClass |
getSignalException() |
IRubyObject[] |
getSingleNilArray() |
RubyClass |
getStandardError() |
long |
getStartTime() |
StaticScopeFactory |
getStaticScopeFactory() |
RubyClass |
getStopIteration() |
RubyClass |
getString() |
RubyClass |
getStructClass() |
DynamicMethod |
getSuperMethodMissing() |
RubyClass |
getSymbol() |
RubySymbol.SymbolTable |
getSymbolTable() |
RubyClass |
getSyntaxError() |
RubyClass |
getSystemCallError() |
RubyClass |
getSystemExit() |
RubyClass |
getSystemStackError() |
RubyClass |
getThread() |
RubyClass |
getThreadError() |
RubyClass |
getThreadGroup() |
static Ruby |
getThreadLocalRuntime()
Get the thread-local runtime for the current thread, or null if unset.
|
ThreadService |
getThreadService() |
RubyString |
getThreadStatus(RubyThread.Status status) |
RubyClass |
getTime() |
Map<String,org.joda.time.DateTimeZone> |
getTimezoneCache() |
IRubyObject |
getTmsStruct() |
IRubyObject |
getTopSelf()
Getter for property rubyTopSelf.
|
RubyBoolean |
getTrue()
Returns the "true" instance from the instance pool.
|
RubyClass |
getTrueClass() |
RubyClass |
getTypeError() |
RubyClass |
getUnboundMethod() |
RubyClass |
getUndefinedConversionError() |
DynamicMethod |
getVariableMethodMissing() |
IRubyObject |
getVerbose()
Getter for property isVerbose.
|
int |
getWarningCount()
Get the current backtrace count.
|
RubyWarnings |
getWarnings() |
RubyClass |
getYielder() |
RubyClass |
getZeroDivisionError() |
boolean |
hasEventHooks() |
void |
incGlobalState()
INC_VM_STATE_VERSION
|
void |
incrementBacktraceCount()
Increment the count of backtraces generated by code in this runtime.
|
void |
incrementCallerCount()
Increment the count of backtraces generated by code in this runtime.
|
void |
incrementExceptionCount()
Increment the count of exceptions generated by code in this runtime.
|
void |
incrementWarningCount()
Increment the count of backtraces generated for warnings in this runtime.
|
boolean |
is1_8() |
boolean |
is1_9() |
boolean |
is2_0() |
boolean |
isBooting() |
boolean |
isClassDefined(String name) |
boolean |
isDebug() |
boolean |
isDoNotReverseLookupEnabled() |
boolean |
isFixnumReopened()
Whether the Float class has been reopened and modified
|
boolean |
isFloatReopened()
Whether the Float class has been reopened and modified
|
boolean |
isGlobalAbortOnExceptionEnabled() |
static boolean |
isGlobalRuntimeReady()
Tests whether globalRuntime has been instantiated or not.
|
boolean |
isInspecting(Object obj) |
boolean |
isObjectSpaceEnabled() |
static boolean |
isSecurityRestricted() |
boolean |
isSiphashEnabled() |
boolean |
isVerbose() |
<E extends Enum<E>> void |
loadConstantSet(RubyModule module,
Class<E> enumClass) |
void |
loadConstantSet(RubyModule module,
String constantSetName) |
void |
loadExtension(String extName,
BasicLibraryService extension,
boolean wrap)
Load the given BasicLibraryService instance, wrapping it in Ruby framing
to ensure it is isolated from any parent scope.
|
void |
loadFile(String scriptName,
InputStream in,
boolean wrap) |
void |
loadScript(Script script) |
void |
loadScript(Script script,
boolean wrap) |
RaiseException |
newArgumentError(int got,
int expected) |
RaiseException |
newArgumentError(String message) |
RaiseException |
newArgumentError(String name,
int got,
int expected) |
RubyArray |
newArray() |
RubyArray |
newArray(int size) |
RubyArray |
newArray(IRubyObject... objects) |
RubyArray |
newArray(IRubyObject object) |
RubyArray |
newArray(IRubyObject car,
IRubyObject cdr) |
RubyArray |
newArray(List<IRubyObject> list) |
RubyArray |
newArrayLight() |
RubyArray |
newArrayNoCopy(IRubyObject... objects) |
RubyArray |
newArrayNoCopyLight(IRubyObject... objects) |
RubyBinding |
newBinding() |
RubyBinding |
newBinding(Binding binding) |
RubyProc |
newBlockPassProc(Block.Type type,
Block block) |
RubyBoolean |
newBoolean(boolean value) |
RaiseException |
newConcurrencyError(String message) |
RaiseException |
newConverterNotFoundError(String message) |
RubyObject.Data |
newData(RubyClass objectClass,
Object sval) |
RubyArray |
newEmptyArray() |
RaiseException |
newEncodingCompatibilityError(String message) |
RaiseException |
newEncodingError(String message) |
RaiseException |
newEOFError() |
RaiseException |
newEOFError(String message) |
RaiseException |
newErrnoEACCESError(String message) |
RaiseException |
newErrnoEADDRFromBindException(BindException be) |
RaiseException |
newErrnoEADDRFromBindException(BindException be,
String contextMessage) |
RaiseException |
newErrnoEADDRINUSEError() |
RaiseException |
newErrnoEADDRINUSEError(String message) |
RaiseException |
newErrnoEADDRNOTAVAILError(String message) |
RaiseException |
newErrnoEAGAINError(String message) |
RaiseException |
newErrnoEAGAINReadableError(String message) |
RaiseException |
newErrnoEAGAINWritableError(String message) |
RaiseException |
newErrnoEBADFError() |
RaiseException |
newErrnoEBADFError(String message) |
RaiseException |
newErrnoECHILDError() |
RaiseException |
newErrnoECONNABORTEDError() |
RaiseException |
newErrnoECONNREFUSEDError() |
RaiseException |
newErrnoECONNRESETError() |
RaiseException |
newErrnoEDESTADDRREQError(String func) |
RaiseException |
newErrnoEDOMError(String message) |
RaiseException |
newErrnoEEXISTError(String message) |
RaiseException |
newErrnoEHOSTUNREACHError(String message) |
RaiseException |
newErrnoEINPROGRESSError() |
RaiseException |
newErrnoEINPROGRESSError(String message) |
RaiseException |
newErrnoEINPROGRESSWritableError() |
RaiseException |
newErrnoEINPROGRESSWritableError(String message) |
RaiseException |
newErrnoEINVALError() |
RaiseException |
newErrnoEINVALError(String message) |
RaiseException |
newErrnoEISCONNError() |
RaiseException |
newErrnoEISCONNError(String message) |
RaiseException |
newErrnoEISDirError() |
RaiseException |
newErrnoEISDirError(String message) |
RaiseException |
newErrnoENOENTError() |
RaiseException |
newErrnoENOENTError(String message) |
RaiseException |
newErrnoENOPROTOOPTError() |
RaiseException |
newErrnoENOTCONNError() |
RaiseException |
newErrnoENOTCONNError(String message) |
RaiseException |
newErrnoENOTDIRError(String message) |
RaiseException |
newErrnoENOTEMPTYError(String message) |
RaiseException |
newErrnoENOTSOCKError(String message) |
RaiseException |
newErrnoEPERMError(String name) |
RaiseException |
newErrnoEPIPEError() |
RaiseException |
newErrnoESPIPEError() |
RaiseException |
newErrnoESPIPEError(String message) |
RaiseException |
newErrnoESRCHError() |
RaiseException |
newErrnoEWOULDBLOCKError() |
RaiseException |
newErrnoFromInt(int errno) |
RaiseException |
newErrnoFromInt(int errno,
String message) |
RaiseException |
newErrnoFromInt(int errno,
String methodName,
String message) |
RaiseException |
newErrnoFromLastPOSIXErrno() |
RaiseException |
newFiberError(String message) |
RubyFileStat |
newFileStat(FileDescriptor descriptor) |
RubyFileStat |
newFileStat(String filename,
boolean lstat) |
RubyFixnum |
newFixnum(jnr.constants.Constant value) |
RubyFixnum |
newFixnum(int value) |
RubyFixnum |
newFixnum(long value) |
RubyFloat |
newFloat(double value) |
RaiseException |
newFloatDomainError(String message) |
RaiseException |
newFrozenError(String objectType) |
RaiseException |
newFrozenError(String objectType,
boolean runtimeError) |
RaiseException |
newIllegalSequence(String message) |
RaiseException |
newIndexError(String message) |
static Ruby |
newInstance()
Returns a new instance of the JRuby runtime configured with defaults.
|
static Ruby |
newInstance(InputStream in,
PrintStream out,
PrintStream err)
Returns a new instance of the JRuby runtime configured with the given
input, output and error streams and otherwise default configuration
(except where specified system properties alter defaults).
|
static Ruby |
newInstance(RubyInstanceConfig config)
Returns a new instance of the JRuby runtime configured as specified.
|
RaiseException |
newInterruptedRegexpError(String message) |
RaiseException |
newInvalidByteSequenceError(String message) |
RaiseException |
newInvalidEncoding(String message) |
RaiseException |
newIOError(String message) |
RaiseException |
newIOErrorFromException(IOException ioe) |
RaiseException |
newKeyError(String message) |
RaiseException |
newLightweightStopIterationError(String message)
Generate a StopIteration exception.
|
RaiseException |
newLoadError(String message) |
RaiseException |
newLoadError(String message,
String path) |
RaiseException |
newLocalJumpError(RubyLocalJumpError.Reason reason,
IRubyObject exitValue,
String message) |
RaiseException |
newLocalJumpErrorNoBlock() |
RaiseException |
newMathDomainError(String message) |
RaiseException |
newNameError(String message,
String name) |
RaiseException |
newNameError(String message,
String name,
Throwable origException) |
RaiseException |
newNameError(String message,
String name,
Throwable origException,
boolean printWhenVerbose) |
RaiseException |
newNameErrorObject(String message,
IRubyObject name) |
RaiseException |
newNoMethodError(String message,
String name,
IRubyObject args) |
RaiseException |
newNotImplementedError(String message) |
RubyNumeric |
newNumeric() |
RubyProc |
newProc(Block.Type type,
Block block) |
RaiseException |
newRaiseException(RubyClass exceptionClass,
String message) |
RaiseException |
newRangeError(String message) |
RubyRational |
newRational(long num,
long den) |
RubyRational |
newRationalReduced(long num,
long den) |
RaiseException |
newRedoLocalJumpError() |
RaiseException |
newRegexpError(String message) |
RaiseException |
newRuntimeError(String message) |
RaiseException |
newSecurityError(String message) |
RaiseException |
newStandardError(String message) |
RubyString |
newString() |
RubyString |
newString(org.jruby.util.ByteList byteList) |
RubyString |
newString(String string) |
RubyString |
newStringShared(org.jruby.util.ByteList byteList)
Deprecated.
|
RubySymbol |
newSymbol(org.jruby.util.ByteList name) |
RubySymbol |
newSymbol(String name) |
RaiseException |
newSyntaxError(String message) |
RaiseException |
newSystemCallError(String message) |
RaiseException |
newSystemExit(int status) |
RaiseException |
newSystemExit(int status,
String message) |
RaiseException |
newSystemStackError(String message) |
RaiseException |
newSystemStackError(String message,
StackOverflowError soe) |
RaiseException |
newThreadError(String message) |
RubyTime |
newTime(long milliseconds) |
RaiseException |
newTypeError(IRubyObject receivedObject,
RubyClass expectedType) |
RaiseException |
newTypeError(IRubyObject receivedObject,
RubyModule expectedType) |
RaiseException |
newTypeError(IRubyObject receivedObject,
String expectedType) |
RaiseException |
newTypeError(String message) |
RaiseException |
newUndefinedConversionError(String message) |
RaiseException |
newZeroDivisionError() |
Node |
parse(org.jruby.util.ByteList content,
String file,
DynamicScope scope,
int lineNumber,
boolean extraPositionInformation) |
Node |
parse(String content,
String file,
DynamicScope scope,
int lineNumber,
boolean extraPositionInformation)
Deprecated.
|
Node |
parseEval(org.jruby.util.ByteList content,
String file,
DynamicScope scope,
int lineNumber) |
Node |
parseEval(String content,
String file,
DynamicScope scope,
int lineNumber) |
Node |
parseFile(InputStream in,
String file,
DynamicScope scope) |
Node |
parseFile(InputStream in,
String file,
DynamicScope scope,
int lineNumber) |
Node |
parseFileFromMain(InputStream in,
String file,
DynamicScope scope) |
Node |
parseFromMain(InputStream inputStream,
String filename)
Parse the script contained in the given input stream, using the given
filename as the name of the script, and return the root Node.
|
Node |
parseInline(InputStream in,
String file,
DynamicScope scope) |
void |
printError(RubyException excp)
Prints an error with backtrace to the error stream.
|
void |
printProfileData(ProfileData profileData) |
void |
printProfileData(ProfileData profileData,
PrintStream out)
Deprecated.
use printProfileData(ProfileData) or printProfileData(ProfileData,ProfileOutput)
|
void |
printProfileData(ProfileData profileData,
ProfileOutput output) |
IRubyObject |
pushExitBlock(RubyProc proc)
Push block onto exit stack.
|
void |
putFilenoMap(int external,
int internal) |
<T extends IRubyObject> T |
recursiveListOperation(Callable<T> body)
Begin a recursive walk that may make one or more calls to
execRecursive .
|
void |
registerDescriptor(ChannelDescriptor descriptor)
Deprecated.
|
void |
registerDescriptor(ChannelDescriptor descriptor,
boolean isRetained)
Deprecated.
|
void |
registerInspecting(Object obj) |
void |
removeEventHook(EventHook hook) |
void |
removeFilenoIntMap(int internal) |
void |
removeFinalizer(Finalizable finalizer) |
void |
removeInternalFinalizer(Finalizable finalizer) |
void |
reopenFixnum()
Mark Fixnum as reopened
|
void |
reopenFloat()
Mark Float as reopened
|
void |
runFromMain(InputStream inputStream,
String filename)
Run the script contained in the specified input stream, using the
specified filename as the name of the script being executed.
|
IRubyObject |
runInterpreter(Node scriptNode) |
IRubyObject |
runInterpreter(ThreadContext context,
Node rootNode,
IRubyObject self) |
IRubyObject |
runInterpreterBody(Node scriptNode)
This is used for the "gets" loop, and we bypass 'load' to use an
already-prepared, already-pushed scope for the script body.
|
IRubyObject |
runNormally(Node scriptNode)
Run the specified script without any of the loop-processing wrapper
code.
|
IRubyObject |
runNormally(Node scriptNode,
boolean unused)
Deprecated.
|
IRubyObject |
runScript(Script script) |
IRubyObject |
runScript(Script script,
boolean wrap) |
IRubyObject |
runScriptBody(Script script)
This is used for the "gets" loop, and we bypass 'load' to use an
already-prepared, already-pushed scope for the script body.
|
IRubyObject |
runWithGetsLoop(Node scriptNode,
boolean printing,
boolean processLineEnds,
boolean split)
Run the given script with a "while gets; end" loop wrapped around it.
|
IRubyObject |
runWithGetsLoop(Node scriptNode,
boolean printing,
boolean processLineEnds,
boolean split,
boolean unused)
Deprecated.
|
void |
secure(int level)
Deprecated.
|
void |
setArgsFile(IRubyObject argsFile) |
void |
setCurrentDirectory(String dir) |
static void |
setCurrentInstance(Ruby runtime)
Deprecated.
|
void |
setCurrentLine(int line) |
void |
setDebug(IRubyObject debug)
Setter for property isDebug.
|
void |
setDefaultExternalEncoding(org.jcodings.Encoding defaultExternalEncoding) |
void |
setDefaultInternalEncoding(org.jcodings.Encoding defaultInternalEncoding) |
void |
setDefaultMethodMissing(DynamicMethod method) |
void |
setDefaultRand(RubyRandom.RandomType defaultRand) |
void |
setDoNotReverseLookupEnabled(boolean b) |
void |
setENV(RubyHash env) |
void |
setEtc(RubyModule etcModule) |
void |
setFFI(FFI ffi) |
void |
setGlobalAbortOnExceptionEnabled(boolean enable) |
void |
setGlobalVariables(GlobalVariables globalVariables) |
void |
setGroupStruct(RubyClass groupStruct) |
void |
setJavaProxyClassFactory(JavaProxyClassFactory factory) |
void |
setJRubyHome(String home) |
void |
setKCode(KCode kcode) |
void |
setLocation(RubyClass location) |
void |
setNormalMethodMissing(DynamicMethod method) |
void |
setObjectSpaceEnabled(boolean objectSpaceEnabled) |
void |
setPasswdStruct(RubyClass passwdStruct) |
void |
setPrivateMethodMissing(DynamicMethod method) |
void |
setProtectedMethodMissing(DynamicMethod method) |
void |
setRecordSeparatorVar(GlobalVariable recordSeparatorVar) |
void |
setRespondToMethod(DynamicMethod rtm) |
void |
setRespondToMissingMethod(DynamicMethod rtmm) |
void |
setRootFiber(IRubyObject fiber) |
void |
setSafeLevel(int safeLevel)
Deprecated.
|
static void |
setSecurityRestricted(boolean restricted) |
void |
setSuperMethodMissing(DynamicMethod method) |
static void |
setThreadLocalRuntime(Ruby ruby)
Set the thread-local runtime to the given runtime.
|
void |
setTraceFunction(RubyProc traceFunction) |
void |
setVariableMethodMissing(DynamicMethod method) |
void |
setVerbose(IRubyObject verbose)
Setter for property isVerbose.
|
void |
tearDown()
Make sure Kernel#at_exit procs get invoked on runtime shutdown.
|
void |
tearDown(boolean systemExit) |
Script |
tryCompile(Node node)
Try to compile the code associated with the given Node, returning an
instance of the successfully-compiled Script or null if the script could
not be compiled.
|
Script |
tryCompile(Node node,
ASTInspector inspector)
Try to compile the code associated with the given Node, returning an
instance of the successfully-compiled Script or null if the script could
not be compiled.
|
void |
unregisterDescriptor(int aFileno)
Deprecated.
|
void |
unregisterInspecting(Object obj) |
void |
useAsGlobalRuntime()
Convenience method for java integrators who may need to switch the notion
of "global" runtime.
|
boolean |
warningsEnabled() |