Modifier and Type | Field and Description |
---|---|
protected Ruby |
RubyClass.runtime |
Modifier and Type | Method and Description |
---|---|
Ruby |
RubyClass.getClassRuntime() |
static Ruby |
Ruby.getCurrentInstance()
Deprecated.
|
static Ruby |
Ruby.getDefaultInstance()
Deprecated.
use #newInstance()
|
static Ruby |
Ruby.getGlobalRuntime()
Get the global runtime.
|
Ruby |
RubyBasicObject.getRuntime()
Will return the runtime that this object is associated with.
|
static Ruby |
BasicObjectStub.getRuntime(IRubyObject self) |
static Ruby |
Ruby.getThreadLocalRuntime()
Get the thread-local runtime for the current thread, or null if unset.
|
static Ruby |
Ruby.newInstance()
Returns a new instance of the JRuby runtime configured with defaults.
|
static Ruby |
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 |
Ruby.newInstance(RubyInstanceConfig config)
Returns a new instance of the JRuby runtime configured as specified.
|
Modifier and Type | Method and Description |
---|---|
void |
Ruby.ObjectSpacer.addToObjectSpace(Ruby runtime,
boolean useObjectSpace,
IRubyObject object) |
static int |
RubyMatchData.backrefNumber(Ruby runtime,
org.joni.Regex pattern,
org.joni.Region regs,
IRubyObject obj) |
static RubyInteger |
RubyBignum.bignorm(Ruby runtime,
BigInteger bi)
rb_big_norm
|
static IRubyObject |
RubyEnumerable.callEach(Ruby runtime,
ThreadContext context,
IRubyObject self,
Arity arity,
BlockCallback callback)
Deprecated.
|
static IRubyObject |
RubyEnumerable.callEach(Ruby runtime,
ThreadContext context,
IRubyObject self,
BlockCallback callback) |
static IRubyObject |
RubyEnumerable.callEach(Ruby runtime,
ThreadContext context,
IRubyObject self,
IRubyObject[] args,
Arity arity,
BlockCallback callback)
Deprecated.
|
static IRubyObject |
RubyEnumerable.callEach(Ruby runtime,
ThreadContext context,
IRubyObject self,
IRubyObject[] args,
BlockCallback callback)
Deprecated.
|
static IRubyObject |
RubyEnumerable.callEach(Ruby runtime,
ThreadContext context,
IRubyObject self,
IRubyObject[] args,
Signature signature,
BlockCallback callback) |
static IRubyObject |
RubyEnumerable.callEach(Ruby runtime,
ThreadContext context,
IRubyObject self,
Signature signature,
BlockCallback callback) |
static IRubyObject |
RubyEnumerable.callEach19(Ruby runtime,
ThreadContext context,
IRubyObject self,
Arity arity,
BlockCallback callback)
Deprecated.
|
static IRubyObject |
RubyEnumerable.callEach19(Ruby runtime,
ThreadContext context,
IRubyObject self,
BlockCallback callback) |
static IRubyObject |
RubyEnumerable.callEach19(Ruby runtime,
ThreadContext context,
IRubyObject self,
Signature signature,
BlockCallback callback) |
static IRubyObject |
RubyEnumerable.collectCommon(ThreadContext context,
Ruby runtime,
IRubyObject self,
RubyArray result,
Block block,
BlockCallback blockCallback) |
Collection<String> |
RubyModule.constantsCommon(Ruby runtime,
boolean replaceModule,
boolean allConstants)
rb_mod_constants
|
Collection<String> |
RubyModule.constantsCommon(Ruby runtime,
boolean replaceModule,
boolean allConstants,
boolean includePrivate) |
LoadService |
RubyInstanceConfig.LoadServiceCreator.create(Ruby runtime) |
static RubyClass |
RubyArray.createArrayClass(Ruby runtime) |
static RubyClass |
RubyBasicObject.createBasicObjectClass(Ruby runtime,
RubyClass objectClass)
Will create the Ruby class Object in the runtime
specified.
|
static RubyClass |
RubyBignum.createBignumClass(Ruby runtime) |
static RubyClass |
RubyBinding.createBindingClass(Ruby runtime) |
static RubyClass |
RubyClass.createBootstrapClass(Ruby runtime,
String name,
RubyClass superClass,
ObjectAllocator allocator)
boot_defclass
Create an initial Object meta class before Module and Kernel dependencies have
squirreled themselves together.
|
static RubyClass |
NativeException.createClass(Ruby runtime,
RubyClass baseClass) |
static void |
RubyClass.createClassClass(Ruby runtime,
RubyClass classClass) |
static void |
RubyClassPathVariable.createClassPathVariable(Ruby runtime) |
static RubyModule |
RubyComparable.createComparable(Ruby runtime) |
static RubyClass |
RubyComplex.createComplexClass(Ruby runtime) |
static void |
RubyContinuation.createContinuation(Ruby runtime) |
static RubyClass |
RubyConverter.createConverterClass(Ruby runtime) |
static RubyClass |
RubyDir.createDirClass(Ruby runtime) |
static RubyClass |
RubyEncoding.createEncodingClass(Ruby runtime) |
static RubyModule |
RubyEnumerable.createEnumerableModule(Ruby runtime) |
static RubyClass |
RubyException.createExceptionClass(Ruby runtime) |
static RubyClass |
RubyBoolean.createFalseClass(Ruby runtime) |
static RubyClass |
RubyFile.createFileClass(Ruby runtime) |
static RubyClass |
RubyFileStat.createFileStatClass(Ruby runtime) |
static RubyModule |
RubyFileTest.createFileTestModule(Ruby runtime) |
static RubyClass |
RubyFixnum.createFixnumClass(Ruby runtime) |
static RubyClass |
RubyFloat.createFloatClass(Ruby runtime) |
static RubyModule |
RubyGC.createGCModule(Ruby runtime) |
static void |
RubyGenerator.createGeneratorClass(Ruby runtime) |
static void |
RubyGlobal.createGlobals(ThreadContext context,
Ruby runtime) |
static RubyClass |
RubyHash.createHashClass(Ruby runtime) |
static RubyClass |
RubyInteger.createIntegerClass(Ruby runtime) |
static RubyClass |
RubyIO.createIOClass(Ruby runtime) |
static RubyModule |
RubyKernel.createKernelModule(Ruby runtime) |
LoadService |
RubyInstanceConfig.createLoadService(Ruby runtime) |
static RubyClass |
RubyLocalJumpError.createLocalJumpErrorClass(Ruby runtime,
RubyClass standardErrorClass) |
static RubyModule |
RubyMarshal.createMarshalModule(Ruby runtime) |
static RubyClass |
RubyMatchData.createMatchDataClass(Ruby runtime) |
static RubyModule |
RubyMath.createMathModule(Ruby runtime)
Create the Math module and add it to the Ruby runtime.
|
static RubyClass |
RubyMethod.createMethodClass(Ruby runtime)
Create the RubyMethod class and add it to the Ruby runtime.
|
static RubyClass |
RubyModule.createModuleClass(Ruby runtime,
RubyClass moduleClass) |
static RubyClass |
RubyNameError.createNameErrorClass(Ruby runtime,
RubyClass standardErrorClass) |
static RubyClass |
RubyNameError.createNameErrorMessageClass(Ruby runtime,
RubyClass nameErrorClass) |
static RubyClass |
RubyNil.createNilClass(Ruby runtime) |
static RubyClass |
RubyNoMethodError.createNoMethodErrorClass(Ruby runtime,
RubyClass nameErrorClass) |
static RubyClass |
RubyNumeric.createNumericClass(Ruby runtime) |
static RubyClass |
RubyObject.createObjectClass(Ruby runtime,
RubyClass objectClass)
Will create the Ruby class Object in the runtime
specified.
|
static RubyModule |
RubyObjectSpace.createObjectSpaceModule(Ruby runtime)
Create the ObjectSpace module and add it to the Ruby runtime.
|
static RubyClass |
RubyProc.createProcClass(Ruby runtime) |
static RubyModule |
RubyProcess.createProcessModule(Ruby runtime) |
static RubyClass |
RubyRandom.createRandomClass(Ruby runtime) |
static RubyClass |
RubyRange.createRangeClass(Ruby runtime) |
static RubyClass |
RubyRational.createRationalClass(Ruby runtime) |
static RubyClass |
RubyRegexp.createRegexpClass(Ruby runtime) |
static void |
RubySignal.createSignal(Ruby runtime) |
static RubyClass |
RubyString.createStringClass(Ruby runtime) |
static RubyClass |
RubyStruct.createStructClass(Ruby runtime) |
static RubyClass |
RubySymbol.createSymbolClass(Ruby runtime) |
static RubyClass |
RubySystemCallError.createSystemCallErrorClass(Ruby runtime,
RubyClass standardError) |
static RubyClass |
RubySystemExit.createSystemExitClass(Ruby runtime,
RubyClass exceptionClass) |
static RubyClass |
RubyThread.createThreadClass(Ruby runtime) |
static RubyClass |
RubyThreadGroup.createThreadGroupClass(Ruby runtime) |
static RubyClass |
RubyTime.createTimeClass(Ruby runtime) |
static IRubyObject |
TopSelfFactory.createTopSelf(Ruby runtime) |
static IRubyObject |
TopSelfFactory.createTopSelf(Ruby runtime,
boolean wrapper) |
static RubyClass |
RubyBoolean.createTrueClass(Ruby runtime) |
static RubyClass |
RubyYielder.createYielderClass(Ruby runtime) |
IRubyObject |
RubyIO.ctl(Ruby runtime,
IRubyObject cmd,
IRubyObject arg) |
static IRubyObject |
RubyNumeric.dbl_cmp(Ruby runtime,
double a,
double b)
rb_dbl_cmp (numeric.c)
|
static IRubyObject |
RubyNumeric.dbl2num(Ruby runtime,
double val)
rb_dbl2big + LONG2FIX at once (numeric.c)
|
static void |
RubyEnumerator.defineEnumerator(Ruby runtime) |
static RubyClass |
RubyUnboundMethod.defineUnboundMethodClass(Ruby runtime) |
static IRubyObject |
RubyFileTest.directory_p(Ruby ruby,
IRubyObject filename) |
static IRubyObject |
RubyProcess.egid_set(Ruby runtime,
IRubyObject arg) |
static IRubyObject |
RubyProcess.egid(Ruby runtime) |
static IRubyObject |
RubyProcess.GroupID.eid(Ruby runtime) |
static IRubyObject |
RubyProcess.UserID.eid(Ruby runtime,
IRubyObject arg) |
static IRubyObject |
RubyProcess.GroupID.eid(Ruby runtime,
IRubyObject arg) |
static IRubyObject |
RubyEnumerator.enumeratorize(Ruby runtime,
IRubyObject object,
String method) |
static IRubyObject |
RubyEnumerator.enumeratorize(Ruby runtime,
IRubyObject object,
String method,
IRubyObject arg) |
static IRubyObject |
RubyEnumerator.enumeratorize(Ruby runtime,
IRubyObject object,
String method,
IRubyObject[] args) |
static IRubyObject |
RubyEnumerator.enumeratorize(Ruby runtime,
RubyClass type,
IRubyObject object,
String method) |
static IRubyObject |
RubyEnumerator.enumeratorize(Ruby runtime,
RubyClass type,
IRubyObject object,
String method,
IRubyObject arg) |
static IRubyObject |
RubyEnumerator.enumeratorize(Ruby runtime,
RubyClass type,
IRubyObject object,
String method,
IRubyObject[] args) |
static IRubyObject |
RubyProcess.euid_set(Ruby runtime,
IRubyObject arg) |
static IRubyObject |
RubyProcess.euid(Ruby runtime) |
IRubyObject |
RubyRuntimeAdapter.eval(Ruby runtime,
String script) |
static void |
RubyIO.failIfDirectory(Ruby runtime,
RubyString pathStr) |
void |
RubyHash.fastASet(Ruby runtime,
IRubyObject key,
IRubyObject value,
boolean prepareString) |
void |
RubyHash.fastASetCheckString(Ruby runtime,
IRubyObject key,
IRubyObject value) |
void |
RubyHash.fastASetCheckString19(Ruby runtime,
IRubyObject key,
IRubyObject value)
Deprecated.
|
void |
RubyHash.fastASetSmall(Ruby runtime,
IRubyObject key,
IRubyObject value,
boolean prepareString) |
void |
RubyHash.fastASetSmallCheckString(Ruby runtime,
IRubyObject key,
IRubyObject value) |
void |
RubyHash.fastASetSmallCheckString19(Ruby runtime,
IRubyObject key,
IRubyObject value)
Deprecated.
|
static RubyFixnum |
RubyFixnum.five(Ruby runtime) |
protected static void |
RubyNumeric.floatStep(ThreadContext context,
Ruby runtime,
IRubyObject from,
IRubyObject to,
IRubyObject step,
Block block) |
static RubyFixnum |
RubyFixnum.four(Ruby runtime) |
IRubyObject |
RubyThread.genericRaise(Ruby runtime,
IRubyObject[] args,
RubyThread currentThread) |
protected static List<RubyString> |
RubyDir.getContents(FileResource directory,
Ruby runtime)
Returns the contents of the specified
directory as an
ArrayList containing the names of the files as Ruby Strings. |
protected static FileResource |
RubyDir.getDir(Ruby runtime,
String path,
boolean mustExist)
Returns a Java
File object for the specified path. |
protected static JRubyFile |
RubyDir.getDirForRmdir(Ruby runtime,
String path)
Similar to getDir, but performs different checks to match rmdir behavior.
|
static ModeFlags |
RubyIO.getIOModes(Ruby runtime,
String modesString)
Deprecated.
|
static int |
RubyIO.getIOModesIntFromString(Ruby runtime,
String modesString)
Deprecated.
|
IRubyObject |
RubyIO.getline(Ruby runtime,
org.jruby.util.ByteList separator)
Deprecated.
|
IRubyObject |
RubyIO.getline(Ruby runtime,
org.jruby.util.ByteList separator,
long limit)
Deprecated.
|
static org.joda.time.DateTimeZone |
RubyTime.getLocalTimeZone(Ruby runtime) |
IRubyObject[] |
RubyMatchData.getNamedBackrefValues(Ruby runtime) |
static IRubyObject |
RubyProcess.getpgid(Ruby runtime,
IRubyObject arg) |
static IRubyObject |
RubyProcess.getpgrp(Ruby runtime) |
static IRubyObject |
RubyProcess.getpriority(Ruby runtime,
IRubyObject arg1,
IRubyObject arg2) |
static IRubyObject |
RubyProcess.getrlimit(Ruby runtime,
IRubyObject arg) |
static RubySymbol |
RubySymbol.getSymbolLong(Ruby runtime,
long id) |
static org.joda.time.DateTimeZone |
RubyTime.getTimeZone(Ruby runtime,
long seconds) |
static org.joda.time.DateTimeZone |
RubyTime.getTimeZoneFromString(Ruby runtime,
String zone) |
static org.joda.time.DateTimeZone |
RubyTime.getTimeZoneFromTZString(Ruby runtime,
String zone) |
static org.joda.time.DateTimeZone |
RubyTime.getTimeZoneFromUtcOffset(Ruby runtime,
IRubyObject utcOffset) |
static org.joda.time.DateTimeZone |
RubyTime.getTimeZoneWithOffset(Ruby runtime,
String zoneName,
int offset) |
static IRubyObject |
RubyProcess.gid_set(Ruby runtime,
IRubyObject arg) |
static IRubyObject |
RubyProcess.gid(Ruby runtime) |
static void |
RubyArgsFile.initArgsFile(Ruby runtime) |
static void |
RubyGlobal.initARGV(Ruby runtime) |
IRubyObject |
RubyProcess.RubyStatus.inspect(Ruby runtime) |
static IRubyObject |
RubyString.inspect19(Ruby runtime,
org.jruby.util.ByteList byteList) |
static RubyNumeric |
RubyNumeric.int2fix(Ruby runtime,
long val) |
protected static IRubyObject |
RubyIO.ioClose(Ruby runtime,
IRubyObject io) |
static IRubyObject |
RubyProcess.kill(Ruby runtime,
IRubyObject[] args) |
RubyString |
RubyString.makeShared(Ruby runtime,
int index,
int len) |
RubyString |
RubyString.makeShared(Ruby runtime,
RubyClass meta,
int index,
int len) |
RubyString |
RubyString.makeShared19(Ruby runtime,
int index,
int len) |
RubyString |
RubyString.makeShared19(Ruby runtime,
RubyClass meta,
int index,
int len) |
RubyString |
RubyString.makeSharedString(Ruby runtime,
int index,
int len) |
RubyString |
RubyString.makeSharedString19(Ruby runtime,
int index,
int len) |
static int |
RubyRegexp.matcherMatch(Ruby runtime,
org.joni.Matcher matcher,
int start,
int range,
int option) |
static int |
RubyRegexp.matcherSearch(Ruby runtime,
org.joni.Matcher matcher,
int start,
int range,
int option) |
static RubyFixnum |
RubyFixnum.minus_one(Ruby runtime) |
static RubyString |
RubyString.newAllocatedString(Ruby runtime,
RubyClass metaClass) |
static RubyArray |
RubyArray.newArray(Ruby runtime)
rb_ary_new
|
static RubyArray |
RubyArray.newArray(Ruby runtime,
Collection<? extends IRubyObject> collection) |
static RubyArray |
RubyArray.newArray(Ruby runtime,
int len) |
static RubyArray |
RubyArray.newArray(Ruby runtime,
IRubyObject obj) |
static RubyArray |
RubyArray.newArray(Ruby runtime,
IRubyObject[] args)
rb_ary_new4, rb_ary_new3
|
static RubyArray |
RubyArray.newArray(Ruby runtime,
IRubyObject car,
IRubyObject cdr)
rb_assoc_new
|
static RubyArray |
RubyArray.newArray(Ruby runtime,
long len)
rb_ary_new2
|
static RubyArray |
RubyArray.newArrayLight(Ruby runtime)
rb_ary_new
|
static RubyArray |
RubyArray.newArrayLight(Ruby runtime,
int len) |
static RubyArray |
RubyArray.newArrayLight(Ruby runtime,
IRubyObject... objs) |
static RubyArray |
RubyArray.newArrayLight(Ruby runtime,
IRubyObject obj) |
static RubyArray |
RubyArray.newArrayLight(Ruby runtime,
long len) |
static RubyArray |
RubyArray.newArrayNoCopy(Ruby runtime,
IRubyObject[] args) |
static RubyArray |
RubyArray.newArrayNoCopy(Ruby runtime,
IRubyObject[] args,
int begin) |
static RubyArray |
RubyArray.newArrayNoCopy(Ruby runtime,
IRubyObject[] args,
int begin,
int length) |
static RubyArray |
RubyArray.newArrayNoCopyLight(Ruby runtime,
IRubyObject[] args) |
static RubyBignum |
RubyBignum.newBignum(Ruby runtime,
BigInteger value) |
static RubyBignum |
RubyBignum.newBignum(Ruby runtime,
double value) |
static RubyBignum |
RubyBignum.newBignum(Ruby runtime,
long value) |
static RubyBignum |
RubyBignum.newBignum(Ruby runtime,
String value) |
static RubyBinding |
RubyBinding.newBinding(Ruby runtime)
Deprecated.
|
static RubyBinding |
RubyBinding.newBinding(Ruby runtime,
Binding binding) |
static RubyBinding |
RubyBinding.newBinding(Ruby runtime,
IRubyObject self)
Deprecated.
|
static RubyBoolean |
RubyBoolean.newBoolean(Ruby runtime,
boolean value) |
static RubyClass |
RubyClass.newClass(Ruby runtime,
RubyClass superClass)
Construct a new class with the given name scoped under Object (global)
and with Object as its immediate superclass.
|
static RubyClass |
RubyClass.newClass(Ruby runtime,
RubyClass superClass,
CallSite[] extraCallSites)
A variation on newClass that allow passing in an array of supplementary
call sites to improve dynamic invocation.
|
static RubyClass |
RubyClass.newClass(Ruby runtime,
RubyClass superClass,
String name,
ObjectAllocator allocator,
RubyModule parent,
boolean setParent)
Construct a new class with the given name, allocator, parent class,
and containing class.
|
static RubyClass |
RubyClass.newClass(Ruby runtime,
RubyClass superClass,
String name,
ObjectAllocator allocator,
RubyModule parent,
boolean setParent,
CallSite[] extraCallSites)
A variation on newClass that allows passing in an array of supplementary
call sites to improve dynamic invocation performance.
|
static RubyComplex |
RubyComplex.newComplexRaw(Ruby runtime,
IRubyObject x)
rb_complex_raw1
|
static RubyComplex |
RubyComplex.newComplexRaw(Ruby runtime,
IRubyObject x,
IRubyObject y)
rb_complex_raw
|
static RubyRegexp |
RubyRegexp.newDRegexp(Ruby runtime,
RubyString pattern,
int joniOptions) |
static RubyRegexp |
RubyRegexp.newDRegexp(Ruby runtime,
RubyString pattern,
RegexpOptions options) |
static RubyRegexp |
RubyRegexp.newDRegexpEmbedded(Ruby runtime,
RubyString pattern,
int embeddedOptions) |
static RubyRegexp |
RubyRegexp.newDRegexpEmbedded19(Ruby runtime,
IRubyObject[] strings,
int embeddedOptions) |
static RubyArray |
RubyArray.newEmptyArray(Ruby runtime) |
static RubyString |
RubyString.newEmptyString(Ruby runtime) |
static RubyString |
RubyString.newEmptyString(Ruby runtime,
org.jcodings.Encoding enc) |
static RubyString |
RubyString.newEmptyString(Ruby runtime,
RubyClass metaClass) |
static RubyString |
RubyString.newEmptyString(Ruby runtime,
RubyClass metaClass,
org.jcodings.Encoding enc) |
static RubyEncoding |
RubyEncoding.newEncoding(Ruby runtime,
byte[] name,
int p,
int end,
boolean isDummy) |
static RubyException |
RubyException.newException(Ruby runtime,
RubyClass excptnClass,
String msg) |
static RubyFileStat |
RubyFileStat.newFileStat(Ruby runtime,
FileDescriptor descriptor) |
static RubyFileStat |
RubyFileStat.newFileStat(Ruby runtime,
int fileno) |
static RubyFileStat |
RubyFileStat.newFileStat(Ruby runtime,
String filename,
boolean lstat) |
static RubyFixnum |
RubyFixnum.newFixnum(Ruby runtime,
long value) |
static RubyFloat |
RubyFloat.newFloat(Ruby runtime,
double value) |
static RubySymbol |
RubySymbol.newHardSymbol(Ruby runtime,
IRubyObject name) |
static RubySymbol |
RubySymbol.newHardSymbol(Ruby runtime,
String name) |
static RubySymbol |
RubySymbol.newHardSymbol(Ruby runtime,
String name,
org.jcodings.Encoding encoding) |
static RubyHash |
RubyHash.newHash(Ruby runtime)
rb_hash_new
|
static RubyHash |
RubyHash.newHash(Ruby runtime,
Map valueMap,
IRubyObject defaultValue)
rb_hash_new
|
static RubySystemExit |
RubySystemExit.newInstance(Ruby runtime,
int status,
String message) |
static RubyString |
RubyString.newInternalFromJavaExternal(Ruby runtime,
String str)
Return a new Ruby String encoded as the default internal encoding given a Java String that
has come from an external source.
|
static RubyIO |
RubyIO.newIO(Ruby runtime,
Channel channel) |
static IOOptions |
RubyIO.newIOOptions(Ruby runtime,
int mode) |
static IOOptions |
RubyIO.newIOOptions(Ruby runtime,
IOOptions oldFlags,
int orOflags) |
static IOOptions |
RubyIO.newIOOptions(Ruby runtime,
long mode) |
static IOOptions |
RubyIO.newIOOptions(Ruby runtime,
ModeFlags modeFlags) |
static IOOptions |
RubyIO.newIOOptions(Ruby runtime,
String mode) |
static IRubyObject |
RubyThread.Location.newLocationArray(Ruby runtime,
RubyStackTraceElement[] elements) |
static ModeFlags |
RubyIO.newModeFlags(Ruby runtime,
int mode) |
static ModeFlags |
RubyIO.newModeFlags(Ruby runtime,
long mode) |
static ModeFlags |
RubyIO.newModeFlags(Ruby runtime,
String mode) |
static RubyModule |
RubyModule.newModule(Ruby runtime)
rb_module_new
|
static RubyModule |
RubyModule.newModule(Ruby runtime,
String name,
RubyModule parent,
boolean setParent)
rb_module_new/rb_define_module_id/rb_name_class/rb_set_class_path
|
static RubyNumeric |
RubyNumeric.newNumeric(Ruby runtime) |
static RubyProc |
RubyProc.newProc(Ruby runtime,
Block.Type type)
Deprecated.
|
static RubyProc |
RubyProc.newProc(Ruby runtime,
Block block,
Block.Type type) |
static RubyProc |
RubyProc.newProc(Ruby runtime,
Block block,
Block.Type type,
ISourcePosition sourcePosition)
Deprecated.
|
static RubyProc |
RubyProc.newProc(Ruby runtime,
Block block,
Block.Type type,
String file,
int line) |
static RubyProcess.RubyStatus |
RubyProcess.RubyStatus.newProcessStatus(Ruby runtime,
long status,
long pid) |
static RubyRational |
RubyRational.newRational(Ruby runtime,
long x,
long y) |
static RubyRegexp |
RubyRegexp.newRegexp(Ruby runtime,
org.jruby.util.ByteList pattern) |
static RubyRegexp |
RubyRegexp.newRegexp(Ruby runtime,
org.jruby.util.ByteList pattern,
int options) |
static RubyRegexp |
RubyRegexp.newRegexp(Ruby runtime,
org.jruby.util.ByteList pattern,
RegexpOptions options) |
static RubyRegexp |
RubyRegexp.newRegexp(Ruby runtime,
String pattern,
RegexpOptions options) |
static RubyRegexp |
RubyRegexp.newRegexpFromStr(Ruby runtime,
RubyString s,
int options) |
static RubyHash |
RubyHash.newSmallHash(Ruby runtime)
rb_hash_new
|
static RubyString |
RubyString.newString(Ruby runtime,
byte[] bytes) |
static RubyString |
RubyString.newString(Ruby runtime,
byte[] bytes,
int start,
int length) |
static RubyString |
RubyString.newString(Ruby runtime,
byte[] bytes,
int start,
int length,
org.jcodings.Encoding encoding) |
static RubyString |
RubyString.newString(Ruby runtime,
org.jruby.util.ByteList bytes) |
static RubyString |
RubyString.newString(Ruby runtime,
org.jruby.util.ByteList bytes,
org.jcodings.Encoding encoding) |
static RubyString |
RubyString.newString(Ruby runtime,
org.jruby.util.ByteList bytes,
int coderange) |
static RubyString |
RubyString.newString(Ruby runtime,
CharSequence str) |
static RubyString |
RubyString.newString(Ruby runtime,
RubyClass clazz,
CharSequence str)
Deprecated.
|
static RubyString |
RubyString.newString(Ruby runtime,
String str) |
static RubyString |
RubyString.newString(Ruby runtime,
String str,
org.jcodings.Encoding encoding) |
static RubyString |
RubyString.newStringLight(Ruby runtime,
org.jruby.util.ByteList bytes) |
static RubyString |
RubyString.newStringLight(Ruby runtime,
int size) |
static RubyString |
RubyString.newStringLight(Ruby runtime,
int size,
org.jcodings.Encoding encoding) |
static RubyString |
RubyString.newStringNoCopy(Ruby runtime,
byte[] bytes) |
static RubyString |
RubyString.newStringNoCopy(Ruby runtime,
byte[] bytes,
int start,
int length) |
static RubyString |
RubyString.newStringNoCopy(Ruby runtime,
org.jruby.util.ByteList bytes) |
static RubyString |
RubyString.newStringNoCopy(Ruby runtime,
org.jruby.util.ByteList bytes,
org.jcodings.Encoding enc,
int cr) |
static RubyString |
RubyString.newStringNoCopy(Ruby runtime,
RubyClass clazz,
org.jruby.util.ByteList bytes) |
static RubyString |
RubyString.newStringNoCopy(Ruby runtime,
RubyClass clazz,
org.jruby.util.ByteList bytes,
org.jcodings.Encoding enc,
int cr) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
byte[] bytes) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
byte[] bytes,
org.jcodings.Encoding encoding) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
byte[] bytes,
int start,
int length) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
byte[] bytes,
int start,
int length,
org.jcodings.Encoding encoding) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
org.jruby.util.ByteList bytes) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
org.jruby.util.ByteList bytes,
org.jcodings.Encoding encoding) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
org.jruby.util.ByteList bytes,
int codeRange) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
RubyClass clazz,
org.jruby.util.ByteList bytes) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
RubyClass clazz,
org.jruby.util.ByteList bytes,
org.jcodings.Encoding encoding) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
RubyString orig) |
static RubySymbol |
RubySymbol.newSymbol(Ruby runtime,
IRubyObject name) |
static RubySymbol |
RubySymbol.newSymbol(Ruby runtime,
String name) |
static RubySymbol |
RubySymbol.newSymbol(Ruby runtime,
String name,
org.jcodings.Encoding encoding) |
static RubyTime |
RubyTime.newTime(Ruby runtime,
org.joda.time.DateTime dt) |
static RubyTime |
RubyTime.newTime(Ruby runtime,
org.joda.time.DateTime dt,
long nsec) |
static RubyTime |
RubyTime.newTime(Ruby runtime,
long milliseconds) |
static RubyString |
RubyString.newUnicodeString(Ruby runtime,
CharSequence str) |
static RubyString |
RubyString.newUnicodeString(Ruby runtime,
String str) |
static RubyString |
RubyString.newUSASCIIString(Ruby runtime,
String str) |
static RubyString |
RubyString.newUsAsciiStringNoCopy(Ruby runtime,
org.jruby.util.ByteList bytes) |
static RubyString |
RubyString.newUsAsciiStringShared(Ruby runtime,
byte[] bytes,
int start,
int length) |
static RubyString |
RubyString.newUsAsciiStringShared(Ruby runtime,
org.jruby.util.ByteList bytes) |
static RubyString |
RubyString.newUTF16String(Ruby runtime,
CharSequence str) |
static RubyString |
RubyString.newUTF16String(Ruby runtime,
String str) |
static RubyString |
RubyString.newUTF8String(Ruby runtime,
CharSequence str) |
static RubyString |
RubyString.newUTF8String(Ruby runtime,
String str) |
static RubyFixnum |
RubyFixnum.one(Ruby runtime) |
protected void |
RubyHash.op_asetForString(Ruby runtime,
RubyString key,
IRubyObject value) |
protected void |
RubyHash.op_asetSmallForString(Ruby runtime,
RubyString key,
IRubyObject value) |
IRubyObject |
RubyProcess.RubyStatus.op_rshift(Ruby runtime,
IRubyObject other) |
JavaEmbedUtils.EvalUnit |
RubyRuntimeAdapter.parse(Ruby runtime,
InputStream in,
String filename,
int lineNumber) |
JavaEmbedUtils.EvalUnit |
RubyRuntimeAdapter.parse(Ruby runtime,
String script,
String filename,
int lineNumber) |
static IRubyObject |
RubyProcess.pid(Ruby runtime) |
static IRubyObject |
RubyProcess.ppid(Ruby runtime) |
static void |
RubyRegexp.preprocessCheck(Ruby runtime,
org.jruby.util.ByteList bytes) |
static RubyString |
RubyRegexp.preprocessDRegexp(Ruby runtime,
IRubyObject[] strings,
RegexpOptions options) |
static RubyString |
RubyRegexp.preprocessDRegexp(Ruby runtime,
RubyString[] strings,
int embeddedOptions) |
static RubyIO |
RubyIO.prepStdio(Ruby runtime,
InputStream f,
Channel c,
int fmode,
RubyClass klass,
String path) |
static RubyIO |
RubyIO.prepStdio(Ruby runtime,
OutputStream f,
Channel c,
int fmode,
RubyClass klass,
String path) |
static RubyBignum |
RubyRandom.randomSeed(Ruby runtime) |
protected IRubyObject |
RubyIO.rbIoClose(Ruby runtime) |
protected IRubyObject |
RubyFile.rbIoClose(Ruby runtime) |
static IRubyObject |
RubyProcess.UserID.rid(Ruby runtime) |
static IRubyObject |
RubyProcess.GroupID.rid(Ruby runtime) |
static IRubyObject |
RubyIO.select_static(ThreadContext context,
Ruby runtime,
IRubyObject[] args)
Deprecated.
|
static void |
Ruby.setCurrentInstance(Ruby runtime)
Deprecated.
|
static IRubyObject |
RubyProcess.setpgid(Ruby runtime,
IRubyObject arg1,
IRubyObject arg2) |
static IRubyObject |
RubyProcess.setpgrp(Ruby runtime) |
static IRubyObject |
RubyProcess.setpriority(Ruby runtime,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3) |
static IRubyObject |
RubyProcess.setsid(Ruby runtime) |
static void |
Ruby.setThreadLocalRuntime(Ruby ruby)
Set the thread-local runtime to the given runtime.
|
static RubyFloat |
RubyNumeric.str2fnum(Ruby runtime,
RubyString arg)
Same as RubyNumeric.str2fnum passing false for strict.
|
static RubyFloat |
RubyNumeric.str2fnum(Ruby runtime,
RubyString arg,
boolean strict)
Converts a string representation of a floating-point number to the
numeric value.
|
static RubyFloat |
RubyNumeric.str2fnum19(Ruby runtime,
RubyString arg,
boolean strict)
Deprecated.
|
static RubyInteger |
RubyNumeric.str2inum(Ruby runtime,
RubyString str,
int base) |
static RubyInteger |
RubyNumeric.str2inum(Ruby runtime,
RubyString str,
int base,
boolean strict)
Converts a string representation of an integer to the integer value.
|
RubyString |
RubyString.strDup(Ruby runtime) |
int |
RubyString.strHashCode(Ruby runtime)
Generate a hash for the String, using its associated Ruby instance's hash seed.
|
IRubyObject |
RubyString.substr(Ruby runtime,
int beg,
int len) |
IRubyObject |
RubyString.substr19(Ruby runtime,
int beg,
int len) |
static org.jruby.util.ByteList |
RubySymbol.symbolBytesFromString(Ruby runtime,
String internedSymbol) |
protected static ChannelFD |
RubyIO.sysopen(Ruby runtime,
String fname,
int oflags,
int perm) |
static void |
RubyProcess.syswait(Ruby runtime,
int pid) |
protected void |
RubyBasicObject.taint(Ruby runtime) |
static RubyFixnum |
RubyFixnum.three(Ruby runtime) |
static IRubyObject |
RubyProcess.times(Ruby runtime) |
protected RubyEnumerator.SizeFn |
RubyInteger.timesSizeFn(Ruby runtime) |
IRubyObject |
RubyProcess.RubyStatus.to_i(Ruby runtime) |
IRubyObject |
RubyProcess.RubyStatus.to_s(Ruby runtime) |
org.jcodings.Encoding |
RubyString.toEncoding(Ruby runtime) |
static RubyFixnum |
RubyFixnum.two(Ruby runtime) |
static IRubyObject |
RubyProcess.uid_set(Ruby runtime,
IRubyObject arg) |
static IRubyObject |
RubyProcess.uid(Ruby runtime) |
int |
RubyString.unseededStrHashCode(Ruby runtime)
Generate a hash for the String, without a seed.
|
static IRubyObject |
RubyProcess.wait(Ruby runtime,
IRubyObject[] args) |
static IRubyObject |
RubyProcess.waitall(Ruby runtime) |
static IRubyObject |
RubyProcess.waitpid(Ruby runtime,
IRubyObject[] args) |
static long |
RubyProcess.waitpid(Ruby runtime,
long pid,
int flags) |
static IRubyObject |
RubyProcess.waitpid2(Ruby runtime,
IRubyObject[] args) |
static RubyFixnum |
RubyFixnum.zero(Ruby runtime) |
static IRubyObject[] |
RubyEnumerable.zipCommonConvert(Ruby runtime,
IRubyObject[] args) |
static IRubyObject[] |
RubyEnumerable.zipCommonConvert(Ruby runtime,
IRubyObject[] args,
String method) |
Constructor and Description |
---|
AbstractRubyMethod(Ruby runtime,
RubyClass rubyClass) |
IncludedModule(Ruby runtime,
RubyClass superClass,
RubyModule origin) |
IncludedModuleWrapper(Ruby runtime,
RubyClass superClass,
RubyModule origin) |
MetaClass(Ruby runtime,
RubyClass superClass,
IRubyObject attached)
rb_class_boot (for MetaClasses) (in makeMetaClass(RubyClass))
|
NativeException(Ruby runtime,
RubyClass rubyClass,
Throwable cause) |
PrependedModule(Ruby runtime,
RubyClass superClass,
RubyModule origin) |
RubyArgsFile(Ruby runtime,
RubyClass metaClass) |
RubyArray(Ruby runtime,
int length) |
RubyBasicObject(Ruby runtime,
RubyClass metaClass)
Standard path for object creation.
|
RubyBasicObject(Ruby runtime,
RubyClass metaClass,
boolean useObjectSpace)
Path for objects who want to decide whether they don't want to be in
ObjectSpace even when it is on.
|
RubyBasicObject(Ruby runtime,
RubyClass metaClass,
boolean useObjectSpace,
boolean canBeTainted)
Deprecated.
|
RubyBignum(Ruby runtime,
BigInteger value) |
RubyBinding(Ruby runtime,
RubyClass rubyClass,
Binding binding) |
RubyClass(Ruby runtime)
used by CLASS_ALLOCATOR (any Class' class will be a Class!)
also used to bootstrap Object class
|
RubyClass(Ruby runtime,
RubyClass superClazz)
rb_class_boot (for plain Classes)
also used to bootstrap Module and Class classes
|
RubyClass(Ruby runtime,
RubyClass superClass,
boolean objectSpace)
separate path for MetaClass and IncludedModuleWrapper construction
(rb_class_boot version for MetaClasses)
no marshal, allocator initialization and addSubclass(this) here!
|
RubyClass(Ruby runtime,
RubyClass superClazz,
CallSite[] extraCallSites)
A constructor which allows passing in an array of supplementary call sites.
|
RubyContinuation(Ruby runtime) |
RubyContinuation(Ruby runtime,
IRubyObject tag)
A RubyContinuation used for catch/throw, which have a tag associated
|
RubyConverter(Ruby runtime) |
RubyConverter(Ruby runtime,
RubyClass klass) |
RubyDir(Ruby runtime,
RubyClass type) |
RubyEnumerable.AppendBlockCallback(Ruby runtime,
RubyArray result) |
RubyEnumerable.ChunkedBlockCallback(Ruby runtime,
IRubyObject enumerator) |
RubyEnumerable.PutKeyValueCallback(Ruby runtime,
RubyHash result) |
RubyException(Ruby runtime,
RubyClass rubyClass) |
RubyException(Ruby runtime,
RubyClass rubyClass,
String message) |
RubyFile(Ruby runtime,
RubyClass type) |
RubyFile(Ruby runtime,
String path,
InputStream in) |
RubyFile(Ruby runtime,
String path,
Reader reader) |
RubyFileStat(Ruby runtime,
RubyClass clazz) |
RubyFixnum(Ruby runtime) |
RubyFixnum(Ruby runtime,
long value) |
RubyFloat(Ruby runtime) |
RubyFloat(Ruby runtime,
double value) |
RubyGenerator(Ruby runtime,
RubyClass klass) |
RubyGlobal.CaseInsensitiveStringOnlyRubyHash(Ruby runtime,
Map<RubyString,RubyString> valueMap,
IRubyObject defaultValue,
boolean updateRealENV) |
RubyGlobal.InputGlobalVariable(Ruby runtime,
String name,
IRubyObject value) |
RubyGlobal.KCodeGlobalVariable(Ruby runtime,
String name,
IRubyObject value) |
RubyGlobal.OutputGlobalVariable(Ruby runtime,
String name,
IRubyObject value) |
RubyGlobal.StringGlobalVariable(Ruby runtime,
String name,
IRubyObject value) |
RubyGlobal.StringOnlyRubyHash(Ruby runtime,
Map<RubyString,RubyString> valueMap,
IRubyObject defaultValue) |
RubyGlobal.StringOnlyRubyHash(Ruby runtime,
Map<RubyString,RubyString> valueMap,
IRubyObject defaultValue,
boolean updateRealENV) |
RubyHash(Ruby runtime) |
RubyHash(Ruby runtime,
int buckets) |
RubyHash(Ruby runtime,
IRubyObject defaultValue) |
RubyHash(Ruby runtime,
IRubyObject defaultValue,
int buckets) |
RubyHash(Ruby runtime,
Map valueMap,
IRubyObject defaultValue) |
RubyHash(Ruby runtime,
RubyClass klass) |
RubyInteger(Ruby runtime,
RubyClass rubyClass) |
RubyInteger(Ruby runtime,
RubyClass rubyClass,
boolean useObjectSpace) |
RubyInteger(Ruby runtime,
RubyClass rubyClass,
boolean useObjectSpace,
boolean canBeTainted)
Deprecated.
|
RubyIO(Ruby runtime,
Channel channel) |
RubyIO(Ruby runtime,
InputStream inputStream) |
RubyIO(Ruby runtime,
OutputStream outputStream) |
RubyIO(Ruby runtime,
OutputStream outputStream,
boolean autoclose) |
RubyIO(Ruby runtime,
RubyClass type) |
RubyIO(Ruby runtime,
RubyClass klass,
Channel channel) |
RubyIO(Ruby runtime,
RubyClass cls,
ShellLauncher.POpenProcess process,
RubyHash options,
IOOptions ioOptions)
Deprecated.
|
RubyIO(Ruby runtime,
ShellLauncher.POpenProcess process,
IOOptions ioOptions) |
RubyIO(Ruby runtime,
STDIO stdio)
Deprecated.
|
RubyLocalJumpError(Ruby runtime,
RubyClass exceptionClass,
String message,
RubyLocalJumpError.Reason reason,
IRubyObject exitValue) |
RubyMatchData(Ruby runtime) |
RubyMatchData(Ruby runtime,
RubyClass metaClass) |
RubyMethod(Ruby runtime,
RubyClass rubyClass) |
RubyModule.ProfilingCacheEntryFactory(Ruby runtime,
RubyModule.CacheEntryFactory previous) |
RubyModule(Ruby runtime)
standard path for Module construction
|
RubyModule(Ruby runtime,
RubyClass metaClass)
used by MODULE_ALLOCATOR and RubyClass constructors
|
RubyModule(Ruby runtime,
RubyClass metaClass,
boolean objectSpace)
separate path for MetaClass construction
|
RubyNameError(Ruby runtime,
RubyClass exceptionClass) |
RubyNameError(Ruby runtime,
RubyClass exceptionClass,
String message) |
RubyNameError(Ruby runtime,
RubyClass exceptionClass,
String message,
IRubyObject name) |
RubyNameError(Ruby runtime,
RubyClass exceptionClass,
String message,
String name) |
RubyNil(Ruby runtime) |
RubyNoMethodError(Ruby runtime,
RubyClass exceptionClass) |
RubyNoMethodError(Ruby runtime,
RubyClass exceptionClass,
String message,
String name,
IRubyObject args) |
RubyNumeric(Ruby runtime,
RubyClass metaClass) |
RubyNumeric(Ruby runtime,
RubyClass metaClass,
boolean useObjectSpace) |
RubyNumeric(Ruby runtime,
RubyClass metaClass,
boolean useObjectSpace,
boolean canBeTainted)
Deprecated.
|
RubyObject.Data(Ruby runtime,
RubyClass metaClass,
Object data) |
RubyObject(Ruby runtime,
RubyClass metaClass)
Standard path for object creation.
|
RubyObject(Ruby runtime,
RubyClass metaClass,
boolean useObjectSpace)
Path for objects who want to decide whether they don't want to be in
ObjectSpace even when it is on.
|
RubyObject(Ruby runtime,
RubyClass metaClass,
boolean useObjectSpace,
boolean canBeTainted)
Deprecated.
|
RubyObjectSpace.WeakMap(Ruby runtime,
RubyClass cls) |
RubyObjectVar0(Ruby runtime,
RubyClass metaClass)
Standard path for object creation.
|
RubyObjectVar1(Ruby runtime,
RubyClass metaClass)
Standard path for object creation.
|
RubyObjectVar2(Ruby runtime,
RubyClass metaClass)
Standard path for object creation.
|
RubyObjectVar3(Ruby runtime,
RubyClass metaClass)
Standard path for object creation.
|
RubyObjectVar4(Ruby runtime,
RubyClass metaClass)
Standard path for object creation.
|
RubyObjectVar5(Ruby runtime,
RubyClass metaClass)
Standard path for object creation.
|
RubyObjectVar6(Ruby runtime,
RubyClass metaClass)
Standard path for object creation.
|
RubyObjectVar7(Ruby runtime,
RubyClass metaClass)
Standard path for object creation.
|
RubyObjectVar8(Ruby runtime,
RubyClass metaClass)
Standard path for object creation.
|
RubyObjectVar9(Ruby runtime,
RubyClass metaClass)
Standard path for object creation.
|
RubyProc(Ruby runtime,
RubyClass rubyClass,
Block.Type type) |
RubyProc(Ruby runtime,
RubyClass rubyClass,
Block.Type type,
ISourcePosition sourcePosition)
Deprecated.
|
RubyProc(Ruby runtime,
RubyClass rubyClass,
Block.Type type,
String file,
int line) |
RubyProcess.RubyStatus(Ruby runtime,
RubyClass metaClass,
long status,
long pid) |
RubyString(Ruby runtime,
RubyClass rubyClass) |
RubyString(Ruby runtime,
RubyClass rubyClass,
byte[] value) |
RubyString(Ruby runtime,
RubyClass rubyClass,
org.jruby.util.ByteList value) |
RubyString(Ruby runtime,
RubyClass rubyClass,
org.jruby.util.ByteList value,
boolean objectSpace) |
RubyString(Ruby runtime,
RubyClass rubyClass,
org.jruby.util.ByteList value,
org.jcodings.Encoding enc) |
RubyString(Ruby runtime,
RubyClass rubyClass,
org.jruby.util.ByteList value,
org.jcodings.Encoding encoding,
boolean objectSpace) |
RubyString(Ruby runtime,
RubyClass rubyClass,
org.jruby.util.ByteList value,
org.jcodings.Encoding enc,
int cr) |
RubyString(Ruby runtime,
RubyClass rubyClass,
org.jruby.util.ByteList value,
int cr) |
RubyString(Ruby runtime,
RubyClass rubyClass,
CharSequence value) |
RubyString(Ruby runtime,
RubyClass rubyClass,
CharSequence value,
org.jcodings.Encoding enc) |
RubySymbol.SymbolTable(Ruby runtime) |
RubySystemCallError(Ruby runtime,
RubyClass rubyClass) |
RubySystemCallError(Ruby runtime,
RubyClass rubyClass,
String message,
int errno) |
RubySystemExit(Ruby runtime,
RubyClass exceptionClass) |
RubyThread.Location(Ruby runtime,
RubyClass klass,
RubyStackTraceElement element) |
RubyThread(Ruby runtime,
RubyClass type) |
RubyThread(Ruby runtime,
RubyClass klass,
Runnable runnable) |
RubyTime(Ruby runtime,
RubyClass rubyClass) |
RubyTime(Ruby runtime,
RubyClass rubyClass,
org.joda.time.DateTime dt) |
RubyUnboundMethod(Ruby runtime) |
RubyYielder(Ruby runtime) |
RubyYielder(Ruby runtime,
RubyClass klass) |
Modifier and Type | Method and Description |
---|---|
static RubyArray |
ArgsUtil.convertToRubyArray(Ruby runtime,
IRubyObject value,
boolean coerce)
This name may be a bit misleading, since this also attempts to coerce
array behavior using to_ary.
|
static RubyArray |
ArgsUtil.convertToRubyArray19(Ruby runtime,
IRubyObject value,
boolean coerce) |
static RubyArray |
ArgsUtil.convertToRubyArrayWithCoerce(Ruby runtime,
IRubyObject value) |
static RubyArray |
ArgsUtil.convertToRubyArrayWithCoerce19(Ruby runtime,
IRubyObject value) |
static IRubyObject |
ArgsUtil.getOptionsArg(Ruby runtime,
IRubyObject... args) |
Modifier and Type | Method and Description |
---|---|
Ruby |
RubyWarnings.getRuntime() |
Ruby |
NullWarnings.getRuntime() |
Ruby |
IRubyWarnings.getRuntime() |
Constructor and Description |
---|
NullWarnings(Ruby runtime) |
RubyWarnings(Ruby runtime) |
Constructor and Description |
---|
JITCompiler.BlockJITClassGenerator(String className,
String methodName,
String key,
Ruby ruby,
MixedModeIRBlockBody body,
JVMVisitor visitor) |
JITCompiler.MethodJITClassGenerator(String className,
String methodName,
String key,
Ruby ruby,
MixedModeIRMethod method,
JVMVisitor visitor) |
JITCompiler(Ruby runtime) |
Modifier and Type | Method and Description |
---|---|
static void |
MethodMissing.init(Ruby ruby) |
Constructor and Description |
---|
MethodMissing(Ruby runtime,
RubyClass klazz) |
Modifier and Type | Method and Description |
---|---|
Ruby |
ScriptingContainer.getRuntime()
Deprecated.
As of JRuby 1.5.0. Use getProvider().getRuntime() method instead.
|
Modifier and Type | Method and Description |
---|---|
Ruby |
ThreadSafeLocalContextProvider.getRuntime() |
Ruby |
SingletonLocalContextProvider.getRuntime() |
Ruby |
SingleThreadLocalContextProvider.getRuntime() |
Ruby |
LocalContextProvider.getRuntime()
Returns a Ruby runtime of a specified scope.
|
Ruby |
ConcurrentLocalContextProvider.getRuntime() |
Ruby |
BiVariableMap.getRuntime() |
Ruby |
LocalContext.getThreadSafeRuntime()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
IRubyObject |
EmbedRubyRuntimeAdapterImpl.eval(Ruby runtime,
String script) |
JavaEmbedUtils.EvalUnit |
EmbedRubyRuntimeAdapterImpl.parse(Ruby runtime,
InputStream istream,
String filename,
int lineNumber) |
JavaEmbedUtils.EvalUnit |
EmbedRubyRuntimeAdapterImpl.parse(Ruby runtime,
String script,
String filename,
int lineNumber) |
Modifier and Type | Method and Description |
---|---|
void |
OSGiBundleLibrary.load(Ruby runtime,
boolean wrap) |
Constructor and Description |
---|
OSGiLoadService(Ruby runtime)
Default constructor
Optional constructor (why?)
|
Modifier and Type | Method and Description |
---|---|
static RubyHash |
CoreConstructors.createHash(Ruby runtime,
IRubyObject key,
IRubyObject value) |
static RubyHash |
CoreConstructors.createHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
IRubyObject key2,
IRubyObject value2) |
Modifier and Type | Method and Description |
---|---|
static void |
VariableInterceptor.inject(BiVariableMap map,
Ruby runtime,
ManyVarsDynamicScope scope,
int depth,
IRubyObject receiver)
Injects variable values from Java to Ruby just before an evaluation or
method invocation.
|
static void |
LocalGlobalVariable.retrieveByKey(Ruby runtime,
BiVariableMap vars,
String name)
Retrieves a global variable by key from Ruby runtime after the evaluation.
|
static void |
GlobalVariable.retrieveByKey(Ruby runtime,
BiVariableMap vars,
String key)
Retrieves a global variable by key from Ruby after the evaluation.
|
void |
GlobalVariable.setJavaObject(Ruby runtime,
Object javaObject)
Sets a Java object and its Ruby type as a value of this object.
|
void |
BiVariable.setJavaObject(Ruby runtime,
Object javaObject)
Sets a Java object as a value of this object.
|
static void |
VariableInterceptor.terminateGlobalVariables(LocalVariableBehavior behavior,
Collection<BiVariable> variables,
Ruby runtime)
Clears global variable values from Ruby runtime to behave the same as
JSR 223 reference implementation.
|
void |
GlobalVariable.tryEagerInjection(Ruby runtime,
IRubyObject receiver)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
RaiseException |
JumpException.FlowControlException.buildException(Ruby runtime) |
static RaiseException |
RaiseException.createNativeRaiseException(Ruby runtime,
Throwable cause)
Method still in use by jruby-openssl <= 0.5.2
|
static RaiseException |
RaiseException.createNativeRaiseException(Ruby runtime,
Throwable cause,
Member target) |
Constructor and Description |
---|
RaiseException(Ruby runtime,
RubyClass excptnClass,
String msg,
boolean nativeException) |
RaiseException(Ruby runtime,
RubyClass excptnClass,
String msg,
IRubyObject backtrace,
boolean nativeException) |
Modifier and Type | Method and Description |
---|---|
static void |
JRubyPOSIXHelper.checkErrno(Ruby runtime,
int result)
Helper for handling common POSIX situations where a negative return value
from a function call indicates an error, and errno must be consulted to
determine how exactly the function failed.
|
void |
LateLoadingLibrary.load(Ruby runtime,
boolean wrap) |
Constructor and Description |
---|
JRubyPOSIXHandler(Ruby runtime) |
Modifier and Type | Method and Description |
---|---|
static RubyClass |
RubyBigDecimal.createBigDecimal(Ruby runtime) |
void |
BigDecimalLibrary.load(Ruby runtime,
boolean wrap) |
Constructor and Description |
---|
RubyBigDecimal(Ruby runtime,
BigDecimal value) |
RubyBigDecimal(Ruby runtime,
BigDecimal value,
boolean isNan) |
RubyBigDecimal(Ruby runtime,
BigDecimal value,
int infinitySign) |
RubyBigDecimal(Ruby runtime,
BigDecimal value,
int infinitySign,
int zeroSign) |
RubyBigDecimal(Ruby runtime,
RubyBigDecimal rbd) |
RubyBigDecimal(Ruby runtime,
RubyClass klass) |
RubyBigDecimal(Ruby runtime,
RubyClass klass,
BigDecimal value) |
RubyBigDecimal(Ruby runtime,
RubyClass klass,
RubyBigDecimal rbd) |
Modifier and Type | Method and Description |
---|---|
void |
CoverageLibrary.load(Ruby runtime,
boolean wrap) |
Map<String,int[]> |
CoverageData.resetCoverage(Ruby runtime) |
void |
CoverageData.setCoverageEnabled(Ruby runtime,
boolean enabled) |
Modifier and Type | Method and Description |
---|---|
static void |
RubyDigest.createDigest(Ruby runtime) |
static void |
RubyDigest.createDigestMD5(Ruby runtime) |
static void |
RubyDigest.createDigestRMD160(Ruby runtime) |
static void |
RubyDigest.createDigestSHA1(Ruby runtime) |
static void |
RubyDigest.createDigestSHA2(Ruby runtime) |
void |
SHA2.load(Ruby runtime,
boolean wrap) |
void |
SHA1.load(Ruby runtime,
boolean wrap) |
void |
RMD160.load(Ruby runtime,
boolean wrap) |
void |
MD5.load(Ruby runtime,
boolean wrap) |
void |
DigestLibrary.load(Ruby runtime,
boolean wrap) |
Constructor and Description |
---|
RubyDigest.DigestBase(Ruby runtime,
RubyClass type) |
RubyDigest.DigestClass(Ruby runtime,
RubyClass type) |
Modifier and Type | Method and Description |
---|---|
static RubyModule |
RubyEtc.createEtcModule(Ruby runtime) |
void |
EtcLibrary.load(Ruby runtime,
boolean wrap) |
Modifier and Type | Method and Description |
---|---|
void |
FcntlLibrary.load(Ruby runtime,
boolean wrap) |
Modifier and Type | Field and Description |
---|---|
protected Ruby |
InvalidMemoryIO.runtime |
protected Ruby |
ArrayMemoryIO.runtime |
Modifier and Type | Method and Description |
---|---|
MemoryIO |
NoImplFactory.allocateDirectMemory(Ruby runtime,
int size,
boolean clear) |
abstract MemoryIO |
Factory.allocateDirectMemory(Ruby runtime,
int size,
boolean clear)
Allocates memory on the native C heap and wraps it in a MemoryIO accessor.
|
MemoryIO |
NoImplFactory.allocateDirectMemory(Ruby runtime,
int size,
int align,
boolean clear) |
abstract MemoryIO |
Factory.allocateDirectMemory(Ruby runtime,
int size,
int align,
boolean clear)
Allocates memory on the native C heap and wraps it in a MemoryIO accessor.
|
MemoryIO |
NoImplFactory.allocateTransientDirectMemory(Ruby runtime,
int size,
int align,
boolean clear) |
abstract MemoryIO |
Factory.allocateTransientDirectMemory(Ruby runtime,
int size,
int align,
boolean clear)
Allocates transient native memory (not from C heap) and wraps it in a MemoryIO accessor.
|
static void |
Util.checkBounds(Ruby runtime,
long size,
long off,
long len) |
static RubyClass |
AbstractInvoker.createAbstractInvokerClass(Ruby runtime,
RubyModule module) |
static RubyClass |
AbstractMemory.createAbstractMemoryClass(Ruby runtime,
RubyModule module) |
static RubyClass |
AutoPointer.createAutoPointerClass(Ruby runtime,
RubyModule module) |
static RubyClass |
Buffer.createBufferClass(Ruby runtime,
RubyModule module) |
static RubyClass |
CallbackInfo.createCallbackInfoClass(Ruby runtime,
RubyModule module)
Creates a CallbackInfo class for a ruby runtime
|
static RubyClass |
MappedType.createConverterTypeClass(Ruby runtime,
RubyModule ffiModule) |
static RubyModule |
DataConverter.createDataConverterModule(Ruby runtime,
RubyModule module) |
static RubyClass |
Enum.createEnumClass(Ruby runtime,
RubyModule ffiModule) |
static RubyClass |
Enums.createEnumsClass(Ruby runtime,
RubyModule ffiModule) |
static void |
IOModule.createIOModule(Ruby runtime,
RubyModule ffi) |
static RubyClass |
MemoryPointer.createMemoryPointerClass(Ruby runtime,
RubyModule module) |
static void |
Platform.createPlatformModule(Ruby runtime,
RubyModule ffi) |
static RubyClass |
Pointer.createPointerClass(Ruby runtime,
RubyModule module) |
static RubyClass |
StructByReference.createStructByReferenceClass(Ruby runtime,
RubyModule ffiModule) |
static RubyClass |
StructByValue.createStructByValueClass(Ruby runtime,
RubyModule ffiModule) |
static RubyClass |
Struct.createStructClass(Ruby runtime,
RubyModule module)
Registers the StructLayout class in the JRuby runtime.
|
static RubyClass |
StructLayout.createStructLayoutClass(Ruby runtime,
RubyModule module)
Registers the StructLayout class in the JRuby runtime.
|
static RubyClass |
Type.createTypeClass(Ruby runtime,
RubyModule ffiModule) |
Type |
TypeResolver.findType(Ruby runtime,
IRubyObject name) |
Type |
TypeResolver.findType(Ruby runtime,
IRubyObject name,
IRubyObject typeMap) |
static IRubyObject |
MemoryUtil.getArrayOfFloat32(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static IRubyObject |
MemoryUtil.getArrayOfFloat64(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static IRubyObject |
MemoryUtil.getArrayOfSigned16(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static IRubyObject |
MemoryUtil.getArrayOfSigned32(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static IRubyObject |
MemoryUtil.getArrayOfSigned64(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static IRubyObject |
MemoryUtil.getArrayOfSigned8(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static IRubyObject |
MemoryUtil.getArrayOfUnsigned16(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static IRubyObject |
MemoryUtil.getArrayOfUnsigned32(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static IRubyObject |
MemoryUtil.getArrayOfUnsigned64(Ruby runtime,
MemoryIO io,
long offset,
int count) |
static IRubyObject |
MemoryUtil.getArrayOfUnsigned8(Ruby runtime,
MemoryIO io,
long offset,
int count) |
abstract Pointer |
CallbackManager.getCallback(Ruby runtime,
CallbackInfo cbInfo,
Object proc) |
protected RubyClass |
NullMemoryIO.getErrorClass(Ruby runtime) |
protected RubyClass |
InvalidMemoryIO.getErrorClass(Ruby runtime) |
static Pointer |
Pointer.getNull(Ruby runtime) |
protected Pointer |
Pointer.getPointer(Ruby runtime,
long offset) |
protected Pointer |
Buffer.getPointer(Ruby runtime,
long offset) |
protected abstract Pointer |
AbstractMemory.getPointer(Ruby runtime,
long offset) |
static RubyClass |
Pointer.getPointerClass(Ruby runtime) |
static RubyString |
MemoryUtil.getTaintedByteString(Ruby runtime,
MemoryIO io,
long offset,
int length)
Reads a byte (binary) string from a memory object.
|
static IRubyObject |
MemoryUtil.getTaintedString(Ruby runtime,
MemoryIO io,
long offset)
Gets a NUL terminated string from a memory object
|
static IRubyObject |
MemoryUtil.getTaintedString(Ruby runtime,
MemoryIO io,
long offset,
int length)
Reads a NUL terminated string from a memory object
|
static RubyClass |
Type.getTypeClass(Ruby runtime) |
void |
NoImplFactory.init(Ruby runtime,
RubyModule ffi) |
void |
Factory.init(Ruby runtime,
RubyModule ffi)
Registers FFI ruby classes/modules
|
void |
FFIService.load(Ruby runtime,
boolean wrap) |
AbstractInvoker |
NoImplFactory.newFunction(Ruby runtime,
Pointer address,
CallbackInfo cbInfo) |
abstract AbstractInvoker |
Factory.newFunction(Ruby runtime,
Pointer address,
CallbackInfo cbInfo) |
static IRubyObject |
Util.newSigned16(Ruby runtime,
short value) |
static IRubyObject |
Util.newSigned32(Ruby runtime,
int value) |
static IRubyObject |
Util.newSigned64(Ruby runtime,
long value) |
static IRubyObject |
Util.newSigned8(Ruby runtime,
byte value) |
static RubyString |
MemoryUtil.newTaintedString(Ruby runtime,
byte[] bytes)
Creates a ruby string from a byte array and sets the taint flag on it
|
static IRubyObject |
Util.newUnsigned16(Ruby runtime,
short value) |
static IRubyObject |
Util.newUnsigned32(Ruby runtime,
int value) |
static IRubyObject |
Util.newUnsigned64(Ruby runtime,
long value) |
static IRubyObject |
Util.newUnsigned8(Ruby runtime,
byte value) |
AbstractMemory |
Pointer.order(Ruby runtime,
ByteOrder order) |
AbstractMemory |
Buffer.order(Ruby runtime,
ByteOrder order) |
abstract AbstractMemory |
AbstractMemory.order(Ruby runtime,
ByteOrder order) |
static ByteOrder |
Util.parseByteOrder(Ruby runtime,
IRubyObject byte_order) |
static void |
MemoryUtil.putArrayOfFloat32(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
static void |
MemoryUtil.putArrayOfFloat64(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
static void |
MemoryUtil.putArrayOfSigned16(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
static void |
MemoryUtil.putArrayOfSigned32(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
static void |
MemoryUtil.putArrayOfSigned64(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
static void |
MemoryUtil.putArrayOfSigned8(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
static void |
MemoryUtil.putArrayOfUnsigned16(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
static void |
MemoryUtil.putArrayOfUnsigned32(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
static void |
MemoryUtil.putArrayOfUnsigned64(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
static void |
MemoryUtil.putArrayOfUnsigned8(Ruby runtime,
MemoryIO io,
long offset,
RubyArray ary) |
protected AbstractMemory |
Pointer.slice(Ruby runtime,
long offset) |
protected AbstractMemory |
Buffer.slice(Ruby runtime,
long offset) |
protected abstract AbstractMemory |
AbstractMemory.slice(Ruby runtime,
long offset) |
protected AbstractMemory |
Pointer.slice(Ruby runtime,
long offset,
long size) |
protected AbstractMemory |
Buffer.slice(Ruby runtime,
long offset,
long size) |
protected abstract AbstractMemory |
AbstractMemory.slice(Ruby runtime,
long offset,
long size) |
MemoryIO |
NoImplFactory.wrapDirectMemory(Ruby runtime,
long address) |
abstract MemoryIO |
Factory.wrapDirectMemory(Ruby runtime,
long address)
Wraps a native C memory address in a MemoryIO accessor.
|
Constructor and Description |
---|
AbstractInvoker(Ruby runtime,
RubyClass klass,
int arity,
MemoryIO io)
Creates a new AbstractInvoker instance.
|
AbstractMemory(Ruby runtime,
RubyClass klass,
MemoryIO io,
long size) |
AbstractMemory(Ruby runtime,
RubyClass klass,
MemoryIO io,
long size,
int typeSize) |
ArrayMemoryIO(Ruby runtime,
byte[] buffer,
int offset,
int length) |
ArrayMemoryIO(Ruby runtime,
int size) |
AutoPointer(Ruby runtime,
RubyClass klazz) |
Buffer(Ruby runtime,
int size) |
Buffer(Ruby runtime,
int size,
int flags) |
Buffer(Ruby runtime,
RubyClass klass) |
CallbackInfo(Ruby runtime,
RubyClass klazz,
Type returnType,
Type[] paramTypes,
boolean stdcall)
Creates a new CallbackInfo instance.
|
FreedMemoryIO(Ruby runtime) |
InvalidMemoryIO(Ruby runtime,
boolean isDirect,
long address,
String message) |
MemoryObject(Ruby runtime,
RubyClass metaClass) |
MemoryPointer(Ruby runtime,
RubyClass klass) |
NullMemoryIO(Ruby runtime) |
Pointer(Ruby runtime,
MemoryIO io) |
Pointer(Ruby runtime,
MemoryIO io,
long size,
int typeSize) |
Pointer(Ruby runtime,
RubyClass klazz) |
Pointer(Ruby runtime,
RubyClass klass,
MemoryIO io) |
Pointer(Ruby runtime,
RubyClass klass,
MemoryIO io,
long size) |
Pointer(Ruby runtime,
RubyClass klass,
MemoryIO io,
long size,
int typeSize) |
Struct(Ruby runtime,
RubyClass klass)
Creates a new StructLayout instance.
|
StructLayout.ArrayField(Ruby runtime,
RubyClass klass) |
StructLayout.EnumField(Ruby runtime,
RubyClass klass) |
StructLayout.FunctionField(Ruby runtime,
RubyClass klass) |
StructLayout.InnerStructField(Ruby runtime,
RubyClass klass) |
StructLayout.MappedField(Ruby runtime,
RubyClass klass) |
StructLayout.NumberField(Ruby runtime,
RubyClass klass) |
StructLayout.PointerField(Ruby runtime,
RubyClass klass) |
Type.Array(Ruby runtime,
RubyClass klass,
Type componentType,
int length)
Initializes a new Type.Array instance.
|
Type.Array(Ruby runtime,
Type componentType,
int length)
Initializes a new Type.Array instance.
|
Type(Ruby runtime,
RubyClass klass,
NativeType type)
Initializes a new Type instance.
|
Type(Ruby runtime,
RubyClass klass,
NativeType type,
int size,
int alignment)
Initializes a new Type instance.
|
Modifier and Type | Method and Description |
---|---|
static RubyClass |
FileDescriptorIO.createFileDescriptorIOClass(Ruby runtime,
RubyModule module) |
Constructor and Description |
---|
FileDescriptorByteChannel(Ruby runtime,
int fd)
Creates a new FileDescriptorByteChannel.
|
FileDescriptorIO(Ruby runtime,
IRubyObject fd) |
FileDescriptorIO(Ruby runtime,
RubyClass klass) |
Modifier and Type | Method and Description |
---|---|
MemoryIO |
Factory.allocateDirectMemory(Ruby runtime,
int size,
boolean clear)
Allocates memory on the native C heap and wraps it in a MemoryIO accessor.
|
MemoryIO |
Factory.allocateDirectMemory(Ruby runtime,
int size,
int align,
boolean clear)
Allocates memory on the native C heap and wraps it in a MemoryIO accessor.
|
MemoryIO |
Factory.allocateTransientDirectMemory(Ruby runtime,
int size,
int align,
boolean clear) |
static RubyClass |
CallbackManager.createCallbackClass(Ruby runtime,
RubyModule module)
Creates a Callback class for a ruby runtime
|
static RubyClass |
DynamicLibrary.createDynamicLibraryClass(Ruby runtime,
RubyModule module) |
static DynamicMethod |
MethodFactory.createDynamicMethod(Ruby runtime,
RubyModule module,
com.kenai.jffi.Function function,
Type returnType,
Type[] parameterTypes,
com.kenai.jffi.CallingConvention convention,
IRubyObject enums,
boolean ignoreErrno) |
static RubyClass |
Function.createFunctionClass(Ruby runtime,
RubyModule module) |
static RubyClass |
JFFIInvoker.createInvokerClass(Ruby runtime,
RubyModule module) |
static RubyClass |
VariadicInvoker.createVariadicInvokerClass(Ruby runtime,
RubyModule module) |
Pointer |
CallbackManager.getCallback(Ruby runtime,
CallbackInfo cbInfo,
Object proc) |
NativeCallbackFactory |
CallbackManager.getCallbackFactory(Ruby runtime,
CallbackInfo cbInfo) |
void |
Factory.init(Ruby runtime,
RubyModule ffi) |
static IRubyObject |
JITRuntime.newBoolean(Ruby runtime,
int value) |
static IRubyObject |
JITRuntime.newBoolean(Ruby runtime,
long value) |
static IRubyObject |
JITRuntime.newFloat32(Ruby runtime,
int value) |
static IRubyObject |
JITRuntime.newFloat32(Ruby runtime,
long value) |
static IRubyObject |
JITRuntime.newFloat64(Ruby runtime,
long value) |
Function |
Factory.newFunction(Ruby runtime,
Pointer address,
CallbackInfo cbInfo) |
static IRubyObject |
JITRuntime.newNil(Ruby runtime,
int ignored) |
static IRubyObject |
JITRuntime.newNil(Ruby runtime,
long ignored) |
static IRubyObject |
JITRuntime.newPointer32(Ruby runtime,
int address) |
static IRubyObject |
JITRuntime.newPointer32(Ruby runtime,
long address) |
static IRubyObject |
JITRuntime.newPointer64(Ruby runtime,
long address) |
static IRubyObject |
JITRuntime.newSigned16(Ruby runtime,
int value) |
static IRubyObject |
JITRuntime.newSigned16(Ruby runtime,
long value) |
static IRubyObject |
JITRuntime.newSigned32(Ruby runtime,
int value) |
static IRubyObject |
JITRuntime.newSigned32(Ruby runtime,
long value) |
static IRubyObject |
JITRuntime.newSigned64(Ruby runtime,
long value) |
static IRubyObject |
JITRuntime.newSigned8(Ruby runtime,
int value) |
static IRubyObject |
JITRuntime.newSigned8(Ruby runtime,
long value) |
static IRubyObject |
JITRuntime.newString(Ruby runtime,
int address) |
static IRubyObject |
JITRuntime.newString(Ruby runtime,
long address) |
static IRubyObject |
JITRuntime.newUnsigned16(Ruby runtime,
int value) |
static IRubyObject |
JITRuntime.newUnsigned16(Ruby runtime,
long value) |
static IRubyObject |
JITRuntime.newUnsigned32(Ruby runtime,
int value) |
static IRubyObject |
JITRuntime.newUnsigned32(Ruby runtime,
long value) |
static IRubyObject |
JITRuntime.newUnsigned64(Ruby runtime,
long value) |
static IRubyObject |
JITRuntime.newUnsigned8(Ruby runtime,
int value) |
static IRubyObject |
JITRuntime.newUnsigned8(Ruby runtime,
long value) |
MemoryIO |
Factory.wrapDirectMemory(Ruby runtime,
long address) |
Constructor and Description |
---|
CodeMemoryIO(Ruby runtime,
long address) |
CodeMemoryIO(Ruby runtime,
Pointer pointer) |
DynamicLibrary.Symbol(Ruby runtime,
DynamicLibrary library,
String name,
MemoryIO io) |
DynamicLibrary(Ruby runtime,
RubyClass klass,
String name,
com.kenai.jffi.Library library) |
NativeCallbackFactory(Ruby runtime,
CallbackInfo cbInfo) |
Modifier and Type | Method and Description |
---|---|
void |
ThreadFiberLibrary.load(Ruby runtime,
boolean wrap) |
Constructor and Description |
---|
ThreadFiber(Ruby runtime,
RubyClass klass) |
Modifier and Type | Method and Description |
---|---|
void |
IOWaitLibrary.load(Ruby runtime,
boolean wrap) |
Modifier and Type | Method and Description |
---|---|
static RubyClass |
JRubyObjectInputStream.createJRubyObjectInputStream(Ruby runtime) |
void |
JRubyUtilLibrary.load(Ruby runtime,
boolean wrap) |
void |
JRubySerializationLibrary.load(Ruby runtime,
boolean wrap) |
void |
JRubyLibrary.load(Ruby runtime,
boolean wrap) |
Constructor and Description |
---|
JRubyExecutionContextLocal(Ruby runtime,
RubyClass type) |
JRubyFiberLocal(Ruby runtime,
RubyClass type) |
JRubyObjectInputStream(Ruby runtime,
RubyClass rubyClass) |
JRubyThreadLocal(Ruby runtime,
RubyClass type) |
Modifier and Type | Method and Description |
---|---|
void |
Rational.load(Ruby runtime,
boolean wrap) |
void |
Complex.load(Ruby runtime,
boolean wrap) |
Modifier and Type | Method and Description |
---|---|
static void |
NetProtocolBufferedIO.create(Ruby runtime) |
void |
NetProtocolBufferedIOLibrary.load(Ruby runtime,
boolean wrap) |
Modifier and Type | Method and Description |
---|---|
static void |
RubyNKF.createNKF(Ruby runtime) |
void |
NKFLibrary.load(Ruby runtime,
boolean wrap) |
Modifier and Type | Method and Description |
---|---|
void |
PathnameLibrary.load(Ruby runtime,
boolean wrap) |
Constructor and Description |
---|
RubyPathname(Ruby runtime,
RubyClass metaClass) |
Modifier and Type | Method and Description |
---|---|
static String |
RbConfigLibrary.getArchDir(Ruby runtime) |
static String |
RbConfigLibrary.getLibDir(Ruby runtime) |
static String |
RbConfigLibrary.getNormalizedHome(Ruby runtime) |
static String |
RbConfigLibrary.getRubygemsDir(Ruby runtime) |
static String |
RbConfigLibrary.getRubyLibDir(Ruby runtime) |
static String |
RbConfigLibrary.getRubyLibDirFor(Ruby runtime,
String runtimeVerStr) |
static String |
RbConfigLibrary.getRubySharedLibDir(Ruby runtime) |
static String |
RbConfigLibrary.getRuntimeVerStr(Ruby runtime) |
static String |
RbConfigLibrary.getSiteArchDir(Ruby runtime) |
static String |
RbConfigLibrary.getSiteDir(Ruby runtime) |
static String |
RbConfigLibrary.getSiteDirGeneral(Ruby runtime) |
static String |
RbConfigLibrary.getSiteLibDir(Ruby runtime) |
static String |
RbConfigLibrary.getSysConfDir(Ruby runtime) |
static String |
RbConfigLibrary.getVendorArchDir(Ruby runtime) |
static String |
RbConfigLibrary.getVendorDir(Ruby runtime) |
static String |
RbConfigLibrary.getVendorDirGeneral(Ruby runtime) |
static String |
RbConfigLibrary.getVendorLibDir(Ruby runtime) |
static Boolean |
RbConfigLibrary.isSiteVendorSame(Ruby runtime) |
void |
RbConfigLibrary.load(Ruby runtime,
boolean wrap)
Just enough configuration settings (most don't make sense in Java) to run the rubytests
unit tests.
|
Modifier and Type | Method and Description |
---|---|
Ruby |
Warnings.getRuntime() |
Ruby |
RipperParserBase.getRuntime() |
Ruby |
RipperLexer.getRuntime() |
Modifier and Type | Method and Description |
---|---|
static void |
RubyRipper.initRipper(Ruby runtime) |
void |
RipperLibrary.load(Ruby runtime,
boolean wrap) |
Modifier and Type | Method and Description |
---|---|
static void |
Addrinfo.createAddrinfo(Ruby runtime) |
static void |
Ifaddr.createIfaddr(Ruby runtime) |
static void |
Option.createOption(Ruby runtime) |
protected void |
RubySocket.handleSocketException(Ruby runtime,
String caller,
SocketException e) |
protected void |
RubyUNIXSocket.init_sock(Ruby runtime,
Channel channel) |
protected void |
RubyUNIXSocket.init_sock(Ruby runtime,
Channel channel,
String path) |
protected void |
RubyUNIXSocket.init_unixsock(Ruby runtime,
IRubyObject _path,
boolean server) |
protected ChannelFD |
RubySocket.initChannelFD(Ruby runtime) |
protected ChannelFD |
RubyServerSocket.initChannelFD(Ruby runtime) |
protected void |
RubySocket.initFromServer(Ruby runtime,
RubyServerSocket serverSocket,
SocketChannel socketChannel) |
void |
SocketLibrary.load(Ruby runtime,
boolean wrap) |
protected static ChannelFD |
RubyBasicSocket.newChannelFD(Ruby runtime,
Channel channel) |
protected static void |
RubyUNIXSocket.rb_sys_fail(Ruby runtime,
String message) |
static RuntimeException |
SocketUtils.sockerr_with_trace(Ruby runtime,
String msg,
StackTraceElement[] trace) |
static RuntimeException |
SocketUtils.sockerr(Ruby runtime,
String msg) |
static RuntimeException |
RubySocket.sockerr(Ruby runtime,
String msg)
Deprecated.
|
Constructor and Description |
---|
Addrinfo(Ruby runtime,
RubyClass cls) |
Addrinfo(Ruby runtime,
RubyClass cls,
InetAddress inetAddress) |
Addrinfo(Ruby runtime,
RubyClass cls,
InetAddress inetAddress,
int port) |
Addrinfo(Ruby runtime,
RubyClass cls,
InetAddress inetAddress,
int port,
SocketType socketType) |
Addrinfo(Ruby runtime,
RubyClass cls,
NetworkInterface networkInterface,
boolean isBroadcast) |
Addrinfo(Ruby runtime,
RubyClass cls,
NetworkInterface networkInterface,
InetAddress inetAddress) |
Ifaddr(Ruby runtime,
RubyClass metaClass) |
Ifaddr(Ruby runtime,
RubyClass metaClass,
NetworkInterface ni) |
Ifaddr(Ruby runtime,
RubyClass metaClass,
NetworkInterface ni,
InterfaceAddress it) |
Option(Ruby runtime,
jnr.constants.platform.ProtocolFamily family,
jnr.constants.platform.SocketLevel level,
jnr.constants.platform.SocketOption option,
int data) |
Option(Ruby runtime,
RubyClass klass) |
Option(Ruby runtime,
RubyClass klass,
jnr.constants.platform.ProtocolFamily family,
jnr.constants.platform.SocketLevel level,
jnr.constants.platform.SocketOption option,
int data) |
RubyBasicSocket(Ruby runtime,
RubyClass type) |
RubyIPSocket(Ruby runtime,
RubyClass type) |
RubyServerSocket(Ruby runtime,
RubyClass type) |
RubySocket(Ruby runtime,
RubyClass type) |
RubyTCPServer(Ruby runtime,
RubyClass type) |
RubyTCPSocket(Ruby runtime,
RubyClass type) |
RubyUDPSocket(Ruby runtime,
RubyClass type) |
RubyUNIXServer(Ruby runtime,
RubyClass type) |
RubyUNIXSocket(Ruby runtime,
RubyClass type) |
Modifier and Type | Method and Description |
---|---|
static RubyClass |
StringIO.createStringIOClass(Ruby runtime) |
void |
StringIOLibrary.load(Ruby runtime,
boolean wrap) |
Constructor and Description |
---|
StringIO(Ruby runtime,
RubyClass klass) |
Modifier and Type | Method and Description |
---|---|
static RubyClass |
RubyStringScanner.createScannerClass(Ruby runtime) |
void |
StringScannerLibrary.load(Ruby runtime,
boolean wrap) |
Constructor and Description |
---|
RubyStringScanner(Ruby runtime,
RubyClass type) |
Modifier and Type | Method and Description |
---|---|
static RubyClass |
Tempfile.createTempfileClass(Ruby runtime) |
void |
TempfileLibrary.load(Ruby runtime,
boolean wrap) |
Constructor and Description |
---|
Tempfile(Ruby runtime,
RubyClass type) |
Modifier and Type | Method and Description |
---|---|
void |
ThreadLibrary.load(Ruby runtime,
boolean wrap) |
static void |
SizedQueue.setup(Ruby runtime) |
static void |
Queue.setup(Ruby runtime) |
static void |
Mutex.setup(Ruby runtime) |
static void |
ConditionVariable.setup(Ruby runtime) |
Constructor and Description |
---|
ConditionVariable(Ruby runtime,
RubyClass type) |
Mutex(Ruby runtime,
RubyClass type) |
Queue(Ruby runtime,
RubyClass type) |
SizedQueue(Ruby runtime,
RubyClass type) |
SizedQueue(Ruby runtime,
RubyClass type,
int size) |
Modifier and Type | Method and Description |
---|---|
void |
Timeout.load(Ruby runtime,
boolean wrap) |
Modifier and Type | Method and Description |
---|---|
static void |
TracePoint.createTracePointClass(Ruby runtime) |
Constructor and Description |
---|
TracePoint(Ruby runtime,
RubyClass klass) |
Modifier and Type | Method and Description |
---|---|
void |
WeakRefLibrary.load(Ruby runtime,
boolean wrap) |
Constructor and Description |
---|
WeakRef(Ruby runtime,
RubyClass klazz) |
Modifier and Type | Method and Description |
---|---|
static RubyModule |
RubyZlib.createZlibModule(Ruby runtime)
Create the Zlib module and add it to the Ruby runtime.
|
void |
ZlibLibrary.load(Ruby runtime,
boolean wrap) |
protected RubyString |
RubyGzipFile.newStr(Ruby runtime,
org.jruby.util.ByteList value) |
Constructor and Description |
---|
JZlibDeflate(Ruby runtime,
RubyClass type) |
JZlibInflate(Ruby runtime,
RubyClass type) |
JZlibRubyGzipReader(Ruby runtime,
RubyClass type) |
JZlibRubyGzipWriter(Ruby runtime,
RubyClass type) |
RubyGzipFile(Ruby runtime,
RubyClass type) |
ZStream(Ruby runtime,
RubyClass type) |
Modifier and Type | Method and Description |
---|---|
static GlobalVariable |
GlobalVariable.newUndefined(Ruby runtime,
String name) |
Constructor and Description |
---|
GlobalVariables(Ruby runtime) |
ThreadService(Ruby runtime) |
UndefinedAccessor(Ruby runtime,
GlobalVariable globalVariable,
String name)
Constructor for UndefinedAccessor.
|
Modifier and Type | Method and Description |
---|---|
protected ScriptAndCode |
Compiler.execute(Ruby runtime,
IRScriptBody scope,
ClassDefiningClassLoader classLoader) |
protected abstract R |
IRTranslator.execute(Ruby runtime,
IRScriptBody producedIrScope,
S specificObject) |
R |
IRTranslator.execute(Ruby runtime,
ParseResult result,
S specificObject) |
Modifier and Type | Method and Description |
---|---|
protected IRubyObject |
Interpreter.execute(Ruby runtime,
IRScriptBody irScope,
IRubyObject self) |
Modifier and Type | Method and Description |
---|---|
Ruby |
UndefinedValue.getRuntime()
RubyMethod getRuntime.
|
Modifier and Type | Method and Description |
---|---|
RuntimeException |
IRException.getException(Ruby runtime) |
Modifier and Type | Method and Description |
---|---|
static RubyHash |
IRRuntimeHelpers.constructHashFromArray(Ruby runtime,
IRubyObject[] pairs) |
static IRScope |
IRRuntimeHelpers.decodeScopeFromBytes(Ruby runtime,
byte[] scopeBytes,
String filename) |
static org.jruby.util.ByteList |
IRRuntimeHelpers.newByteListFromRaw(Ruby runtime,
String str,
String encoding) |
static RubyString |
IRRuntimeHelpers.newFrozenStringFromRaw(Ruby runtime,
String str,
String encoding,
int cr) |
static DynamicMethod |
IRRuntimeHelpers.newInterpretedMetaClass(Ruby runtime,
IRScope metaClassBody,
IRubyObject obj)
Construct a new DynamicMethod to wrap the given IRModuleBody and singletonizable object.
|
static IRubyObject |
IRRuntimeHelpers.newProc(Ruby runtime,
Block block) |
static RubyModule |
IRRuntimeHelpers.newRubyClassFromIR(Ruby runtime,
IRScope irClassBody,
Object superClass,
Object container) |
Modifier and Type | Method and Description |
---|---|
static Ruby |
Bootstrap.runtime(ThreadContext context,
java.lang.invoke.MutableCallSite site) |
Modifier and Type | Method and Description |
---|---|
static Class |
RealClassGenerator.createOldStyleImplClass(Class[] superTypes,
RubyClass rubyClass,
Ruby ruby,
String name,
ClassDefiningClassLoader classLoader) |
static Class |
RealClassGenerator.createRealImplClass(Class superClass,
Class[] interfaces,
RubyClass rubyClass,
Ruby ruby,
String name) |
static Class |
RealClassGenerator.defineOldStyleImplClass(Ruby ruby,
String name,
String[] superTypeNames,
Map<String,List<Method>> simpleToAll,
ClassDefiningClassLoader classLoader)
This variation on defineImplClass uses all the classic type coercion logic
for passing args and returning results.
|
static Class |
RealClassGenerator.defineRealImplClass(Ruby ruby,
String name,
Class superClass,
String[] superTypeNames,
Map<String,List<Method>> simpleToAll)
This variation on defineImplClass uses all the classic type coercion logic
for passing args and returning results.
|
Modifier and Type | Method and Description |
---|---|
static <T extends ParameterTypes> |
CallableSelector.matchingCallableArityFour(Ruby runtime,
CallableSelector.CallableCache<T> cache,
T[] methods,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3) |
static JavaCallable |
CallableSelector.matchingCallableArityFour(Ruby runtime,
Map cache,
JavaCallable[] methods,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3)
Deprecated.
|
static <T extends JavaCallable> |
CallableSelector.matchingCallableArityFour(Ruby runtime,
RubyToJavaInvoker<T> invoker,
T[] methods,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3) |
static <T extends ParameterTypes> |
CallableSelector.matchingCallableArityN(Ruby runtime,
CallableSelector.CallableCache<T> cache,
T[] methods,
IRubyObject[] args) |
static JavaCallable |
CallableSelector.matchingCallableArityN(Ruby runtime,
Map cache,
JavaCallable[] methods,
IRubyObject[] args)
Deprecated.
|
static ParameterTypes |
CallableSelector.matchingCallableArityN(Ruby runtime,
Map cache,
ParameterTypes[] methods,
IRubyObject[] args)
Deprecated.
|
static <T extends JavaCallable> |
CallableSelector.matchingCallableArityN(Ruby runtime,
RubyToJavaInvoker<T> invoker,
T[] methods,
IRubyObject[] args) |
static <T extends ParameterTypes> |
CallableSelector.matchingCallableArityOne(Ruby runtime,
CallableSelector.CallableCache<T> cache,
T[] methods,
IRubyObject arg0) |
static JavaCallable |
CallableSelector.matchingCallableArityOne(Ruby runtime,
Map cache,
JavaCallable[] methods,
IRubyObject arg0)
Deprecated.
|
static <T extends JavaCallable> |
CallableSelector.matchingCallableArityOne(Ruby runtime,
RubyToJavaInvoker<T> invoker,
T[] methods,
IRubyObject arg0) |
static <T extends ParameterTypes> |
CallableSelector.matchingCallableArityThree(Ruby runtime,
CallableSelector.CallableCache<T> cache,
T[] methods,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2) |
static JavaCallable |
CallableSelector.matchingCallableArityThree(Ruby runtime,
Map cache,
JavaCallable[] methods,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2)
Deprecated.
|
static <T extends JavaCallable> |
CallableSelector.matchingCallableArityThree(Ruby runtime,
RubyToJavaInvoker<T> invoker,
T[] methods,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2) |
static <T extends ParameterTypes> |
CallableSelector.matchingCallableArityTwo(Ruby runtime,
CallableSelector.CallableCache<T> cache,
T[] methods,
IRubyObject arg0,
IRubyObject arg1) |
static JavaCallable |
CallableSelector.matchingCallableArityTwo(Ruby runtime,
Map cache,
JavaCallable[] methods,
IRubyObject arg0,
IRubyObject arg1)
Deprecated.
|
static <T extends JavaCallable> |
CallableSelector.matchingCallableArityTwo(Ruby runtime,
RubyToJavaInvoker<T> invoker,
T[] methods,
IRubyObject arg0,
IRubyObject arg1) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
RubyToJavaInvoker.createCallable(Ruby runtime,
Member member) |
protected JavaCallable |
MethodInvoker.createCallable(Ruby runtime,
Member member) |
protected JavaCallable |
ConstructorInvoker.createCallable(Ruby ruby,
Member member) |
Modifier and Type | Method and Description |
---|---|
static RubyClass |
MapJavaProxy.createMapJavaProxy(Ruby runtime) |
Constructor and Description |
---|
ArrayJavaProxy(Ruby runtime,
RubyClass klazz,
Object array) |
ArrayJavaProxy(Ruby runtime,
RubyClass klazz,
Object array,
JavaUtil.JavaConverter converter) |
ArrayJavaProxyCreator(Ruby runtime)
Deprecated.
|
ConcreteJavaProxy(Ruby runtime,
RubyClass klazz) |
ConcreteJavaProxy(Ruby runtime,
RubyClass klazz,
Object object) |
InterfaceJavaProxy(Ruby runtime,
RubyClass klazz) |
JavaProxy(Ruby runtime,
RubyClass klazz) |
JavaProxy(Ruby runtime,
RubyClass klazz,
Object object) |
MapJavaProxy(Ruby runtime,
RubyClass klazz) |
MapJavaProxy(Ruby runtime,
RubyClass klazz,
Map map) |
Modifier and Type | Method and Description |
---|---|
static IRubyObject |
ArrayUtils.arefDirect(Ruby runtime,
Object array,
JavaUtil.JavaConverter javaConverter,
int intIndex) |
static IRubyObject |
ArrayUtils.asetDirect(Ruby runtime,
Object array,
JavaUtil.JavaConverter javaConverter,
int intIndex,
IRubyObject value) |
static ArrayJavaProxy |
ArrayUtils.newProxiedArray(Ruby runtime,
Class<?> componentType,
int size) |
static ArrayJavaProxy |
ArrayUtils.newProxiedArray(Ruby runtime,
Class<?> componentType,
JavaUtil.JavaConverter converter,
int size) |
static void |
ArrayUtils.setWithExceptionHandlingDirect(Ruby runtime,
Object ary,
int intIndex,
Object javaObject) |
Constructor and Description |
---|
BlankSlateWrapper(Ruby runtime,
RubyClass superClass,
RubyModule delegate) |
Modifier and Type | Method and Description |
---|---|
static Ruby |
JavaEmbedUtils.initialize(List<String> loadPaths)
Get an instance of a JRuby runtime.
|
static Ruby |
JavaEmbedUtils.initialize(List<String> loadPaths,
RubyInstanceConfig config)
Get an instance of a JRuby runtime.
|
Modifier and Type | Method and Description |
---|---|
IRubyObject |
JavaArray.arefDirect(Ruby runtime,
int intIndex) |
IRubyObject |
JavaArray.asetDirect(Ruby runtime,
int intIndex,
IRubyObject value) |
static IRubyObject |
Java.constructProxy(Ruby runtime,
Constructor proxyConstructor,
RubyClass clazz) |
abstract IRubyObject |
JavaUtil.JavaConverter.convert(Ruby runtime,
Object object) |
static Object |
JavaUtil.convertArgument(Ruby runtime,
Object argument,
Class<?> parameterType)
Deprecated.
|
static IRubyObject |
JavaUtil.convertJavaArrayElementToRuby(Ruby runtime,
JavaUtil.JavaConverter converter,
Object array,
int i) |
static IRubyObject[] |
JavaUtil.convertJavaArrayToRuby(Ruby runtime,
Object[] objects) |
static IRubyObject |
JavaUtil.convertJavaToRuby(Ruby runtime,
boolean b) |
static IRubyObject |
JavaUtil.convertJavaToRuby(Ruby runtime,
double d) |
static IRubyObject |
JavaUtil.convertJavaToRuby(Ruby runtime,
float f) |
static IRubyObject |
JavaUtil.convertJavaToRuby(Ruby runtime,
int i) |
static IRubyObject |
JavaUtil.convertJavaToRuby(Ruby runtime,
JavaUtil.JavaConverter converter,
Object object)
Deprecated.
|
static IRubyObject |
JavaUtil.convertJavaToRuby(Ruby runtime,
long l) |
static IRubyObject |
JavaUtil.convertJavaToRuby(Ruby runtime,
Object object) |
static IRubyObject |
JavaUtil.convertJavaToRuby(Ruby runtime,
Object object,
Class javaClass) |
static IRubyObject |
JavaUtil.convertJavaToUsableRubyObject(Ruby runtime,
Object object)
Returns a usable RubyObject; for types that are not converted to Ruby native
types, a Java proxy will be returned.
|
static IRubyObject |
JavaUtil.convertJavaToUsableRubyObjectWithConverter(Ruby runtime,
Object object,
JavaUtil.JavaConverter converter) |
static JavaMethod |
JavaMethod.create(Ruby runtime,
Class<?> javaClass,
String methodName,
Class<?>[] argumentTypes)
Deprecated.
|
static JavaConstructor |
JavaConstructor.create(Ruby runtime,
Constructor<?> constructor) |
static JavaMethod |
JavaMethod.create(Ruby runtime,
Method method)
Deprecated.
|
static JavaMethod |
JavaMethod.createDeclared(Ruby runtime,
Class<?> javaClass,
String methodName,
Class<?>[] argumentTypes)
Deprecated.
|
static RubyClass |
JavaArray.createJavaArrayClass(Ruby runtime,
RubyModule Java) |
static RubyModule |
JavaArrayUtilities.createJavaArrayUtilitiesModule(Ruby runtime) |
static RubyClass |
JavaClass.createJavaClassClass(Ruby runtime,
RubyModule Java) |
static RubyClass |
JavaConstructor.createJavaConstructorClass(Ruby runtime,
RubyModule javaModule) |
static RubyClass |
JavaField.createJavaFieldClass(Ruby runtime,
RubyModule javaModule) |
static RubyClass |
JavaMethod.createJavaMethodClass(Ruby runtime,
RubyModule javaModule) |
static RubyModule |
Java.createJavaModule(Ruby runtime) |
static RubyClass |
JavaObject.createJavaObjectClass(Ruby runtime,
RubyModule javaModule) |
static JavaClass |
JavaClass.forNameQuiet(Ruby runtime,
String className) |
static JavaClass |
JavaClass.forNameVerbose(Ruby runtime,
String className) |
static RubyModule |
Java.get_interface_module(Ruby runtime,
IRubyObject javaClassObject) |
static JavaClass |
JavaClass.get(Ruby runtime,
Class<?> klass) |
abstract IRubyObject |
JavaUtil.JavaConverter.get(Ruby runtime,
Object array,
int i) |
static IRubyObject |
Java.getInstance(Ruby runtime,
Object rawJavaObject)
Same as Java#getInstance(runtime, rawJavaObject, false).
|
static IRubyObject |
Java.getInstance(Ruby runtime,
Object rawJavaObject,
boolean forceCache)
Returns a new proxy instance of a type corresponding to rawJavaObject's class,
or the cached proxy if we've already seen this object.
|
static RubyModule |
Java.getInterfaceModule(Ruby runtime,
Class javaClass) |
static RubyModule |
Java.getInterfaceModule(Ruby runtime,
JavaClass javaClass) |
static RubyModule |
Java.getJavaPackageModule(Ruby runtime,
Package pkg) |
static JavaCallable |
JavaClass.getMatchingCallable(Ruby runtime,
Class<?> javaClass,
String methodName,
Class<?>[] argumentTypes) |
static JavaConstructor |
JavaConstructor.getMatchingConstructor(Ruby runtime,
Class<?> javaClass,
Class<?>[] argumentTypes) |
static JavaMethod |
JavaMethod.getMatchingDeclaredMethod(Ruby runtime,
Class<?> javaClass,
String methodName,
Class<?>[] argumentTypes) |
static RubyModule |
Java.getProxyClass(Ruby runtime,
Class<?> clazz) |
static RubyModule |
Java.getProxyClass(Ruby runtime,
JavaClass javaClass) |
static RubyClass |
Java.getProxyClassForObject(Ruby runtime,
Object object) |
static Constructor |
Java.getRealClassConstructor(Ruby runtime,
Class<?> proxyImplClass) |
static RubyArray |
JavaClass.getRubyArray(Ruby runtime,
Class<?>[] classes)
Deprecated.
|
static Object |
JavaEmbedUtils.invokeMethod(Ruby runtime,
Object receiver,
String method,
Object[] args,
Class returnType)
Convenience function for embedders
|
static IRubyObject |
JavaUtil.java_to_ruby(Ruby runtime,
IRubyObject object)
Deprecated.
|
static IRubyObject |
JavaEmbedUtils.javaToRuby(Ruby runtime,
boolean value) |
static IRubyObject |
JavaEmbedUtils.javaToRuby(Ruby runtime,
byte value) |
static IRubyObject |
JavaEmbedUtils.javaToRuby(Ruby runtime,
char value) |
static IRubyObject |
JavaEmbedUtils.javaToRuby(Ruby runtime,
double value) |
static IRubyObject |
JavaEmbedUtils.javaToRuby(Ruby runtime,
float value) |
static IRubyObject |
JavaEmbedUtils.javaToRuby(Ruby runtime,
int value) |
static IRubyObject |
JavaEmbedUtils.javaToRuby(Ruby runtime,
long value) |
static IRubyObject |
JavaEmbedUtils.javaToRuby(Ruby runtime,
Object value)
Convert a java object to a Ruby object.
|
static IRubyObject |
JavaEmbedUtils.javaToRuby(Ruby runtime,
short value) |
void |
Java.load(Ruby runtime,
boolean wrap) |
static RaiseException |
JavaMethod.newArgSizeMismatchError(Ruby runtime,
Class... argTypes) |
static RaiseException |
JavaMethod.newMethodNotFoundError(Ruby runtime,
Class target,
String prettyName,
String simpleName) |
protected static void |
JavaObject.registerRubyMethods(Ruby runtime,
RubyClass JavaObject) |
static void |
JavaCallable.registerRubyMethods(Ruby runtime,
RubyClass result) |
static void |
JavaAccessibleObject.registerRubyMethods(Ruby runtime,
RubyClass result) |
static Object |
JavaEmbedUtils.rubyToJava(Ruby runtime,
IRubyObject value,
Class type)
Convert a Ruby object to a Java object.
|
abstract void |
JavaUtil.JavaConverter.set(Ruby runtime,
Object array,
int i,
IRubyObject value) |
static void |
JavaEmbedUtils.terminate(Ruby runtime)
Dispose of the runtime you initialized.
|
static IRubyObject |
JavaObject.to_s(Ruby runtime,
Object dataStruct) |
static RubyArray |
JavaClass.toRubyArray(Ruby runtime,
Class<?>[] classes) |
static RaiseException |
JavaClass.undefinedFieldError(Ruby runtime,
String javaClassName,
String name) |
static JavaObject |
JavaUtil.unwrapJavaObject(Ruby runtime,
IRubyObject convertee,
String errorMessage)
Deprecated.
|
static Object |
JavaUtil.unwrapJavaValue(Ruby runtime,
IRubyObject object,
String errorMessage)
Deprecated.
|
static IRubyObject |
Java.wrap(Ruby runtime,
IRubyObject java_object) |
static JavaObject |
JavaObject.wrap(Ruby runtime,
Object value) |
static IRubyObject |
Java.wrapJavaObject(Ruby runtime,
Object object) |
Constructor and Description |
---|
JavaAccessibleObject(Ruby runtime,
RubyClass rubyClass) |
JavaArray(Ruby runtime,
Object array) |
JavaCallable(Ruby runtime,
RubyClass rubyClass,
Class<?>[] parameterTypes) |
JavaClass(Ruby runtime,
Class<?> javaClass) |
JavaConstructor(Ruby runtime,
Constructor<?> constructor) |
JavaEmbedUtils.InterpretedEvalUnit(Ruby runtime,
Node node) |
JavaField(Ruby runtime,
Field field) |
JavaMethod(Ruby runtime,
Method method) |
JavaObject(Ruby runtime,
Object value) |
JavaObject(Ruby runtime,
RubyClass rubyClass,
Object value) |
JavaSupportImpl(Ruby runtime) |
Modifier and Type | Field and Description |
---|---|
protected Ruby |
Initializer.runtime |
Modifier and Type | Method and Description |
---|---|
static RubyModule |
Initializer.setupProxyClass(Ruby runtime,
Class<?> javaClass,
RubyClass proxy) |
static RubyModule |
Initializer.setupProxyModule(Ruby runtime,
Class<?> javaClass,
RubyModule proxy) |
Constructor and Description |
---|
ClassInitializer(Ruby runtime,
Class<?> javaClass) |
Initializer(Ruby runtime,
Class javaClass) |
InterfaceInitializer(Ruby runtime,
Class<?> javaClass) |
Modifier and Type | Method and Description |
---|---|
static RubyClass |
JavaProxyClass.createJavaProxyClassClass(Ruby runtime,
RubyModule Java) |
static void |
JavaProxyClass.createJavaProxyClasses(Ruby runtime,
RubyModule Java) |
static RubyClass |
JavaProxyConstructor.createJavaProxyConstructorClass(Ruby runtime,
RubyModule Java) |
static RubyClass |
JavaProxyClass.ProxyMethodImpl.createJavaProxyMethodClass(Ruby runtime,
RubyModule Java) |
static void |
JavaProxyClass.createJavaProxyModule(Ruby runtime)
Deprecated.
|
static JavaProxyClass |
JavaProxyClass.getProxyClass(Ruby runtime,
Class superClass,
Class[] interfaces) |
static JavaProxyClass |
JavaProxyClass.getProxyClass(Ruby runtime,
Class superClass,
Class[] interfaces,
Set<String> names) |
JavaProxyClass |
JavaProxyClassFactory.newProxyClass(Ruby runtime,
ClassLoader loader,
String targetClassName,
Class superClass,
Class[] interfaces,
Set<String> names) |
static Object |
JavaProxyClass.newProxyInstance(Ruby runtime,
Class superClass,
Class[] interfaces,
Class[] constructorParameters,
Object[] constructorArgs,
JavaProxyInvocationHandler handler) |
protected static void |
JavaProxyReflectionObject.registerRubyMethods(Ruby runtime,
RubyClass klass) |
Constructor and Description |
---|
JavaProxyClass.ProxyMethodImpl(Ruby runtime,
JavaProxyClass clazz,
Method method,
Method superMethod) |
JavaProxyReflectionObject(Ruby runtime,
RubyClass metaClass) |
Modifier and Type | Method and Description |
---|---|
static RubyHash |
RuntimeHelpers.constructHash(Ruby runtime,
IRubyObject key,
IRubyObject value)
Deprecated.
|
static RubyHash |
RuntimeHelpers.constructHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
IRubyObject key2,
IRubyObject value2)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static org.jruby.util.ByteList |
LexingCommon.parseMagicComment(Ruby runtime,
org.jruby.util.ByteList magicLine) |
Modifier and Type | Field and Description |
---|---|
static Ruby |
DripMain.DRIP_RUNTIME |
Modifier and Type | Method and Description |
---|---|
static BeanManager |
BeanManagerFactory.create(Ruby runtime,
boolean managementEnabled) |
Constructor and Description |
---|
BeanManagerImpl(Ruby ruby,
boolean managementEnabled) |
Config(Ruby ruby) |
ParserStats(Ruby ruby) |
Runtime(Ruby ruby) |
Modifier and Type | Method and Description |
---|---|
Ruby |
ParserConfiguration.getRuntime() |
Constructor and Description |
---|
Parser(Ruby runtime) |
ParserConfiguration(Ruby runtime,
int lineNumber,
boolean inlineSource,
boolean isFileParse,
boolean saveData) |
ParserConfiguration(Ruby runtime,
int lineNumber,
boolean inlineSource,
boolean isFileParse,
boolean saveData,
RubyInstanceConfig config) |
ParserConfiguration(Ruby runtime,
int lineNumber,
boolean inlineSource,
boolean isFileParse,
RubyInstanceConfig config) |
StaticScopeFactory(Ruby runtime) |
Modifier and Type | Field and Description |
---|---|
Ruby |
ThreadContext.runtime |
protected Ruby |
GlobalVariable.runtime |
Modifier and Type | Method and Description |
---|---|
Ruby |
ThreadContext.getRuntime()
Retrieve the runtime associated with this context.
|
Modifier and Type | Method and Description |
---|---|
static RubySymbol |
Helpers.addInstanceMethod(RubyModule containingClass,
String name,
DynamicMethod method,
Visibility visibility,
ThreadContext context,
Ruby runtime) |
IRubyObject |
ObjectAllocator.allocate(Ruby runtime,
RubyClass klazz) |
static RubyArray |
Helpers.argumentDescriptorsToParameters(Ruby runtime,
ArgumentDescriptor[] argsDesc,
boolean isLambda)
Convert a parameter list from ArgumentDescriptor format to "Array of Array" format
|
static RubyArray |
Helpers.arrayValue(ThreadContext context,
Ruby runtime,
IRubyObject value) |
static IRubyObject |
Helpers.breakLocalJumpError(Ruby runtime,
IRubyObject value) |
static int |
Arity.checkArgumentCount(Ruby runtime,
int length,
int min,
int max) |
static int |
Arity.checkArgumentCount(Ruby runtime,
int length,
int min,
int max,
boolean hasKwargs) |
static int |
Arity.checkArgumentCount(Ruby runtime,
IRubyObject[] args,
int min,
int max) |
static int |
Arity.checkArgumentCount(Ruby runtime,
String name,
int length,
int min,
int max) |
static int |
Arity.checkArgumentCount(Ruby runtime,
String name,
int length,
int min,
int max,
boolean hasKwargs) |
static int |
Arity.checkArgumentCount(Ruby runtime,
String name,
IRubyObject[] args,
int min,
int max) |
void |
Arity.checkArity(Ruby runtime,
int length) |
void |
Signature.checkArity(Ruby runtime,
IRubyObject[] args) |
void |
Arity.checkArity(Ruby runtime,
IRubyObject[] args) |
static RubyHash |
Helpers.constructHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1) |
static RubyHash |
Helpers.constructHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1,
IRubyObject key2,
IRubyObject value2,
boolean prepareString2) |
static RubyHash |
Helpers.constructHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1,
IRubyObject key2,
IRubyObject value2,
boolean prepareString2,
IRubyObject key3,
IRubyObject value3,
boolean prepareString3) |
static RubyHash |
Helpers.constructHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1,
IRubyObject key2,
IRubyObject value2,
boolean prepareString2,
IRubyObject key3,
IRubyObject value3,
boolean prepareString3,
IRubyObject key4,
IRubyObject value4,
boolean prepareString4) |
static RubyHash |
Helpers.constructHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1,
IRubyObject key2,
IRubyObject value2,
boolean prepareString2,
IRubyObject key3,
IRubyObject value3,
boolean prepareString3,
IRubyObject key4,
IRubyObject value4,
boolean prepareString4,
IRubyObject key5,
IRubyObject value5,
boolean prepareString5) |
static RubyArray |
Helpers.constructRubyArray(Ruby runtime,
IRubyObject one) |
static RubyArray |
Helpers.constructRubyArray(Ruby runtime,
IRubyObject one,
IRubyObject two) |
static RubyArray |
Helpers.constructRubyArray(Ruby runtime,
IRubyObject one,
IRubyObject two,
IRubyObject three) |
static RubyArray |
Helpers.constructRubyArray(Ruby runtime,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four) |
static RubyArray |
Helpers.constructRubyArray(Ruby runtime,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five) |
static RubyArray |
Helpers.constructRubyArray(Ruby runtime,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six) |
static RubyArray |
Helpers.constructRubyArray(Ruby runtime,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six,
IRubyObject seven) |
static RubyArray |
Helpers.constructRubyArray(Ruby runtime,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six,
IRubyObject seven,
IRubyObject eight) |
static RubyArray |
Helpers.constructRubyArray(Ruby runtime,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six,
IRubyObject seven,
IRubyObject eight,
IRubyObject nine) |
static RubyArray |
Helpers.constructRubyArray(Ruby runtime,
IRubyObject one,
IRubyObject two,
IRubyObject three,
IRubyObject four,
IRubyObject five,
IRubyObject six,
IRubyObject seven,
IRubyObject eight,
IRubyObject nine,
IRubyObject ten) |
static RubyHash |
Helpers.constructSmallHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1) |
static RubyHash |
Helpers.constructSmallHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1,
IRubyObject key2,
IRubyObject value2,
boolean prepareString2) |
static RubyHash |
Helpers.constructSmallHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1,
IRubyObject key2,
IRubyObject value2,
boolean prepareString2,
IRubyObject key3,
IRubyObject value3,
boolean prepareString3) |
static RubyHash |
Helpers.constructSmallHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1,
IRubyObject key2,
IRubyObject value2,
boolean prepareString2,
IRubyObject key3,
IRubyObject value3,
boolean prepareString3,
IRubyObject key4,
IRubyObject value4,
boolean prepareString4) |
static RubyHash |
Helpers.constructSmallHash(Ruby runtime,
IRubyObject key1,
IRubyObject value1,
boolean prepareString1,
IRubyObject key2,
IRubyObject value2,
boolean prepareString2,
IRubyObject key3,
IRubyObject value3,
boolean prepareString3,
IRubyObject key4,
IRubyObject value4,
boolean prepareString4,
IRubyObject key5,
IRubyObject value5,
boolean prepareString5) |
static RubyArray |
Helpers.createSubarray(IRubyObject[] input,
Ruby runtime,
int start) |
static RubyArray |
Helpers.createSubarray(IRubyObject[] input,
Ruby runtime,
int start,
int exclude) |
RubyStackTraceElement[] |
ThreadContext.createWarningBacktrace(Ruby runtime)
Create an Array with backtrace information for a built-in warning
|
static String |
Helpers.decodeByteList(Ruby runtime,
org.jruby.util.ByteList value)
Decode a given ByteList to a Java string.
|
static RubyArray |
Helpers.ensureMultipleAssignableRubyArray(IRubyObject value,
Ruby runtime,
boolean masgnHasHead) |
static RubyArray |
Helpers.ensureRubyArray(Ruby runtime,
IRubyObject value) |
static void |
Helpers.fillNil(IRubyObject[] arr,
int from,
int to,
Ruby runtime) |
static void |
Helpers.fillNil(IRubyObject[] arr,
Ruby runtime) |
static IRubyObject |
Helpers.getBackref(Ruby runtime,
ThreadContext context) |
static Block |
Helpers.getBlock(Ruby runtime,
ThreadContext context,
IRubyObject self,
Node node,
Block aBlock) |
static Block |
Helpers.getBlockFromBlockPassBody(Ruby runtime,
IRubyObject proc,
Block currentBlock) |
static RubyString |
Helpers.getDefinedNot(Ruby runtime,
RubyString definition) |
static IRubyObject |
Helpers.getErrorInfo(Ruby runtime) |
DynamicScope |
Binding.getEvalScope(Ruby runtime) |
static IRubyObject |
Helpers.getGlobalVariable(Ruby runtime,
String name) |
static IRubyObject |
Helpers.getInstanceVariable(IRubyObject self,
Ruby runtime,
String internedName) |
static IRubyObject |
Helpers.getLastLine(Ruby runtime,
ThreadContext context) |
static RubyClass |
Helpers.getSingletonClass(Ruby runtime,
IRubyObject receiver) |
static RubyModule |
Helpers.getSuperClassForDefined(Ruby runtime,
RubyModule klazz) |
static void |
Helpers.handleArgumentSizes(ThreadContext context,
Ruby runtime,
int given,
int required,
int opt,
int rest) |
void |
ObjectMarshal.marshalTo(Ruby runtime,
Object obj,
RubyClass type,
MarshalStream marshalStream) |
static IRubyObject |
Helpers.methodToParameters(Ruby runtime,
AbstractRubyMethod recv) |
static IRubyObject |
Helpers.negate(IRubyObject value,
Ruby runtime) |
static ThreadContext |
ThreadContext.newContext(Ruby runtime) |
static IRubyObject |
Helpers.nullToNil(IRubyObject value,
Ruby runtime) |
static Visibility |
Helpers.performNormalMethodChecksAndDetermineVisibility(Ruby runtime,
RubyModule clazz,
String name,
Visibility visibility) |
static RubyClass |
Helpers.performSingletonMethodChecks(Ruby runtime,
IRubyObject receiver,
String name) |
static RubyClass |
Helpers.prepareSuperClass(Ruby runtime,
IRubyObject rubyClass) |
static IRubyObject |
Helpers.processBlockArgument(Ruby runtime,
Block block) |
static void |
Arity.raiseArgumentError(Ruby runtime,
int length,
int min,
int max) |
static void |
Arity.raiseArgumentError(Ruby runtime,
int length,
int min,
int max,
boolean hasKwargs) |
static void |
Arity.raiseArgumentError(Ruby runtime,
IRubyObject[] args,
int min,
int max) |
static void |
Arity.raiseArgumentError(Ruby runtime,
String name,
int length,
int min,
int max) |
static void |
Arity.raiseArgumentError(Ruby runtime,
String name,
int length,
int min,
int max,
boolean hasKwargs) |
static void |
Helpers.registerEndBlock(Block block,
Ruby runtime) |
static void |
Helpers.rewriteStackTrace(Ruby runtime,
Throwable e) |
static IRubyObject[] |
Arity.scanArgs(Ruby runtime,
IRubyObject[] args,
int required,
int optional) |
static IRubyObject |
Helpers.setBackref(Ruby runtime,
ThreadContext context,
IRubyObject value) |
static void |
Helpers.setErrorInfo(Ruby runtime,
IRubyObject error) |
static IRubyObject |
Helpers.setGlobalVariable(IRubyObject value,
Ruby runtime,
String name) |
static IRubyObject |
Helpers.setLastLine(Ruby runtime,
ThreadContext context,
IRubyObject value) |
static RubyArray |
Helpers.subarrayOrEmpty(RubyArray array,
Ruby runtime,
int index) |
static RubyArray |
Helpers.subarrayOrEmpty(RubyArray array,
Ruby runtime,
int index,
int post) |
RubyArray |
ArgumentDescriptor.toArrayForm(Ruby runtime,
boolean isLambda) |
RubyArray |
ArgumentType.toArrayForm(Ruby runtime,
String name) |
Object |
ObjectMarshal.unmarshalFrom(Ruby runtime,
RubyClass type,
UnmarshalStream unmarshalStream) |
Constructor and Description |
---|
GlobalVariable.Copy(Ruby runtime,
String name,
GlobalVariable other) |
GlobalVariable(Ruby runtime,
String name,
IRubyObject value) |
JavaInternalBlockBody(Ruby runtime,
Signature signature)
For blocks which can be executed in any thread concurrently.
|
JavaInternalBlockBody(Ruby runtime,
ThreadContext originalContext,
String methodName,
Signature signature)
For blocks which cannot be executed in parallel.
|
ReadonlyGlobalVariable(Ruby runtime,
String name,
IRubyObject value) |
Modifier and Type | Method and Description |
---|---|
static IRubyObject |
TraceType.generateMRIBacktrace(Ruby runtime,
RubyStackTraceElement[] trace) |
RubyStackTraceElement[] |
BacktraceData.getBacktrace(Ruby runtime) |
Modifier and Type | Method and Description |
---|---|
Ruby |
IRubyObject.getRuntime()
RubyMethod getRuntime.
|
Modifier and Type | Method and Description |
---|---|
org.jcodings.Encoding |
EncodingService.getFileSystemEncoding(Ruby runtime) |
Constructor and Description |
---|
EncodingService(Ruby runtime) |
Modifier and Type | Field and Description |
---|---|
protected Ruby |
LoadService.runtime |
Modifier and Type | Method and Description |
---|---|
boolean |
BasicLibraryService.basicLoad(Ruby runtime) |
void |
IAutoloadMethod.load(Ruby runtime) |
void |
LoadService.ScriptClassSearcher.ScriptClassLibrary.load(Ruby runtime,
boolean wrap) |
void |
Library.load(Ruby runtime,
boolean wrap) |
void |
JavaCompiledScript.load(Ruby runtime,
boolean wrap) |
void |
JarredScript.load(Ruby runtime,
boolean wrap) |
void |
ExternalScript.load(Ruby runtime,
boolean wrap) |
void |
ClassExtensionLibrary.load(Ruby runtime,
boolean wrap) |
static IRScope |
CompiledScriptLoader.loadScriptFromFile(Ruby runtime,
InputStream inStream,
File resourcePath,
String resourceName,
boolean isAbsolute) |
static void |
LoadService.reflectedLoad(Ruby runtime,
String libraryName,
String className,
ClassLoader classLoader,
boolean wrap)
Load the org.jruby.runtime.load.Library implementation specified by
className.
|
protected boolean |
LoadService.tryLoadingLibraryOrScript(Ruby runtime,
LoadService.SearchState state) |
Constructor and Description |
---|
LoadService(Ruby runtime) |
Modifier and Type | Field and Description |
---|---|
protected Ruby |
UnmarshalStream.runtime |
Modifier and Type | Method and Description |
---|---|
Ruby |
UnmarshalStream.getRuntime() |
Modifier and Type | Method and Description |
---|---|
static RubyClass |
UnmarshalStream.getClassFromPath(Ruby runtime,
String path) |
static RubyModule |
UnmarshalStream.getModuleFromPath(Ruby runtime,
String path) |
Constructor and Description |
---|
MarshalStream(Ruby runtime,
OutputStream out,
int depthLimit) |
UnmarshalCache(Ruby runtime) |
UnmarshalStream(Ruby runtime,
InputStream in,
IRubyObject proc,
boolean taint) |
UnmarshalStream(Ruby runtime,
InputStream in,
IRubyObject proc,
boolean taint,
boolean untrust)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
MethodEnhancer |
ProfilingService.newMethodEnhancer(Ruby runtime) |
Constructor and Description |
---|
ProfilingServiceLookup(Ruby runtime) |
Modifier and Type | Method and Description |
---|---|
org.jruby.runtime.profile.builtin.BuiltinProfilingService.DefaultMethodEnhancer |
BuiltinProfilingService.newMethodEnhancer(Ruby runtime) |
Constructor and Description |
---|
ProfiledMethods(Ruby runtime) |
Modifier and Type | Method and Description |
---|---|
static void |
RegexpSupport.appendRegexpString19(Ruby runtime,
org.jruby.util.ByteList to,
byte[] bytes,
int start,
int len,
org.jcodings.Encoding enc,
org.jcodings.Encoding resEnc) |
static Process |
ShellLauncher.buildProcess(Ruby runtime,
String[] args,
String[] env,
File pwd) |
static RubyInteger |
ConvertBytes.byteListToInum(Ruby runtime,
org.jruby.util.ByteList str,
int base,
boolean badcheck)
Deprecated.
|
static RubyInteger |
ConvertBytes.byteListToInum19(Ruby runtime,
org.jruby.util.ByteList str,
int base,
boolean badcheck) |
static IRubyObject |
TypeConverter.checkArrayType(Ruby runtime,
IRubyObject obj) |
static RubyString |
StringSupport.checkEmbeddedNulls(Ruby runtime,
IRubyObject ptr) |
static IRubyObject |
TypeConverter.checkFloatType(Ruby runtime,
IRubyObject obj) |
static IRubyObject |
TypeConverter.checkHashType(Ruby runtime,
IRubyObject obj) |
static RubySymbol |
TypeConverter.checkID(Ruby runtime,
String name)
Convert the supplied object into an internal identifier String.
|
static IRubyObject |
TypeConverter.checkIntegerType(Ruby runtime,
IRubyObject obj,
String method) |
static void |
StringSupport.checkStringSafety(Ruby runtime,
IRubyObject value)
Check whether input object's string value contains a null byte, and if so
throw SecurityError.
|
static IRubyObject |
TypeConverter.checkStringType(Ruby runtime,
IRubyObject obj) |
static int |
StringSupport.choppedLength19(CodeRangeable str,
Ruby runtime)
MRI: chopped_length
|
static int |
StringSupport.codePoint(Ruby runtime,
org.jcodings.Encoding enc,
byte[] bytes,
int p,
int end) |
static int |
StringSupport.countCommon19(org.jruby.util.ByteList value,
Ruby runtime,
boolean[] table,
StringSupport.TrTables tables,
org.jcodings.Encoding enc)
rb_str_count
|
static KCode |
KCode.create(Ruby runtime,
String lang) |
static FileResource |
URLResource.create(Ruby runtime,
String pathname,
boolean asFile) |
static FileResource |
URLResource.createClassloaderURI(Ruby runtime,
String pathname,
boolean asFile) |
static FileResource |
JRubyFile.createResource(Ruby runtime,
String pathname) |
static FileResource |
JRubyFile.createResource(Ruby runtime,
String cwd,
String pathname) |
static FileResource |
JRubyFile.createResourceAsFile(Ruby runtime,
String pathname) |
abstract IRubyObject |
Pack.Converter.decode(Ruby runtime,
ByteBuffer format) |
static void |
Pack.decode(Ruby runtime,
ByteBuffer encode,
int occurrences,
RubyArray result,
Pack.Converter converter) |
static CodeRangeable |
StringSupport.delete_bangCommon19(CodeRangeable rubyString,
Ruby runtime,
boolean[] squeeze,
StringSupport.TrTables tables,
org.jcodings.Encoding enc)
rb_str_delete_bang
|
static org.jruby.util.ByteList |
StringSupport.dumpCommon(Ruby runtime,
org.jruby.util.ByteList byteList)
rb_str_dump
|
static int |
Pack.encode(Ruby runtime,
int occurrences,
org.jruby.util.ByteList result,
RubyArray list,
int index,
org.jruby.util.Pack.ConverterExecutor converter) |
abstract void |
Pack.Converter.encode(Ruby runtime,
IRubyObject from,
org.jruby.util.ByteList result) |
static void |
Pack.encodeUM(Ruby runtime,
org.jruby.util.ByteList lCurElemString,
int occurrences,
boolean ignoreStar,
char type,
org.jruby.util.ByteList result) |
static Map<RubyString,RubyString> |
OSEnvironment.environmentVariableMap(Ruby runtime)
Returns the environment as a hash of Ruby strings.
|
static int |
ShellLauncher.execAndWait(Ruby runtime,
IRubyObject[] rawArgs) |
static int |
ShellLauncher.execAndWait(Ruby runtime,
IRubyObject[] rawArgs,
Map mergeEnv) |
static File |
ShellLauncher.findPathExecutable(Ruby runtime,
String fname) |
static String[] |
ShellLauncher.getCurrentEnv(Ruby runtime) |
Map<RubyString,RubyString> |
OSEnvironment.getEnvironmentVariableMap(Ruby runtime) |
static String[] |
ShellLauncher.getModifiedEnv(Ruby runtime,
Collection mergeEnv,
boolean clearEnv) |
static URL |
URLResource.getResourceURL(Ruby runtime,
String location) |
Map<RubyString,RubyString> |
OSEnvironment.getSystemPropertiesMap(Ruby runtime) |
static IRubyObject |
TypeConverter.ioCheckIO(Ruby runtime,
IRubyObject obj) |
static RubyIO |
TypeConverter.ioGetIO(Ruby runtime,
IRubyObject obj) |
static String |
ClasspathLauncher.jrubyCommand(Ruby runtime) |
IRubyObject |
KCode.kcode(Ruby runtime) |
static boolean |
StringSupport.multiByteSqueeze(Ruby runtime,
org.jruby.util.ByteList value,
boolean[] squeeze,
StringSupport.TrTables tables,
org.jcodings.Encoding enc,
boolean isArg) |
static boolean |
StringSupport.multiByteSwapcase(Ruby runtime,
org.jcodings.Encoding enc,
byte[] bytes,
int s,
int end) |
abstract RaiseException |
ResourceException.newRaiseException(Ruby runtime) |
RaiseException |
ResourceException.IOError.newRaiseException(Ruby runtime) |
static RubyString |
Pack.pack(Ruby runtime,
RubyArray list,
org.jruby.util.ByteList formatString)
Same as pack but defaults tainting of output to false.
|
static RubyString |
Pack.pack(ThreadContext context,
Ruby runtime,
RubyArray list,
RubyString formatString) |
static ShellLauncher.POpenProcess |
ShellLauncher.popen(Ruby runtime,
IRubyObject[] strings,
Map env,
IOOptions modes)
Deprecated.
|
static ShellLauncher.POpenProcess |
ShellLauncher.popen(Ruby runtime,
IRubyObject[] strings,
Map env,
ModeFlags modes) |
static ShellLauncher.POpenProcess |
ShellLauncher.popen(Ruby runtime,
IRubyObject string,
IOOptions modes)
Deprecated.
|
static ShellLauncher.POpenProcess |
ShellLauncher.popen(Ruby runtime,
IRubyObject string,
Map env,
ModeFlags modes) |
static ShellLauncher.POpenProcess |
ShellLauncher.popen(Ruby runtime,
IRubyObject string,
ModeFlags modes) |
static ShellLauncher.POpenProcess |
ShellLauncher.popen3(Ruby runtime,
IRubyObject[] strings)
Deprecated.
|
static ShellLauncher.POpenProcess |
ShellLauncher.popen3(Ruby runtime,
IRubyObject[] strings,
boolean addShell)
Deprecated.
|
static org.jruby.util.ByteList |
RegexpSupport.preprocess(Ruby runtime,
org.jruby.util.ByteList str,
org.jcodings.Encoding enc,
org.jcodings.Encoding[] fixedEnc,
RegexpSupport.ErrorMode mode)
Preprocess the given string for use in regexp, raising errors for encoding
incompatibilities that arise.
|
static List<org.jruby.util.ByteList> |
Dir.push_glob(Ruby runtime,
String cwd,
org.jruby.util.ByteList globByteList,
int flags) |
static int |
RegexpSupport.raisePreprocessError(Ruby runtime,
org.jruby.util.ByteList str,
String err,
RegexpSupport.ErrorMode mode) |
static void |
RegexpSupport.raiseRegexpError19(Ruby runtime,
org.jruby.util.ByteList bytes,
org.jcodings.Encoding enc,
RegexpOptions options,
String err) |
static int |
RegexpSupport.readEscapedByte(Ruby runtime,
byte[] to,
int toP,
byte[] bytes,
int p,
int end,
org.jruby.util.ByteList str,
RegexpSupport.ErrorMode mode) |
static org.jruby.util.ByteList |
RegexpSupport.regexpDescription19(Ruby runtime,
org.jruby.util.ByteList bytes,
RegexpOptions options,
org.jcodings.Encoding enc) |
static void |
StringSupport.replaceInternal19(Ruby runtime,
int beg,
int len,
RubyString source,
RubyString repl) |
static Process |
ShellLauncher.run(Ruby runtime,
IRubyObject string) |
static Process |
ShellLauncher.run(Ruby runtime,
IRubyObject[] rawArgs,
boolean doExecutableSearch) |
static Process |
ShellLauncher.run(Ruby runtime,
IRubyObject[] rawArgs,
boolean doExecutableSearch,
boolean forceExternalProcess) |
static int |
ShellLauncher.runAndWait(Ruby runtime,
IRubyObject[] rawArgs) |
static int |
ShellLauncher.runAndWait(Ruby runtime,
IRubyObject[] rawArgs,
OutputStream output) |
static int |
ShellLauncher.runAndWait(Ruby runtime,
IRubyObject[] rawArgs,
OutputStream output,
boolean doExecutableSearch) |
static long[] |
ShellLauncher.runAndWaitPid(Ruby runtime,
IRubyObject[] rawArgs) |
static long[] |
ShellLauncher.runAndWaitPid(Ruby runtime,
IRubyObject[] rawArgs,
OutputStream output,
boolean doExecutableSearch) |
static long |
ShellLauncher.runExternal(Ruby runtime,
IRubyObject env,
IRubyObject prog,
IRubyObject options,
IRubyObject args,
boolean wait) |
static int |
ShellLauncher.runExternalAndWait(Ruby runtime,
IRubyObject[] rawArgs,
Map mergeEnv) |
static long |
ShellLauncher.runExternalWithoutWait(Ruby runtime,
IRubyObject[] rawArgs) |
static long |
ShellLauncher.runExternalWithoutWait(Ruby runtime,
IRubyObject env,
IRubyObject prog,
IRubyObject options,
IRubyObject args) |
static long |
ShellLauncher.runWithoutWait(Ruby runtime,
IRubyObject[] rawArgs) |
org.jcodings.Encoding |
RegexpOptions.setup(Ruby runtime)
Calculate the encoding based on kcode option set via 'nesu'.
|
static boolean |
Sprintf.sprintf(Ruby runtime,
org.jruby.util.ByteList to,
CharSequence format,
int arg) |
static boolean |
Sprintf.sprintf(Ruby runtime,
org.jruby.util.ByteList to,
CharSequence format,
long arg) |
static StringSupport.NeighborChar |
StringSupport.succChar(Ruby runtime,
org.jcodings.Encoding enc,
byte[] bytes,
int p,
int len) |
static org.jruby.util.ByteList |
StringSupport.succCommon(Ruby runtime,
org.jruby.util.ByteList original) |
static Map<RubyString,RubyString> |
OSEnvironment.systemPropertiesMap(Ruby runtime)
Returns java system properties as a Map
|
static RubyNumeric |
TypeConverter.toFloat(Ruby runtime,
IRubyObject obj) |
IRubyObject |
SunSignalFacade.trap(Ruby runtime,
BlockCallback blk,
String sig) |
IRubyObject |
SignalFacade.trap(Ruby runtime,
BlockCallback block,
String sig) |
IRubyObject |
NoFunctionalitySignalFacade.trap(Ruby runtime,
BlockCallback block,
String sig) |
static int |
StringSupport.trNext(StringSupport.TR t,
Ruby runtime,
org.jcodings.Encoding enc) |
static StringSupport.TrTables |
StringSupport.trSetupTable(org.jruby.util.ByteList str,
Ruby runtime,
boolean[] stable,
StringSupport.TrTables tables,
boolean first,
org.jcodings.Encoding enc) |
static CodeRangeable |
StringSupport.trTransHelper(Ruby runtime,
CodeRangeable self,
CodeRangeable srcStr,
CodeRangeable replStr,
boolean sflag)
rb_str_tr / rb_str_tr_bang
|
static boolean |
RegexpSupport.unescapeNonAscii(Ruby runtime,
org.jruby.util.ByteList to,
byte[] bytes,
int p,
int end,
org.jcodings.Encoding enc,
org.jcodings.Encoding[] encp,
org.jruby.util.ByteList str,
RegexpSupport.ErrorMode mode)
Unescape non-ascii elements in the given string, appending the results
to the given bytelist if provided.
|
static RubyArray |
Pack.unpack(Ruby runtime,
org.jruby.util.ByteList encodedString,
org.jruby.util.ByteList formatString)
Decodes str (which may contain binary data) according to the format
string, returning an array of each value extracted.
|
static int |
Pack.utf8Decode(Ruby runtime,
byte[] to,
int p,
int code)
rb_uv_to_utf8
|
Constructor and Description |
---|
ConvertBytes(Ruby runtime,
org.jruby.util.ByteList _str,
int base,
boolean badcheck) |
ConvertBytes(Ruby runtime,
org.jruby.util.ByteList _str,
int base,
boolean badcheck,
boolean is19)
Deprecated.
|
JRubyObjectInputStream(Ruby runtime,
InputStream input) |
ShellLauncher.LaunchConfig(Ruby runtime,
IRubyObject[] rawArgs,
boolean doExecutableSearch) |
ShellLauncher.POpenProcess(Process child,
Ruby runtime,
IOOptions modes)
Deprecated.
|
ShellLauncher.POpenProcess(Process child,
Ruby runtime,
ModeFlags modes) |
Constructor and Description |
---|
StringArraySet(Ruby runtime) |
Modifier and Type | Method and Description |
---|---|
Ruby |
ChannelStream.getRuntime()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static InetAddress |
Sockaddr.addressFromString(Ruby runtime,
String s) |
void |
OpenFile.ascii8bitBinmode(Ruby runtime) |
static org.jcodings.Encoding |
EncodingUtils.ascii8bitEncoding(Ruby runtime) |
void |
OpenFile.checkReopenSeek(ThreadContext context,
Ruby runtime,
long pos) |
void |
OpenFile.cleanup(Ruby runtime,
boolean noraise) |
static org.jcodings.Encoding |
EncodingUtils.defaultExternalEncoding(Ruby runtime) |
static int |
EncodingUtils.encCodepointLength(Ruby runtime,
byte[] pBytes,
int p,
int e,
int[] len_p,
org.jcodings.Encoding enc) |
static void |
EncodingUtils.encCrStrBufCat(Ruby runtime,
CodeRangeable str,
byte[] ptrBytes,
int ptr,
int len,
org.jcodings.Encoding ptrEnc,
int ptr_cr,
int[] ptr_cr_ret) |
static void |
EncodingUtils.encCrStrBufCat(Ruby runtime,
CodeRangeable str,
org.jruby.util.ByteList ptr,
org.jcodings.Encoding ptrEnc,
int ptr_cr,
int[] ptr_cr_ret) |
static void |
EncodingUtils.encStrBufCat(Ruby runtime,
RubyString str,
byte[] ptrBytes,
int ptr,
int len,
org.jcodings.Encoding enc) |
static void |
EncodingUtils.encStrBufCat(Ruby runtime,
RubyString str,
org.jruby.util.ByteList ptr,
org.jcodings.Encoding enc) |
static void |
EncodingUtils.extractBinmode(Ruby runtime,
IRubyObject optionsArg,
int[] fmode_p) |
static Stream |
ChannelStream.fdopen(Ruby runtime,
ChannelDescriptor descriptor,
ModeFlags modes)
Deprecated.
|
static Stream |
ChannelStream.fdopen(Ruby runtime,
ChannelDescriptor descriptor,
ModeFlags modes,
boolean autoclose)
Deprecated.
|
void |
OpenFile.Finalizer.finalize(Ruby runtime,
OpenFile fptr,
boolean noraise) |
static Stream |
ChannelStream.fopen(Ruby runtime,
String path,
ModeFlags modes)
Deprecated.
|
void |
Stream.freopen(Ruby runtime,
String path,
ModeFlags modes) |
void |
CRLFStreamWrapper.freopen(Ruby runtime,
String path,
ModeFlags modes) |
void |
ChannelStream.freopen(Ruby runtime,
String path,
ModeFlags modes)
Deprecated.
|
static jnr.constants.platform.AddressFamily |
Sockaddr.getAddressFamilyFromSockaddr(Ruby runtime,
org.jruby.util.ByteList val) |
String |
OpenFile.getModeAsString(Ruby runtime) |
static int |
ModeFlags.getOFlagsFromString(Ruby runtime,
String modesString) |
IRubyObject |
SelectBlob.goForIt(ThreadContext context,
Ruby runtime,
IRubyObject[] args)
Deprecated.
|
void |
OpenFile.incrementLineno(Ruby runtime) |
org.jcodings.Encoding |
OpenFile.inputEncoding(Ruby runtime) |
static IRubyObject |
EncodingUtils.ioEncStr(Ruby runtime,
IRubyObject str,
OpenFile fptr) |
static int |
OpenFile.ioModestrFmode(Ruby runtime,
String modestr) |
static int |
OpenFile.ioModestrOflags(Ruby runtime,
String modestr) |
static String |
OpenFile.ioOflagsModestr(Ruby runtime,
int oflags) |
static RaiseException |
EncodingUtils.makeEconvException(Ruby runtime,
org.jcodings.transcode.EConv ec) |
static Stream |
ChannelStream.open(Ruby runtime,
ChannelDescriptor descriptor)
Deprecated.
|
static Stream |
ChannelStream.open(Ruby runtime,
ChannelDescriptor descriptor,
boolean autoclose)
Deprecated.
|
static IRubyObject[] |
EncodingUtils.openArgsToArgs(Ruby runtime,
IRubyObject firstElement,
RubyHash options) |
static Selector |
SelectorFactory.openWithRetryFrom(Ruby runtime,
SelectorProvider provider) |
static void |
EncodingUtils.rbStrBufCat(Ruby runtime,
org.jruby.util.ByteList str,
byte[] ptrBytes,
int ptr,
int len) |
static void |
EncodingUtils.rbStrBufCat(Ruby runtime,
ByteListHolder str,
byte[] ptrBytes,
int ptr,
int len) |
static void |
EncodingUtils.rbStrBufCat(Ruby runtime,
RubyString str,
org.jruby.util.ByteList ptr) |
org.jcodings.Encoding |
OpenFile.readEncoding(Ruby runtime) |
boolean |
OpenFile.ready(Ruby runtime,
RubyThread thread,
int ops,
long timeout)
Wait until the channel is available for the given operations or the timeout expires.
|
void |
OpenFile.setBlock(Ruby runtime) |
void |
OpenFile.setBlocking(Ruby runtime,
boolean blocking) |
void |
OpenFile.setNonblock(Ruby runtime) |
static IRubyObject |
EncodingUtils.setStrBuf(Ruby runtime,
IRubyObject str,
int len) |
static void |
EncodingUtils.strBufCat(Ruby runtime,
ByteListHolder str,
byte[] ptrBytes,
int ptr,
int len) |
static void |
EncodingUtils.strBufCat(Ruby runtime,
RubyString str,
org.jruby.util.ByteList ptr) |
static String |
Sockaddr.stringFromAddress(Ruby runtime,
InetAddress as) |
static void |
Sockaddr.validateSockaddr(Ruby runtime,
org.jruby.util.ByteList val) |
Constructor and Description |
---|
IOOptions(Ruby runtime,
String modeString)
Construct a new ModeFlags object by parsing the given string
|
POSIXProcess(Ruby runtime,
long finalPid) |
PosixShim(Ruby runtime) |
Copyright © 2001-2015 JRuby. All Rights Reserved.