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(java.io.InputStream in,
java.io.PrintStream out,
java.io.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 |
---|---|
protected void |
RubyModule.addMethodSymbols(Ruby runtime,
java.util.Set<java.lang.String> seen,
RubyArray ary,
boolean not,
Visibility visibility) |
protected void |
IncludedModuleWrapper.addMethodSymbols(Ruby runtime,
java.util.Set<java.lang.String> seen,
RubyArray ary,
boolean not,
Visibility visibility) |
void |
Ruby.ObjectSpacer.addToObjectSpace(Ruby runtime,
boolean useObjectSpace,
IRubyObject object) |
static RubyThread |
RubyThread.adopt(Ruby runtime,
ThreadService service,
java.lang.Thread thread) |
int |
RubyMatchData.backrefNumber(Ruby runtime,
IRubyObject obj) |
static int |
RubyMatchData.backrefNumber(Ruby runtime,
org.joni.Regex pattern,
org.joni.Region regs,
IRubyObject obj) |
static RubyInteger |
RubyBignum.bignorm(Ruby runtime,
java.math.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)
Deprecated.
|
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)
Deprecated.
|
static IRubyObject |
RubyEnumerable.callEach19(Ruby runtime,
ThreadContext context,
IRubyObject self,
Signature signature,
BlockCallback callback) |
static org.jcodings.Encoding |
RubyString.checkEncoding(Ruby runtime,
ByteList str1,
ByteList str2) |
static int |
RubyNumeric.checkInt(Ruby runtime,
long num)
check_int
|
protected static void |
RubyArray.checkLength(Ruby runtime,
long length) |
static ChannelFD |
RubyIO.cloexecOpen(Ruby runtime,
RubyIO.Sysopen data) |
static IRubyObject |
RubyEnumerable.collectCommon(ThreadContext context,
Ruby runtime,
IRubyObject self,
RubyArray result,
Block block,
BlockCallback blockCallback)
Deprecated.
|
java.util.Collection<java.lang.String> |
RubyModule.constantsCommon(Ruby runtime,
boolean replaceModule,
boolean allConstants)
rb_mod_constants
|
java.util.Collection<java.lang.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,
java.lang.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)
Deprecated.
|
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 RubyClass |
RubyContinuation.createContinuation(Ruby runtime)
Deprecated.
|
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 RubyClass |
RubyGenerator.createGeneratorClass(Ruby runtime,
RubyClass enumeratorModule) |
static void |
RubyGlobal.createGlobals(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 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 |
RubyNil.createNilClass(Ruby runtime) |
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 |
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) |
static IRubyObject |
RubyNumeric.dbl_cmp(Ruby runtime,
double a,
double b)
rb_dbl_cmp (numeric.c)
|
static RubyInteger |
RubyNumeric.dbl2ival(Ruby runtime,
double val)
MRI: macro DBL2IVAL
|
static IRubyObject |
RubyNumeric.dbl2num(Ruby runtime,
double val)
MRI: macro DBL2NUM
|
static RubyClass |
RubyLocalJumpError.define(Ruby runtime,
RubyClass standardErrorClass) |
static RubyClass |
RubySystemCallError.define(Ruby runtime,
RubyClass standardError) |
static RubyClass |
RubyEnumerator.defineEnumerator(Ruby runtime,
RubyModule Enumerable) |
static RubyClass |
RubyUnboundMethod.defineUnboundMethodClass(Ruby runtime) |
void |
RubyModule.deprecateConstant(Ruby runtime,
java.lang.String name) |
static IRubyObject |
RubyFileTest.directory_p(Ruby ruby,
IRubyObject filename) |
protected RubyArray |
RubyArray.dupImpl(Ruby runtime,
RubyClass metaClass) |
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,
java.lang.String method) |
static IRubyObject |
RubyEnumerator.enumeratorize(Ruby runtime,
IRubyObject object,
java.lang.String method,
IRubyObject... args) |
static IRubyObject |
RubyEnumerator.enumeratorize(Ruby runtime,
IRubyObject object,
java.lang.String method,
IRubyObject arg) |
static IRubyObject |
RubyEnumerator.enumeratorize(Ruby runtime,
RubyClass type,
IRubyObject object,
java.lang.String method) |
static IRubyObject |
RubyEnumerator.enumeratorize(Ruby runtime,
RubyClass type,
IRubyObject object,
java.lang.String method,
IRubyObject arg) |
static IRubyObject |
RubyEnumerator.enumeratorize(Ruby runtime,
RubyClass type,
IRubyObject object,
java.lang.String method,
IRubyObject[] args) |
static IRubyObject |
RubyProcess.euid_set(Ruby runtime,
IRubyObject arg) |
static IRubyObject |
RubyProcess.euid(Ruby runtime) |
IRubyObject |
RubyRuntimeAdapter.eval(Ruby runtime,
java.lang.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) |
static boolean |
RubyNumeric.fixable(Ruby runtime,
double f) |
static RubyFixnum |
RubyFixnum.four(Ruby runtime) |
static RubyArgsFile.ArgsFileData |
RubyArgsFile.ArgsFileData.getArgsFileData(Ruby runtime) |
protected static java.util.List<RubyString> |
RubyDir.getContents(FileResource directory,
Ruby runtime)
Deprecated.
no longer used
|
protected static FileResource |
RubyDir.getDir(Ruby runtime,
java.lang.String path,
boolean mustExist)
Returns a Java
File object for the specified path. |
protected static JRubyFile |
RubyDir.getDirForRmdir(Ruby runtime,
java.lang.String path)
Similar to getDir, but performs different checks to match rmdir behavior.
|
static java.lang.String |
RubyTime.getEnvTimeZone(Ruby runtime) |
static ModeFlags |
RubyIO.getIOModes(Ruby runtime,
java.lang.String modesString)
Deprecated.
|
static int |
RubyIO.getIOModesIntFromString(Ruby runtime,
java.lang.String modesString)
Deprecated.
|
IRubyObject |
RubyIO.getline(Ruby runtime,
ByteList separator)
Deprecated.
|
IRubyObject |
RubyIO.getline(Ruby runtime,
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 org.joni.Regex |
RubyRegexp.getRegexpFromCache(Ruby runtime,
ByteList bytes,
org.jcodings.Encoding enc,
RegexpOptions options) |
static IRubyObject |
RubyProcess.getrlimit(Ruby runtime,
IRubyObject arg) |
static java.lang.String |
RubyTime.getRubyTimeZoneName(Ruby runtime,
org.joda.time.DateTime dt) |
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,
java.lang.String zone) |
static org.joda.time.DateTimeZone |
RubyTime.getTimeZoneFromTZString(Ruby runtime,
java.lang.String zone) |
static org.joda.time.DateTimeZone |
RubyTime.getTimeZoneWithOffset(Ruby runtime,
java.lang.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) |
static void |
RubyGlobal.initSTDIO(Ruby runtime,
GlobalVariables globals) |
IRubyObject |
RubyProcess.RubyStatus.inspect(Ruby runtime) |
static RubyString |
RubyString.inspect(Ruby runtime,
ByteList byteList) |
static IRubyObject |
RubyString.inspect19(Ruby runtime,
ByteList byteList)
Deprecated.
|
static RubyNumeric |
RubyNumeric.int2fix(Ruby runtime,
long val) |
static IRubyObject |
RubyProcess.kill(Ruby runtime,
IRubyObject[] args) |
void |
RubyModule.AutoloadMethod.load(Ruby runtime) |
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)
Deprecated.
|
RubyString |
RubyString.makeShared19(Ruby runtime,
RubyClass meta,
int index,
int len)
Deprecated.
|
RubyString |
RubyString.makeSharedString(Ruby runtime,
int index,
int len) |
RubyString |
RubyString.makeSharedString19(Ruby runtime,
int index,
int len)
Deprecated.
|
static int |
RubyRegexp.matcherMatch(Ruby runtime,
org.joni.Matcher matcher,
int start,
int range,
int option)
Deprecated.
|
static int |
RubyRegexp.matcherSearch(Ruby runtime,
org.joni.Matcher matcher,
int start,
int range,
int option)
Deprecated.
|
static RubyFixnum |
RubyFixnum.minus_one(Ruby runtime) |
static RubyFloat |
RubyKernel.new_float(Ruby runtime,
IRubyObject object) |
static RubyString |
RubyString.newAllocatedString(Ruby runtime,
RubyClass metaClass) |
static RubyArray |
RubyArray.newArray(Ruby runtime)
rb_ary_new
|
static RubyArray |
RubyArray.newArray(Ruby runtime,
java.util.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,
IRubyObject first,
IRubyObject second,
IRubyObject third) |
static RubyArray |
RubyArray.newArray(Ruby runtime,
IRubyObject first,
IRubyObject second,
IRubyObject third,
IRubyObject fourth) |
static RubyArray |
RubyArray.newArray(Ruby runtime,
java.util.List<? extends IRubyObject> list) |
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,
IRubyObject car,
IRubyObject cdr) |
static RubyArray |
RubyArray.newArrayLight(Ruby runtime,
long len) |
static RubyArray |
RubyArray.newArrayMayCopy(Ruby runtime,
IRubyObject... args) |
static RubyArray |
RubyArray.newArrayMayCopy(Ruby runtime,
IRubyObject[] args,
int start) |
static RubyArray |
RubyArray.newArrayMayCopy(Ruby runtime,
IRubyObject[] args,
int start,
int length)
Construct a new RubyArray given the specified range of elements in the source array.
|
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 RubyInteger |
RubyBignum.newBignorm(Ruby runtime,
double value)
Return a Bignum or Fixnum (Integer) for the given value, or raise FloatDomainError if it is out of range.
|
static RubyBignum |
RubyBignum.newBignum(Ruby runtime,
java.math.BigInteger value) |
static RubyBignum |
RubyBignum.newBignum(Ruby runtime,
double value)
Return a Bignum for the given value, or raise FloatDomainError if it is out of range.
|
static RubyBignum |
RubyBignum.newBignum(Ruby runtime,
long value) |
static RubyBignum |
RubyBignum.newBignum(Ruby runtime,
java.lang.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 RubyArray |
RubyArray.newBlankArray(Ruby runtime,
int size)
Construct the most efficient array shape for the given size.
|
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,
java.lang.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,
java.lang.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 RubyComplex |
RubyComplex.newComplexRawImage(Ruby runtime,
IRubyObject image) |
static RubySymbol |
RubySymbol.newConstantSymbol(Ruby runtime,
IRubyObject fqn,
ByteList bytes)
Create a symbol whose intention is to be used as a constant.
|
static RubyRegexp |
RubyRegexp.newDRegexp(Ruby runtime,
RubyString pattern,
int joniOptions) |
static RubyRegexp |
RubyRegexp.newDRegexp(Ruby runtime,
RubyString pattern,
RegexpOptions options) |
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 exceptionClass,
java.lang.String msg) |
static RubyFileStat |
RubyFileStat.newFileStat(Ruby runtime,
java.io.FileDescriptor descriptor) |
static RubyFileStat |
RubyFileStat.newFileStat(Ruby runtime,
int fileno) |
static RubyFileStat |
RubyFileStat.newFileStat(Ruby runtime,
java.lang.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,
ByteList bytes) |
static RubySymbol |
RubySymbol.newHardSymbol(Ruby runtime,
ByteList bytes,
RubySymbol.ObjBooleanConsumer<RubySymbol> handler) |
static RubySymbol |
RubySymbol.newHardSymbol(Ruby runtime,
IRubyObject name) |
static RubySymbol |
RubySymbol.newHardSymbol(Ruby runtime,
java.lang.String name) |
static RubySymbol |
RubySymbol.newHardSymbol(Ruby runtime,
java.lang.String name,
org.jcodings.Encoding encoding) |
static RubyHash |
RubyHash.newHash(Ruby runtime)
rb_hash_new
|
static RubyHash |
RubyHash.newHash(Ruby runtime,
java.util.Map valueMap,
IRubyObject defaultValue)
rb_hash_new
|
static RubySymbol |
RubySymbol.newIDSymbol(Ruby runtime,
ByteList bytes)
Generic identifier symbol creation (or retrieval) method.
|
static RubySymbol |
RubySymbol.newIDSymbol(Ruby runtime,
ByteList bytes,
RubySymbol.ObjBooleanConsumer<RubySymbol> handler)
Generic identifier symbol creation (or retrieval) method that invokes a handler before storing new symbols.
|
static RubySystemExit |
RubySystemExit.newInstance(Ruby runtime,
int status,
java.lang.String message) |
static RubyString |
RubyString.newInternalFromJavaExternal(Ruby runtime,
java.lang.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,
java.nio.channels.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,
java.lang.String mode) |
static RubyHash |
RubyHash.newKwargs(Ruby runtime,
java.lang.String key,
IRubyObject value) |
static RubyArray |
RubyThread.Location.newLocationArray(Ruby runtime,
RubyStackTraceElement[] elements) |
static RubyArray |
RubyThread.Location.newLocationArray(Ruby runtime,
RubyStackTraceElement[] elements,
int offset,
int length) |
static ModeFlags |
RubyIO.newModeFlags(Ruby runtime,
int mode) |
static ModeFlags |
RubyIO.newModeFlags(Ruby runtime,
long mode) |
static ModeFlags |
RubyIO.newModeFlags(Ruby runtime,
java.lang.String mode) |
static RubyModule |
RubyModule.newModule(Ruby runtime)
rb_module_new
|
static RubyModule |
RubyModule.newModule(Ruby runtime,
java.lang.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,
java.lang.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 RubyRational |
RubyRational.newRationalRaw(Ruby runtime,
IRubyObject x,
IRubyObject y)
rb_rational_raw
|
static RubyRegexp |
RubyRegexp.newRegexp(Ruby runtime,
ByteList pattern) |
static RubyRegexp |
RubyRegexp.newRegexp(Ruby runtime,
ByteList pattern,
int options) |
static RubyRegexp |
RubyRegexp.newRegexp(Ruby runtime,
ByteList pattern,
RegexpOptions options) |
static RubyRegexp |
RubyRegexp.newRegexp(Ruby runtime,
java.lang.String pattern,
RegexpOptions options) |
static RubyRegexp |
RubyRegexp.newRegexpFromStr(Ruby runtime,
RubyString s,
int options) |
static RubyRegexp |
RubyRegexp.newRegexpParser(Ruby runtime,
ByteList pattern,
RegexpOptions options)
throws RaiseException on error so parser can pick this up and give proper line and line number
error as opposed to any non-literal regexp creation which may raise a syntax error but will not
have this extra source info in the error message
|
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,
ByteList bytes) |
static RubyString |
RubyString.newString(Ruby runtime,
ByteList bytes,
org.jcodings.Encoding encoding) |
static RubyString |
RubyString.newString(Ruby runtime,
ByteList bytes,
int coderange) |
static RubyString |
RubyString.newString(Ruby runtime,
java.lang.CharSequence str) |
static RubyString |
RubyString.newString(Ruby runtime,
java.lang.CharSequence str,
org.jcodings.Encoding encoding) |
static RubyString |
RubyString.newString(Ruby runtime,
RubyClass clazz,
java.lang.CharSequence str)
Deprecated.
|
static RubyString |
RubyString.newString(Ruby runtime,
java.lang.String str) |
static RubyString |
RubyString.newString(Ruby runtime,
java.lang.String str,
org.jcodings.Encoding encoding) |
static RubyString |
RubyString.newStringLight(Ruby runtime,
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,
ByteList bytes) |
static RubyString |
RubyString.newStringNoCopy(Ruby runtime,
ByteList bytes,
org.jcodings.Encoding enc,
int cr) |
static RubyString |
RubyString.newStringNoCopy(Ruby runtime,
RubyClass clazz,
ByteList bytes) |
static RubyString |
RubyString.newStringNoCopy(Ruby runtime,
RubyClass clazz,
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,
ByteList bytes) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
ByteList bytes,
org.jcodings.Encoding encoding) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
ByteList bytes,
int codeRange) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
RubyClass clazz,
ByteList bytes) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
RubyClass clazz,
ByteList bytes,
org.jcodings.Encoding encoding) |
static RubyString |
RubyString.newStringShared(Ruby runtime,
RubyString orig) |
static RubySymbol |
RubySymbol.newSymbol(Ruby runtime,
ByteList bytes) |
static RubySymbol |
RubySymbol.newSymbol(Ruby runtime,
ByteList bytes,
RubySymbol.ObjBooleanConsumer<RubySymbol> handler)
Return the symbol in the symbol table if it exists, null otherwise.
|
static RubySymbol |
RubySymbol.newSymbol(Ruby runtime,
IRubyObject name)
Deprecated.
|
static RubySymbol |
RubySymbol.newSymbol(Ruby runtime,
java.lang.String name) |
static RubySymbol |
RubySymbol.newSymbol(Ruby runtime,
java.lang.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)
Create new (Ruby) Time instance.
|
static RubyTime |
RubyTime.newTime(Ruby runtime,
long milliseconds) |
static RubyTime |
RubyTime.newTimeFromNanoseconds(Ruby runtime,
long nanoseconds) |
static RubyUncaughtThrowError |
RubyUncaughtThrowError.newUncaughtThrowError(Ruby runtime,
IRubyObject tag,
IRubyObject value,
RubyString message) |
static RubyString |
RubyString.newUnicodeString(Ruby runtime,
java.lang.CharSequence str) |
static RubyString |
RubyString.newUnicodeString(Ruby runtime,
java.lang.String str) |
static RubyString |
RubyString.newUSASCIIString(Ruby runtime,
java.lang.String str) |
static RubyString |
RubyString.newUsAsciiStringNoCopy(Ruby runtime,
ByteList bytes) |
static RubyString |
RubyString.newUsAsciiStringShared(Ruby runtime,
byte[] bytes,
int start,
int length) |
static RubyString |
RubyString.newUsAsciiStringShared(Ruby runtime,
ByteList bytes) |
static RubyString |
RubyString.newUTF16String(Ruby runtime,
java.lang.CharSequence str) |
static RubyString |
RubyString.newUTF16String(Ruby runtime,
java.lang.String str) |
static RubyString |
RubyString.newUTF8String(Ruby runtime,
java.lang.CharSequence str) |
static RubyString |
RubyString.newUTF8String(Ruby runtime,
java.lang.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,
java.io.InputStream in,
java.lang.String filename,
int lineNumber) |
JavaEmbedUtils.EvalUnit |
RubyRuntimeAdapter.parse(Ruby runtime,
java.lang.String script,
java.lang.String filename,
int lineNumber) |
static IRubyObject |
RubyProcess.pid(Ruby runtime) |
static IRubyObject |
RubyProcess.ppid(Ruby runtime) |
static void |
RubyRegexp.preprocessCheck(Ruby runtime,
ByteList bytes) |
static RubyString |
RubyRegexp.preprocessDRegexp(Ruby runtime,
IRubyObject[] strings,
RegexpOptions options) |
static RubyString |
RubyRegexp.preprocessDRegexp(Ruby runtime,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3,
IRubyObject arg4,
RegexpOptions options)
Deprecated.
|
static RubyString |
RubyRegexp.preprocessDRegexp(Ruby runtime,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3,
RegexpOptions options)
Deprecated.
|
static RubyString |
RubyRegexp.preprocessDRegexp(Ruby runtime,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2,
RegexpOptions options)
Deprecated.
|
static RubyString |
RubyRegexp.preprocessDRegexp(Ruby runtime,
IRubyObject arg0,
IRubyObject arg1,
RegexpOptions options)
Deprecated.
|
static RubyString |
RubyRegexp.preprocessDRegexp(Ruby runtime,
IRubyObject arg0,
RegexpOptions options)
Deprecated.
|
static RubyString |
RubyRegexp.preprocessDRegexp(Ruby runtime,
RubyString[] strings,
int embeddedOptions)
Deprecated.
|
static RubyIO |
RubyIO.prepStdio(Ruby runtime,
java.io.InputStream f,
java.nio.channels.Channel c,
int fmode,
RubyClass klass,
java.lang.String path) |
static RubyIO |
RubyIO.prepStdio(Ruby runtime,
java.io.OutputStream f,
java.nio.channels.Channel c,
int fmode,
RubyClass klass,
java.lang.String path) |
DynamicMethod |
RubyModule.putMethod(Ruby runtime,
java.lang.String id,
DynamicMethod method) |
static RubyBignum |
RubyRandom.randomSeed(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.
|
void |
RubyModule.setConstantVisibility(Ruby runtime,
java.lang.String name,
boolean hidden) |
static void |
Ruby.setCurrentInstance(Ruby runtime)
Deprecated.
|
void |
RubyArgsFile.ArgsFileData.setCurrentLineNumber(Ruby runtime,
int linenumber)
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.
|
protected static RubyThread |
RubyThread.startWaiterThread(Ruby runtime,
int pid,
Block block) |
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 ByteList |
RubySymbol.symbolBytesFromString(Ruby runtime,
java.lang.String internedSymbol) |
protected static ChannelFD |
RubyIO.sysopen(Ruby runtime,
java.lang.String fname,
int oflags,
int perm) |
static void |
RubyProcess.syswait(Ruby runtime,
int pid) |
protected void |
RubyBasicObject.taint(Ruby runtime)
Deprecated.
|
static RubyFixnum |
RubyFixnum.three(Ruby runtime) |
static IRubyObject |
RubyProcess.times(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) |
static java.lang.String |
RubyModule.undefinedMethodMessage(Ruby runtime,
IRubyObject name,
IRubyObject modName,
boolean isModule) |
int |
RubyString.unseededStrHashCode(Ruby runtime)
Generate a hash for the String, without a seed.
|
protected java.lang.String |
RubyModule.validateClassVariable(Ruby runtime,
IRubyObject object) |
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)
Deprecated.
|
static IRubyObject[] |
RubyEnumerable.zipCommonConvert(Ruby runtime,
IRubyObject[] args,
java.lang.String method)
Deprecated.
|
Constructor and Description |
---|
AbstractRubyMethod(Ruby runtime,
RubyClass rubyClass) |
AppendBlockCallback(Ruby runtime,
RubyArray result)
Deprecated.
|
ArgsFileData(Ruby runtime,
RubyArray argv) |
CaseInsensitiveStringOnlyRubyHash(Ruby runtime,
java.util.Map<RubyString,RubyString> valueMap,
IRubyObject defaultValue,
boolean updateRealENV) |
ChunkedBlockCallback(Ruby runtime,
IRubyObject enumerator) |
Data(Ruby runtime,
RubyClass metaClass,
java.lang.Object data) |
IncludedModule(Ruby runtime,
RubyClass superClass,
RubyModule origin) |
IncludedModuleWrapper(Ruby runtime,
RubyClass superClass,
RubyModule origin) |
InputGlobalVariable(Ruby runtime,
java.lang.String name,
IRubyObject value) |
KCodeGlobalVariable(Ruby runtime,
java.lang.String name,
IRubyObject value) |
Location(Ruby runtime,
RubyClass klass,
RubyStackTraceElement element) |
MetaClass(Ruby runtime,
RubyClass superClass,
IRubyObject attached)
Deprecated.
|
NativeException(Ruby runtime,
RubyClass rubyClass,
java.lang.Throwable cause)
Deprecated.
|
OutputGlobalVariable(Ruby runtime,
java.lang.String name,
IRubyObject value) |
PrependedModule(Ruby runtime,
RubyClass superClass,
RubyModule klass) |
ProfilingCacheEntryFactory(Ruby runtime,
RubyModule.CacheEntryFactory previous) |
PutKeyValueCallback(Ruby runtime,
RubyHash result)
Deprecated.
|
RubyArgsFile(Ruby runtime,
RubyClass metaClass) |
RubyArgumentError(Ruby runtime,
RubyClass exceptionClass) |
RubyArgumentError(Ruby runtime,
RubyClass exceptionClass,
java.lang.String message) |
RubyArray(Ruby runtime,
int length) |
RubyArray(Ruby runtime,
RubyClass klass) |
RubyArray(Ruby runtime,
RubyClass klass,
boolean objectSpace) |
RubyArray(Ruby runtime,
RubyClass klass,
IRubyObject[] vals) |
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,
java.math.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.
|
RubyCompatibilityError(Ruby runtime,
RubyClass exceptionClass) |
RubyConcurrencyError(Ruby runtime,
RubyClass exceptionClass) |
RubyContinuation(Ruby runtime)
Deprecated.
|
RubyContinuation(Ruby runtime,
IRubyObject tag)
Deprecated.
|
RubyConverter(Ruby runtime) |
RubyConverter(Ruby runtime,
RubyClass klass) |
RubyConverterNotFoundError(Ruby runtime,
RubyClass exceptionClass) |
RubyDir(Ruby runtime,
RubyClass type) |
RubyDomainError(Ruby runtime,
RubyClass exceptionClass) |
RubyEncodingError(Ruby runtime,
RubyClass exceptionClass) |
RubyEOFError(Ruby runtime,
RubyClass exceptionClass) |
RubyException(Ruby runtime,
RubyClass rubyClass) |
RubyException(Ruby runtime,
RubyClass rubyClass,
java.lang.String message) |
RubyFatal(Ruby runtime,
RubyClass exceptionClass) |
RubyFiberError(Ruby runtime,
RubyClass exceptionClass) |
RubyFile(Ruby runtime,
RubyClass type) |
RubyFile(Ruby runtime,
java.lang.String path,
java.nio.channels.FileChannel channel) |
RubyFile(Ruby runtime,
java.lang.String path,
java.io.InputStream in) |
RubyFileStat(Ruby runtime,
RubyClass clazz) |
RubyFixnum(Ruby runtime) |
RubyFixnum(Ruby runtime,
long value) |
RubyFloat(Ruby runtime) |
RubyFloat(Ruby runtime,
double value) |
RubyFloatDomainError(Ruby runtime,
RubyClass exceptionClass) |
RubyFrozenError(Ruby runtime,
RubyClass exceptionClass) |
RubyGenerator(Ruby runtime,
RubyClass klass) |
RubyHash(Ruby runtime) |
RubyHash(Ruby runtime,
int buckets) |
RubyHash(Ruby runtime,
IRubyObject defaultValue) |
RubyHash(Ruby runtime,
IRubyObject defaultValue,
int buckets) |
RubyHash(Ruby runtime,
java.util.Map valueMap,
IRubyObject defaultValue) |
RubyHash(Ruby runtime,
RubyClass klass) |
RubyHash(Ruby runtime,
RubyClass metaClass,
IRubyObject defaultValue,
RubyHash.RubyHashEntry[] initialTable,
int threshold) |
RubyIndexError(Ruby runtime,
RubyClass exceptionClass) |
RubyIndexError(Ruby runtime,
RubyClass exceptionClass,
java.lang.String message) |
RubyInteger(Ruby runtime,
RubyClass rubyClass) |
RubyInteger(Ruby runtime,
RubyClass rubyClass,
boolean useObjectSpace) |
RubyInteger(Ruby runtime,
RubyClass rubyClass,
boolean useObjectSpace,
boolean canBeTainted)
Deprecated.
|
RubyInterrupt(Ruby runtime,
RubyClass exceptionClass) |
RubyInterruptedRegexpError(Ruby runtime,
RubyClass exceptionClass) |
RubyInvalidByteSequenceError(Ruby runtime,
RubyClass exceptionClass) |
RubyIO(Ruby runtime,
java.nio.channels.Channel channel) |
RubyIO(Ruby runtime,
java.io.InputStream inputStream) |
RubyIO(Ruby runtime,
java.io.OutputStream outputStream) |
RubyIO(Ruby runtime,
java.io.OutputStream outputStream,
boolean autoclose) |
RubyIO(Ruby runtime,
RubyClass type) |
RubyIO(Ruby runtime,
RubyClass klass,
java.nio.channels.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.
|
RubyIOError(Ruby runtime,
RubyClass exceptionClass) |
RubyKeyError(Ruby runtime,
RubyClass exceptionClass) |
RubyKeyError(Ruby runtime,
RubyClass exceptionClass,
java.lang.String message,
IRubyObject recv,
IRubyObject key) |
RubyLoadError(Ruby runtime,
RubyClass exceptionClass) |
RubyLocalJumpError(Ruby runtime,
RubyClass exceptionClass,
java.lang.String message,
RubyLocalJumpError.Reason reason,
IRubyObject exitValue) |
RubyMatchData(Ruby runtime) |
RubyMatchData(Ruby runtime,
RubyClass metaClass) |
RubyMethod(Ruby runtime,
RubyClass rubyClass) |
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,
java.lang.String message) |
RubyNameError(Ruby runtime,
RubyClass exceptionClass,
java.lang.String message,
IRubyObject name) |
RubyNameError(Ruby runtime,
RubyClass exceptionClass,
java.lang.String message,
java.lang.String name) |
RubyNil(Ruby runtime) |
RubyNoMemoryError(Ruby runtime,
RubyClass exceptionClass) |
RubyNoMethodError(Ruby runtime,
RubyClass exceptionClass) |
RubyNoMethodError(Ruby runtime,
RubyClass exceptionClass,
java.lang.String message,
java.lang.String name,
IRubyObject args) |
RubyNotImplementedError(Ruby runtime,
RubyClass exceptionClass) |
RubyNumeric(Ruby runtime,
RubyClass metaClass) |
RubyNumeric(Ruby runtime,
RubyClass metaClass,
boolean useObjectSpace) |
RubyNumeric(Ruby runtime,
RubyClass metaClass,
boolean useObjectSpace,
boolean canBeTainted)
Deprecated.
|
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.
|
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,
java.lang.String file,
int line) |
RubyProc(Ruby runtime,
RubyClass rubyClass,
Block block,
java.lang.String file,
int line) |
RubyRangeError(Ruby runtime,
RubyClass exceptionClass) |
RubyRegexp(Ruby runtime,
org.joni.Regex pattern,
ByteList str,
RegexpOptions options) |
RubyRegexpError(Ruby runtime,
RubyClass exceptionClass) |
RubyRuntimeError(Ruby runtime,
RubyClass exceptionClass) |
RubyScriptError(Ruby runtime,
RubyClass exceptionClass) |
RubySecurityError(Ruby runtime,
RubyClass exceptionClass) |
RubySignalException(Ruby runtime,
RubyClass exceptionClass) |
RubyStandardError(Ruby runtime,
RubyClass exceptionClass) |
RubyStandardError(Ruby runtime,
RubyClass exceptionClass,
java.lang.String message) |
RubyStatus(Ruby runtime,
RubyClass metaClass,
long status,
long pid) |
RubyStopIteration(Ruby runtime,
RubyClass exceptionClass) |
RubyString(Ruby runtime,
RubyClass rubyClass) |
RubyString(Ruby runtime,
RubyClass rubyClass,
byte[] value) |
RubyString(Ruby runtime,
RubyClass rubyClass,
ByteList value) |
RubyString(Ruby runtime,
RubyClass rubyClass,
ByteList value,
boolean objectSpace) |
RubyString(Ruby runtime,
RubyClass rubyClass,
ByteList value,
org.jcodings.Encoding enc) |
RubyString(Ruby runtime,
RubyClass rubyClass,
ByteList value,
org.jcodings.Encoding encoding,
boolean objectSpace) |
RubyString(Ruby runtime,
RubyClass rubyClass,
ByteList value,
org.jcodings.Encoding enc,
int cr) |
RubyString(Ruby runtime,
RubyClass rubyClass,
ByteList value,
int cr) |
RubyString(Ruby runtime,
RubyClass rubyClass,
java.lang.CharSequence value) |
RubyString(Ruby runtime,
RubyClass rubyClass,
java.lang.CharSequence value,
org.jcodings.Encoding enc) |
RubySyntaxError(Ruby runtime,
RubyClass exceptionClass) |
RubySystemCallError(Ruby runtime,
RubyClass rubyClass) |
RubySystemExit(Ruby runtime,
RubyClass exceptionClass) |
RubySystemStackError(Ruby runtime,
RubyClass exceptionClass) |
RubyThread(Ruby runtime,
RubyClass type) |
RubyThread(Ruby runtime,
RubyClass klass,
java.lang.Runnable runnable) |
RubyThreadError(Ruby runtime,
RubyClass exceptionClass) |
RubyTime(Ruby runtime,
RubyClass rubyClass) |
RubyTime(Ruby runtime,
RubyClass rubyClass,
org.joda.time.DateTime dt) |
RubyTime(Ruby runtime,
RubyClass rubyClass,
org.joda.time.DateTime dt,
boolean tzRelative) |
RubyTypeError(Ruby runtime,
RubyClass exceptionClass) |
RubyUnboundMethod(Ruby runtime) |
RubyUncaughtThrowError(Ruby runtime,
RubyClass exceptionClass) |
RubyUndefinedConversionError(Ruby runtime,
RubyClass exceptionClass) |
RubyYielder(Ruby runtime) |
RubyYielder(Ruby runtime,
RubyClass klass) |
RubyZeroDivisionError(Ruby runtime,
RubyClass exceptionClass) |
StringGlobalVariable(Ruby runtime,
java.lang.String name,
IRubyObject value) |
StringOnlyRubyHash(Ruby runtime,
java.util.Map<RubyString,RubyString> valueMap,
IRubyObject defaultValue) |
StringOnlyRubyHash(Ruby runtime,
java.util.Map<RubyString,RubyString> valueMap,
IRubyObject defaultValue,
boolean updateRealENV) |
StringOrRegexpGlobalVariable(Ruby runtime,
java.lang.String name,
IRubyObject value) |
SymbolTable(Ruby runtime) |
WeakMap(Ruby runtime,
RubyClass cls) |
Modifier and Type | Method and Description |
---|---|
static int |
API.rb_cloexec_pipe(Ruby runtime,
int[] pipes) |
static void |
API.rb_maygvl_fd_fix_cloexec(Ruby runtime,
int fd) |
static int |
API.rb_pipe(Ruby runtime,
int[] pipes) |
static IRubyObject |
API.rb_sys_fail_path(Ruby runtime,
java.lang.String path) |
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.convertToRubyArrayWithCoerce(Ruby runtime,
IRubyObject value) |
static IRubyObject |
ArgsUtil.getOptionsArg(Ruby runtime,
IRubyObject... args) |
static IRubyObject |
ArgsUtil.getOptionsArg(Ruby runtime,
IRubyObject arg) |
Modifier and Type | Method and Description |
---|---|
Ruby |
RubyWarnings.getRuntime() |
Ruby |
IRubyWarnings.getRuntime() |
Ruby |
NullWarnings.getRuntime() |
Modifier and Type | Method and Description |
---|---|
static RubyModule |
RubyWarnings.createWarningModule(Ruby runtime) |
Constructor and Description |
---|
NullWarnings(Ruby runtime) |
RubyWarnings(Ruby runtime) |
Constructor and Description |
---|
BlockJITClassGenerator(java.lang.String className,
java.lang.String methodName,
java.lang.String key,
Ruby ruby,
MixedModeIRBlockBody body,
JVMVisitor visitor) |
JITClassGenerator(java.lang.String className,
java.lang.String methodName,
java.lang.String key,
Ruby ruby,
JVMVisitor visitor) |
JITCompiler(Ruby runtime) |
MethodJITClassGenerator(java.lang.String className,
java.lang.String methodName,
java.lang.String key,
Ruby ruby,
AbstractIRMethod method,
JVMVisitor visitor) |
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 |
ConcurrentLocalContextProvider.getRuntime() |
Ruby |
SingleThreadLocalContextProvider.getRuntime() |
Ruby |
LocalContextProvider.getRuntime()
Returns a Ruby runtime of a specified scope.
|
Ruby |
SingletonLocalContextProvider.getRuntime() |
Ruby |
ThreadSafeLocalContextProvider.getRuntime() |
Ruby |
BiVariableMap.getRuntime() |
Ruby |
LocalContext.getThreadSafeRuntime()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
IRubyObject |
EmbedRubyRuntimeAdapterImpl.eval(Ruby runtime,
java.lang.String script) |
JavaEmbedUtils.EvalUnit |
EmbedRubyRuntimeAdapterImpl.parse(Ruby runtime,
java.io.InputStream istream,
java.lang.String filename,
int lineNumber) |
JavaEmbedUtils.EvalUnit |
EmbedRubyRuntimeAdapterImpl.parse(Ruby runtime,
java.lang.String script,
java.lang.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,
java.lang.String name)
Retrieves a global variable by key from Ruby runtime after the evaluation.
|
static void |
GlobalVariable.retrieveByKey(Ruby runtime,
BiVariableMap vars,
java.lang.String key)
Retrieves a global variable by key from Ruby after the evaluation.
|
void |
BiVariable.setJavaObject(Ruby runtime,
java.lang.Object javaObject)
Sets a Java object as a value of this object.
|
void |
GlobalVariable.setJavaObject(Ruby runtime,
java.lang.Object javaObject)
Sets a Java object and its Ruby type as a value of this object.
|
static void |
VariableInterceptor.terminateGlobalVariables(LocalVariableBehavior behavior,
java.util.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,
java.lang.Throwable cause)
Deprecated.
|
static RaiseException |
RaiseException.createNativeRaiseException(Ruby runtime,
java.lang.Throwable cause,
java.lang.reflect.Member target)
Deprecated.
|
static RaiseException |
RaiseException.from(Ruby runtime,
RubyClass exceptionClass,
java.lang.String msg) |
static RaiseException |
RaiseException.from(Ruby runtime,
RubyClass exceptionClass,
java.lang.String msg,
IRubyObject backtrace) |
Constructor and Description |
---|
RaiseException(Ruby runtime,
RubyClass exceptionClass,
java.lang.String msg)
Deprecated.
|
RaiseException(Ruby runtime,
RubyClass exceptionClass,
java.lang.String msg,
boolean unused)
Deprecated.
|
RaiseException(Ruby runtime,
RubyClass exceptionClass,
java.lang.String msg,
IRubyObject backtrace)
Deprecated.
|
RaiseException(Ruby runtime,
RubyClass exceptionClass,
java.lang.String msg,
IRubyObject backtrace,
boolean unused)
Deprecated.
|
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,
java.math.BigDecimal value) |
RubyBigDecimal(Ruby runtime,
java.math.BigDecimal value,
boolean isNan) |
RubyBigDecimal(Ruby runtime,
java.math.BigDecimal value,
int infinitySign) |
RubyBigDecimal(Ruby runtime,
java.math.BigDecimal value,
int infinitySign,
int zeroSign) |
RubyBigDecimal(Ruby runtime,
RubyBigDecimal rbd)
Deprecated.
|
RubyBigDecimal(Ruby runtime,
RubyClass klass) |
RubyBigDecimal(Ruby runtime,
RubyClass klass,
java.math.BigDecimal value) |
RubyBigDecimal(Ruby runtime,
RubyClass klass,
RubyBigDecimal rbd)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
CGIEscape.load(Ruby runtime,
boolean wrap) |
Modifier and Type | Method and Description |
---|---|
void |
CoverageLibrary.load(Ruby runtime,
boolean wrap) |
java.util.Map<java.lang.String,int[]> |
CoverageData.resetCoverage(Ruby runtime) |
void |
CoverageData.setCoverageEnabled(Ruby runtime,
boolean enabled) |
Modifier and Type | Method and Description |
---|---|
static void |
DateLibrary.load(Ruby runtime) |
void |
DateLibrary.load(Ruby runtime,
boolean wrap) |
Constructor and Description |
---|
RubyDate(Ruby runtime,
org.joda.time.DateTime dt) |
RubyDate(Ruby runtime,
long millis,
org.joda.time.Chronology chronology) |
RubyDate(Ruby runtime,
RubyClass klass) |
RubyDate(Ruby runtime,
RubyClass klass,
org.joda.time.DateTime dt) |
RubyDateTime(Ruby runtime,
org.joda.time.DateTime dt) |
RubyDateTime(Ruby runtime,
long millis,
org.joda.time.Chronology chronology) |
RubyDateTime(Ruby runtime,
RubyClass klass) |
RubyDateTime(Ruby runtime,
RubyClass klass,
org.joda.time.DateTime dt) |
Modifier and Type | Method and Description |
---|---|
static void |
RubyDigest.createDigest(Ruby runtime) |
static void |
RubyDigest.createDigestBubbleBabble(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 |
SHA1.load(Ruby runtime,
boolean wrap) |
void |
RMD160.load(Ruby runtime,
boolean wrap) |
void |
BubbleBabble.load(Ruby runtime,
boolean wrap) |
void |
MD5.load(Ruby runtime,
boolean wrap) |
void |
DigestLibrary.load(Ruby runtime,
boolean wrap) |
void |
SHA2.load(Ruby runtime,
boolean wrap) |
Constructor and Description |
---|
DigestBase(Ruby runtime,
RubyClass type) |
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 |
ArrayMemoryIO.runtime |
protected Ruby |
InvalidMemoryIO.runtime |
Modifier and Type | Method and Description |
---|---|
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,
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.allocateDirectMemory(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.
|
MemoryIO |
NoImplFactory.allocateTransientDirectMemory(Ruby runtime,
int size,
int align,
boolean clear) |
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,
java.lang.Object proc) |
protected RubyClass |
NullMemoryIO.getErrorClass(Ruby runtime) |
protected RubyClass |
InvalidMemoryIO.getErrorClass(Ruby runtime) |
static Pointer |
Pointer.getNull(Ruby runtime) |
protected Pointer |
Buffer.getPointer(Ruby runtime,
long offset) |
protected Pointer |
Pointer.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 |
Factory.init(Ruby runtime,
RubyModule ffi)
Registers FFI ruby classes/modules
|
void |
NoImplFactory.init(Ruby runtime,
RubyModule ffi) |
void |
FFIService.load(Ruby runtime,
boolean wrap) |
abstract AbstractInvoker |
Factory.newFunction(Ruby runtime,
Pointer address,
CallbackInfo cbInfo) |
AbstractInvoker |
NoImplFactory.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 |
Buffer.order(Ruby runtime,
java.nio.ByteOrder order) |
AbstractMemory |
Pointer.order(Ruby runtime,
java.nio.ByteOrder order) |
abstract AbstractMemory |
AbstractMemory.order(Ruby runtime,
java.nio.ByteOrder order) |
static java.nio.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 |
Buffer.slice(Ruby runtime,
long offset) |
protected AbstractMemory |
Pointer.slice(Ruby runtime,
long offset) |
protected abstract AbstractMemory |
AbstractMemory.slice(Ruby runtime,
long offset) |
protected AbstractMemory |
Buffer.slice(Ruby runtime,
long offset,
long size) |
protected AbstractMemory |
Pointer.slice(Ruby runtime,
long offset,
long size) |
protected abstract AbstractMemory |
AbstractMemory.slice(Ruby runtime,
long offset,
long size) |
abstract MemoryIO |
Factory.wrapDirectMemory(Ruby runtime,
long address)
Wraps a native C memory address in a MemoryIO accessor.
|
MemoryIO |
NoImplFactory.wrapDirectMemory(Ruby runtime,
long address) |
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) |
Array(Ruby runtime,
RubyClass klass,
Type componentType,
int length)
Initializes a new Type.Array instance.
|
Array(Ruby runtime,
Type componentType,
int length)
Initializes a new Type.Array instance.
|
ArrayField(Ruby runtime,
RubyClass klass) |
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.
|
EnumField(Ruby runtime,
RubyClass klass) |
FreedMemoryIO(Ruby runtime) |
FunctionField(Ruby runtime,
RubyClass klass) |
InnerStructField(Ruby runtime,
RubyClass klass) |
InvalidMemoryIO(Ruby runtime,
boolean isDirect,
long address,
java.lang.String message) |
MappedField(Ruby runtime,
RubyClass klass) |
MemoryObject(Ruby runtime,
RubyClass metaClass) |
MemoryPointer(Ruby runtime,
RubyClass klass) |
NullMemoryIO(Ruby runtime) |
NumberField(Ruby runtime,
RubyClass klass) |
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) |
PointerField(Ruby runtime,
RubyClass klass) |
Struct(Ruby runtime,
RubyClass klass)
Creates a new StructLayout 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,
java.lang.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(Ruby runtime,
RubyClass klass,
java.lang.String name,
com.kenai.jffi.Library library) |
NativeCallbackFactory(Ruby runtime,
CallbackInfo cbInfo) |
Symbol(Ruby runtime,
DynamicLibrary library,
java.lang.String name,
MemoryIO io) |
Modifier and Type | Field and Description |
---|---|
protected Ruby |
FiberQueue.runtime |
Modifier and Type | Method and Description |
---|---|
RubyClass |
ThreadFiberLibrary.createFiberClass(Ruby runtime) |
Constructor and Description |
---|
FiberQueue(Ruby runtime) |
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 |
JRubyLibrary.load(Ruby runtime,
boolean wrap) |
void |
JRubySerializationLibrary.load(Ruby runtime,
boolean wrap) |
void |
JRubyUtilLibrary.load(Ruby runtime,
boolean wrap) |
static void |
CoreExt.loadStringExtensions(Ruby runtime) |
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 |
RubyNKF.createNKF(Ruby runtime) |
static void |
RubyNKF.load(Ruby runtime) |
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 java.lang.String |
RbConfigLibrary.getArchDir(Ruby runtime) |
static java.lang.String |
RbConfigLibrary.getLibDir(Ruby runtime) |
static java.lang.String |
RbConfigLibrary.getNormalizedHome(Ruby runtime) |
static java.lang.String |
RbConfigLibrary.getRubygemsDir(Ruby runtime) |
static java.lang.String |
RbConfigLibrary.getRubyLibDir(Ruby runtime) |
static java.lang.String |
RbConfigLibrary.getRubyLibDirFor(Ruby runtime,
java.lang.String runtimeVerStr) |
static java.lang.String |
RbConfigLibrary.getRubySharedLibDir(Ruby runtime) |
static java.lang.String |
RbConfigLibrary.getRuntimeVerStr(Ruby runtime) |
static java.lang.String |
RbConfigLibrary.getSiteArchDir(Ruby runtime) |
static java.lang.String |
RbConfigLibrary.getSiteDir(Ruby runtime) |
static java.lang.String |
RbConfigLibrary.getSiteDirGeneral(Ruby runtime) |
static java.lang.String |
RbConfigLibrary.getSiteLibDir(Ruby runtime) |
static java.lang.String |
RbConfigLibrary.getSysConfDir(Ruby runtime) |
static java.lang.String |
RbConfigLibrary.getVendorArchDir(Ruby runtime) |
static java.lang.String |
RbConfigLibrary.getVendorDir(Ruby runtime) |
static java.lang.String |
RbConfigLibrary.getVendorDirGeneral(Ruby runtime) |
static java.lang.String |
RbConfigLibrary.getVendorLibDir(Ruby runtime) |
static java.lang.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 |
RipperLexer.getRuntime() |
Ruby |
RipperParserBase.getRuntime() |
Ruby |
Warnings.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 |
SecureRandomLibrary.load(Ruby runtime) |
void |
SecureRandomLibrary.load(Ruby runtime,
boolean wrap) |
Modifier and Type | Method and Description |
---|---|
protected void |
RubySortedSet.addImpl(Ruby runtime,
IRubyObject obj) |
protected void |
RubySet.addImpl(Ruby runtime,
IRubyObject obj) |
static void |
SetLibrary.load(Ruby runtime) |
void |
SetLibrary.load(Ruby runtime,
boolean wrap) |
protected void |
RubySet.modifyCheck(Ruby runtime) |
Constructor and Description |
---|
RubySet(Ruby runtime,
RubyClass klass) |
RubySortedSet(Ruby runtime,
RubyClass klass) |
Modifier and Type | Method and Description |
---|---|
IRubyObject |
RubyTCPServer.accept_nonblock(ThreadContext context,
Ruby runtime,
boolean ex) |
IRubyObject |
RubyUNIXServer.accept_nonblock(ThreadContext context,
Ruby runtime,
boolean ex) |
static void |
Addrinfo.createAddrinfo(Ruby runtime) |
static void |
Ifaddr.createIfaddr(Ruby runtime) |
static void |
Option.createOption(Ruby runtime) |
protected static IRubyObject |
RubyUDPSocket.doReceive(RubyBasicSocket socket,
Ruby runtime,
boolean non_block,
int length,
RubyBasicSocket.ReceiveTuple tuple) |
protected void |
RubyUNIXSocket.init_sock(Ruby runtime,
java.nio.channels.Channel channel) |
protected void |
RubyUNIXSocket.init_sock(Ruby runtime,
java.nio.channels.Channel channel,
java.lang.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,
RubySocket serverSocket,
java.nio.channels.SocketChannel socketChannel) |
void |
SocketLibrary.load(Ruby runtime,
boolean wrap) |
protected static ChannelFD |
RubyBasicSocket.newChannelFD(Ruby runtime,
java.nio.channels.Channel channel) |
protected static void |
RubyUNIXSocket.rb_sys_fail(Ruby runtime,
java.lang.String message) |
static java.lang.RuntimeException |
SocketUtils.sockerr_with_trace(Ruby runtime,
java.lang.String msg,
java.lang.StackTraceElement[] trace) |
static java.lang.RuntimeException |
RubySocket.sockerr(Ruby runtime,
java.lang.String msg)
Deprecated.
|
static java.lang.RuntimeException |
SocketUtils.sockerr(Ruby runtime,
java.lang.String msg) |
Constructor and Description |
---|
Addrinfo(Ruby runtime,
RubyClass cls) |
Addrinfo(Ruby runtime,
RubyClass cls,
java.net.InetAddress inetAddress) |
Addrinfo(Ruby runtime,
RubyClass cls,
java.net.InetAddress inetAddress,
int port) |
Addrinfo(Ruby runtime,
RubyClass cls,
java.net.InetAddress inetAddress,
int port,
jnr.constants.platform.Sock sock) |
Addrinfo(Ruby runtime,
RubyClass cls,
java.net.NetworkInterface networkInterface,
boolean isBroadcast) |
Addrinfo(Ruby runtime,
RubyClass cls,
java.net.SocketAddress socketAddress) |
Addrinfo(Ruby runtime,
RubyClass cls,
java.net.SocketAddress socketAddress,
jnr.constants.platform.Sock sock,
SocketType socketType) |
Ifaddr(Ruby runtime,
RubyClass metaClass) |
Ifaddr(Ruby runtime,
RubyClass metaClass,
java.net.NetworkInterface ni) |
Ifaddr(Ruby runtime,
RubyClass metaClass,
java.net.NetworkInterface ni,
java.net.InterfaceAddress it) |
Option(Ruby runtime,
jnr.constants.platform.ProtocolFamily family,
jnr.constants.platform.SocketLevel level,
jnr.constants.platform.SocketOption option,
ByteList 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,
ByteList 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 |
---|---|
static void |
ConditionVariable.setup(Ruby runtime) |
static void |
Queue.setup(Ruby runtime) |
static void |
SizedQueue.setup(Ruby runtime) |
static void |
Mutex.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 max) |
Modifier and Type | Method and Description |
---|---|
static void |
Timeout.load(Ruby runtime) |
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 |
---|---|
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,
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,
java.lang.String name) |
Constructor and Description |
---|
GlobalVariables(Ruby runtime) |
ThreadService(Ruby runtime) |
UndefinedAccessor(Ruby runtime,
GlobalVariable globalVariable,
java.lang.String name)
Constructor for UndefinedAccessor.
|
Modifier and Type | Method and Description |
---|---|
static java.util.concurrent.Callable<java.lang.invoke.MethodHandle> |
InvokeDynamicMethodFactory.adaptHandle(java.lang.invoke.MethodHandle method,
Ruby runtime,
int actualRequired,
int required,
int optional,
boolean rest,
java.lang.String rubyName,
java.lang.Class declaringClass,
boolean isStatic,
boolean hasContext,
boolean hasBlock,
boolean frame,
RubyModule implementationClass) |
static java.lang.invoke.MethodHandle |
InvokeDynamicMethodFactory.finishAdapting(com.headius.invokebinder.SmartBinder binder,
RubyModule implementationClass,
java.lang.String rubyName,
java.lang.invoke.MethodHandle method,
java.lang.Class declaringClass,
Ruby runtime,
boolean isStatic,
boolean frame) |
Modifier and Type | Field and Description |
---|---|
Ruby |
IRManager.runtime |
Modifier and Type | Method and Description |
---|---|
Ruby |
IRManager.getRuntime() |
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) |
Constructor and Description |
---|
IRManager(Ruby runtime,
RubyInstanceConfig config) |
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 |
---|---|
java.lang.RuntimeException |
IRException.getException(Ruby runtime) |
Modifier and Type | Method and Description |
---|---|
static void |
IRRuntimeHelpers.aliasGlobalVariable(Ruby runtime,
java.lang.Object newName,
java.lang.Object oldName) |
static RubyHash |
IRRuntimeHelpers.constructHashFromArray(Ruby runtime,
IRubyObject[] pairs) |
static IRScope |
IRRuntimeHelpers.decodeScopeFromBytes(Ruby runtime,
byte[] scopeBytes,
java.lang.String filename) |
static ByteList |
IRRuntimeHelpers.newByteListFromRaw(Ruby runtime,
java.lang.String str,
java.lang.String encoding) |
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,
java.lang.Object superClass,
java.lang.Object container) |
static boolean |
IRRuntimeHelpers.shouldPrintIR(Ruby runtime)
If the ir.print property is enabled and we are not booting, or the ir.print.all property is enabled and we are
booting, return true to indicate IR should be printed.
|
Modifier and Type | Method and Description |
---|---|
static Ruby |
Bootstrap.runtime(ThreadContext context,
java.lang.invoke.MutableCallSite site) |
Modifier and Type | Method and Description |
---|---|
static IRubyObject |
Bootstrap.booleanOrNil(Ruby runtime,
java.lang.Boolean b) |
static IRubyObject |
Bootstrap.fixnumOrNil(Ruby runtime,
java.lang.Byte b) |
static IRubyObject |
Bootstrap.fixnumOrNil(Ruby runtime,
java.lang.Character c) |
static IRubyObject |
Bootstrap.fixnumOrNil(Ruby runtime,
java.lang.Integer i) |
static IRubyObject |
Bootstrap.fixnumOrNil(Ruby runtime,
java.lang.Long l) |
static IRubyObject |
Bootstrap.fixnumOrNil(Ruby runtime,
java.lang.Short s) |
static IRubyObject |
Bootstrap.floatOrNil(Ruby runtime,
java.lang.Double d) |
static IRubyObject |
Bootstrap.floatOrNil(Ruby runtime,
java.lang.Float f) |
static IRubyObject |
Bootstrap.stringOrNil(Ruby runtime,
java.lang.CharSequence cs) |
Constructor and Description |
---|
JVMVisitor(Ruby runtime) |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class |
RealClassGenerator.createOldStyleImplClass(java.lang.Class[] superTypes,
RubyClass rubyClass,
Ruby ruby,
java.lang.String name,
ClassDefiningClassLoader classLoader) |
static java.lang.Class |
RealClassGenerator.createRealImplClass(java.lang.Class superClass,
java.lang.Class[] interfaces,
RubyClass rubyClass,
Ruby ruby,
java.lang.String name) |
static java.lang.Class |
RealClassGenerator.defineOldStyleImplClass(Ruby ruby,
java.lang.String name,
java.lang.String[] superTypeNames,
java.util.Map<java.lang.String,java.util.List<java.lang.reflect.Method>> simpleToAll,
ClassDefiningClassLoader loader)
This variation on defineImplClass uses all the classic type coercion logic
for passing args and returning results.
|
static java.lang.Class |
RealClassGenerator.defineRealImplClass(Ruby runtime,
java.lang.String name,
java.lang.Class superClass,
java.lang.String[] superTypeNames,
java.util.Map<java.lang.String,java.util.List<java.lang.reflect.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,
java.util.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,
java.util.Map cache,
JavaCallable[] methods,
IRubyObject[] args)
Deprecated.
|
static ParameterTypes |
CallableSelector.matchingCallableArityN(Ruby runtime,
java.util.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,
java.util.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,
java.util.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,
java.util.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) |
static <T extends JavaCallable> |
CallableSelector.matchingCallableArityZero(Ruby runtime,
RubyToJavaInvoker<T> invoker,
T[] methods) |
Modifier and Type | Method and Description |
---|---|
protected JavaCallable |
ConstructorInvoker.createCallable(Ruby ruby,
java.lang.reflect.Member member) |
protected abstract T |
RubyToJavaInvoker.createCallable(Ruby runtime,
java.lang.reflect.Member member) |
protected JavaCallable |
MethodInvoker.createCallable(Ruby runtime,
java.lang.reflect.Member member) |
protected IRubyObject |
FieldMethodZero.handleGetException(Ruby runtime,
java.lang.IllegalAccessException ex) |
protected IRubyObject |
FieldMethodOne.handleSetException(Ruby runtime,
java.lang.IllegalAccessException ex) |
protected IRubyObject |
FieldMethodOne.handleSetException(Ruby runtime,
java.lang.IllegalArgumentException ex) |
Modifier and Type | Method and Description |
---|---|
static RubyClass |
MapJavaProxy.createMapJavaProxy(Ruby runtime) |
IRubyObject |
ArrayJavaProxy.setValue(Ruby runtime,
int index,
IRubyObject value) |
Constructor and Description |
---|
ArrayJavaProxy(Ruby runtime,
RubyClass klazz,
java.lang.Object array) |
ArrayJavaProxy(Ruby runtime,
RubyClass klazz,
java.lang.Object array,
JavaUtil.JavaConverter converter) |
ConcreteJavaProxy(Ruby runtime,
RubyClass klazz) |
ConcreteJavaProxy(Ruby runtime,
RubyClass klazz,
java.lang.Object object) |
InterfaceJavaProxy(Ruby runtime,
RubyClass klazz) |
JavaProxy(Ruby runtime,
RubyClass klazz) |
JavaProxy(Ruby runtime,
RubyClass klazz,
java.lang.Object object) |
MapJavaProxy(Ruby runtime,
RubyClass klazz) |
MapJavaProxy(Ruby runtime,
RubyClass klazz,
java.util.Map map) |
Modifier and Type | Method and Description |
---|---|
static IRubyObject |
ArrayUtils.arefDirect(Ruby runtime,
java.lang.Object array,
JavaUtil.JavaConverter javaConverter,
int index) |
static IRubyObject |
ArrayUtils.asetDirect(Ruby runtime,
java.lang.Object array,
JavaUtil.JavaConverter javaConverter,
int index,
IRubyObject value) |
static ArrayJavaProxy |
ArrayUtils.newProxiedArray(Ruby runtime,
java.lang.Class<?> componentType,
int size) |
static ArrayJavaProxy |
ArrayUtils.newProxiedArray(Ruby runtime,
java.lang.Class<?> componentType,
JavaUtil.JavaConverter converter,
int size) |
static void |
ArrayUtils.setWithExceptionHandlingDirect(Ruby runtime,
java.lang.Object array,
int index,
java.lang.Object javaValue) |
Modifier and Type | Method and Description |
---|---|
static Ruby |
JavaEmbedUtils.initialize(java.util.List<java.lang.String> loadPaths)
Get an instance of a JRuby runtime.
|
static Ruby |
JavaEmbedUtils.initialize(java.util.List<java.lang.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,
java.lang.reflect.Constructor proxyConstructor,
RubyClass clazz) |
abstract IRubyObject |
JavaUtil.JavaConverter.convert(Ruby runtime,
java.lang.Object object) |
IRubyObject |
JavaUtil.StringConverter.convert(Ruby runtime,
java.lang.Object object) |
static java.lang.Object |
JavaUtil.convertArgument(Ruby runtime,
java.lang.Object argument,
java.lang.Class<?> parameterType)
Deprecated.
|
static IRubyObject |
JavaUtil.convertJavaArrayElementToRuby(Ruby runtime,
JavaUtil.JavaConverter converter,
java.lang.Object array,
int i) |
static IRubyObject[] |
JavaUtil.convertJavaArrayToRuby(Ruby runtime,
java.lang.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,
java.lang.Object object)
Deprecated.
|
static IRubyObject |
JavaUtil.convertJavaToRuby(Ruby runtime,
long l) |
static IRubyObject |
JavaUtil.convertJavaToRuby(Ruby runtime,
java.lang.Object object) |
static IRubyObject |
JavaUtil.convertJavaToRuby(Ruby runtime,
java.lang.Object object,
java.lang.Class javaClass) |
static IRubyObject |
JavaUtil.convertJavaToUsableRubyObject(Ruby runtime,
java.lang.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,
java.lang.Object object,
JavaUtil.JavaConverter converter) |
static IRubyObject[] |
JavaUtil.convertStringArrayToRuby(Ruby runtime,
java.lang.String[] strings,
JavaUtil.StringConverter converter) |
static JavaMethod |
JavaMethod.create(Ruby runtime,
java.lang.Class<?> javaClass,
java.lang.String methodName,
java.lang.Class<?>[] argumentTypes)
Deprecated.
|
static JavaConstructor |
JavaConstructor.create(Ruby runtime,
java.lang.reflect.Constructor<?> constructor) |
static JavaMethod |
JavaMethod.create(Ruby runtime,
java.lang.reflect.Method method)
Deprecated.
|
static JavaMethod |
JavaMethod.createDeclared(Ruby runtime,
java.lang.Class<?> javaClass,
java.lang.String methodName,
java.lang.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 JavaProxyClass |
JavaSupportImpl.fetchJavaProxyClass(Ruby runtime,
JavaSupport.ProxyClassKey classKey) |
static JavaClass |
JavaClass.forNameQuiet(Ruby runtime,
java.lang.String className) |
static JavaClass |
JavaClass.forNameVerbose(Ruby runtime,
java.lang.String className) |
static RubyModule |
Java.get_interface_module(Ruby runtime,
IRubyObject javaClassObject) |
static JavaClass |
JavaClass.get(Ruby runtime,
java.lang.Class<?> klass) |
abstract IRubyObject |
JavaUtil.JavaConverter.get(Ruby runtime,
java.lang.Object array,
int i) |
IRubyObject |
JavaUtil.StringConverter.get(Ruby runtime,
java.lang.Object array,
int i) |
static IRubyObject |
Java.getInstance(Ruby runtime,
java.lang.Object rawJavaObject)
Same as Java#getInstance(runtime, rawJavaObject, false).
|
static IRubyObject |
Java.getInstance(Ruby runtime,
java.lang.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,
java.lang.Class javaClass) |
static RubyModule |
Java.getInterfaceModule(Ruby runtime,
JavaClass javaClass) |
static RubyModule |
Java.getJavaPackageModule(Ruby runtime,
java.lang.Package pkg) |
static RubyModule |
Java.getJavaPackageModule(Ruby runtime,
java.lang.String packageString) |
static JavaCallable |
JavaClass.getMatchingCallable(Ruby runtime,
java.lang.Class<?> javaClass,
java.lang.String methodName,
java.lang.Class<?>[] argumentTypes) |
static JavaConstructor |
JavaConstructor.getMatchingConstructor(Ruby runtime,
java.lang.Class<?> javaClass,
java.lang.Class<?>[] argumentTypes) |
static JavaMethod |
JavaMethod.getMatchingDeclaredMethod(Ruby runtime,
java.lang.Class<?> javaClass,
java.lang.String methodName,
java.lang.Class<?>[] argumentTypes) |
static RubyModule |
Java.getProxyClass(Ruby runtime,
java.lang.Class<?> clazz) |
static RubyModule |
Java.getProxyClass(Ruby runtime,
JavaClass javaClass) |
static RubyClass |
Java.getProxyClassForObject(Ruby runtime,
java.lang.Object object) |
static java.lang.reflect.Constructor |
Java.getRealClassConstructor(Ruby runtime,
java.lang.Class<?> proxyImplClass) |
static RubyArray |
JavaClass.getRubyArray(Ruby runtime,
java.lang.Class<?>[] classes)
Deprecated.
|
static java.lang.Object |
JavaEmbedUtils.invokeMethod(Ruby runtime,
java.lang.Object receiver,
java.lang.String method,
java.lang.Object[] args,
java.lang.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,
java.lang.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,
java.lang.Class... argTypes) |
static RaiseException |
JavaMethod.newMethodNotFoundError(Ruby runtime,
java.lang.Class target,
java.lang.String prettyName,
java.lang.String simpleName) |
static void |
JavaAccessibleObject.registerRubyMethods(Ruby runtime,
RubyClass result) |
static void |
JavaCallable.registerRubyMethods(Ruby runtime,
RubyClass result) |
protected static void |
JavaObject.registerRubyMethods(Ruby runtime,
RubyClass JavaObject) |
static java.lang.Object |
JavaEmbedUtils.rubyToJava(Ruby runtime,
IRubyObject value,
java.lang.Class type)
Convert a Ruby object to a Java object.
|
static JavaProxyClass |
JavaSupportImpl.saveJavaProxyClass(Ruby runtime,
JavaSupport.ProxyClassKey classKey,
JavaProxyClass klass) |
abstract void |
JavaUtil.JavaConverter.set(Ruby runtime,
java.lang.Object array,
int i,
IRubyObject value) |
void |
JavaUtil.StringConverter.set(Ruby runtime,
java.lang.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,
java.lang.Object dataStruct) |
static RubyArray |
JavaClass.toRubyArray(Ruby runtime,
java.lang.Class<?>[] classes) |
static IRubyObject |
JavaUtil.trySimpleConversions(Ruby runtime,
java.lang.Object object) |
static RaiseException |
JavaClass.undefinedFieldError(Ruby runtime,
java.lang.String javaClassName,
java.lang.String name) |
static JavaObject |
JavaUtil.unwrapJavaObject(Ruby runtime,
IRubyObject convertee,
java.lang.String errorMessage)
Deprecated.
|
static java.lang.Object |
JavaUtil.unwrapJavaValue(Ruby runtime,
IRubyObject object,
java.lang.String errorMessage)
Deprecated.
|
static IRubyObject |
Java.wrap(Ruby runtime,
IRubyObject java_object) |
static JavaObject |
JavaObject.wrap(Ruby runtime,
java.lang.Object value) |
static IRubyObject |
Java.wrapJavaObject(Ruby runtime,
java.lang.Object object) |
Constructor and Description |
---|
InterpretedEvalUnit(Ruby runtime,
Node node) |
JavaAccessibleObject(Ruby runtime,
RubyClass rubyClass) |
JavaArray(Ruby runtime,
java.lang.Object array) |
JavaCallable(Ruby runtime,
RubyClass rubyClass,
java.lang.Class<?>[] parameterTypes) |
JavaClass(Ruby runtime,
java.lang.Class<?> klass) |
JavaConstructor(Ruby runtime,
java.lang.reflect.Constructor<?> constructor) |
JavaField(Ruby runtime,
java.lang.reflect.Field field) |
JavaMethod(Ruby runtime,
java.lang.reflect.Method method) |
JavaObject(Ruby runtime,
java.lang.Object value) |
JavaObject(Ruby runtime,
RubyClass rubyClass,
java.lang.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,
java.lang.Class<?> javaClass,
RubyClass proxy) |
static RubyModule |
Initializer.setupProxyModule(Ruby runtime,
java.lang.Class<?> javaClass,
RubyModule proxy) |
Constructor and Description |
---|
Initializer(Ruby runtime,
java.lang.Class javaClass) |
Modifier and Type | Method and Description |
---|---|
static void |
JavaTime.define(Ruby runtime) |
static void |
JavaUtil.define(Ruby runtime) |
static void |
JavaLangReflect.define(Ruby runtime) |
static void |
JavaLang.define(Ruby runtime) |
static void |
JavaIo.define(Ruby runtime) |
static void |
JavaNet.define(Ruby runtime) |
static void |
Kernel.define(Ruby runtime) |
static void |
JavaMath.define(Ruby runtime) |
static void |
JavaUtilRegex.define(Ruby runtime) |
static void |
JavaExtensions.define(Ruby runtime,
java.lang.Class javaClass,
RubyModule proxyClass) |
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) |
JavaProxyClass |
JavaProxyClassFactory.genProxyClass(Ruby runtime,
ClassDefiningClassLoader loader,
java.lang.String targetClassName,
java.lang.Class superClass,
java.lang.Class[] interfaces,
java.util.Set<java.lang.String> names) |
JavaProxyClass |
JavaProxyClassFactory.genProxyClass(Ruby runtime,
java.lang.ClassLoader loader,
java.lang.String targetClassName,
java.lang.Class superClass,
java.lang.Class[] interfaces,
java.util.Set<java.lang.String> names)
Deprecated.
|
static JavaProxyClass |
JavaProxyClass.getProxyClass(Ruby runtime,
java.lang.Class superClass,
java.lang.Class[] interfaces)
Deprecated.
|
static JavaProxyClass |
JavaProxyClass.getProxyClass(Ruby runtime,
java.lang.Class superClass,
java.lang.Class[] interfaces,
java.util.Set<java.lang.String> names)
Deprecated.
|
static JavaProxyClass |
JavaProxyClass.getProxyClass(Ruby runtime,
RubyClass clazz) |
static JavaProxyClass |
JavaProxyClass.newProxyClass(Ruby runtime,
java.lang.Class superClass,
java.lang.Class[] interfaces) |
static JavaProxyClass |
JavaProxyClass.newProxyClass(Ruby runtime,
java.lang.Class superClass,
java.lang.Class[] interfaces,
java.util.Set<java.lang.String> names)
Returns a new (generated) proxy class based on arguments.
|
JavaProxyClass |
JavaProxyClassFactory.newProxyClass(Ruby runtime,
ClassDefiningClassLoader loader,
java.lang.String targetClassName,
java.lang.Class superClass,
java.lang.Class[] interfaces,
java.util.Set<java.lang.String> names) |
JavaProxyClass |
JavaProxyClassFactory.newProxyClass(Ruby runtime,
java.lang.ClassLoader loader,
java.lang.String targetClassName,
java.lang.Class superClass,
java.lang.Class[] interfaces,
java.util.Set<java.lang.String> names)
Deprecated.
|
static java.lang.Object |
JavaProxyClass.newProxyInstance(Ruby runtime,
java.lang.Class superClass,
java.lang.Class[] interfaces,
java.lang.Class[] constructorParameters,
java.lang.Object[] constructorArgs,
JavaProxyInvocationHandler handler) |
protected static void |
JavaProxyReflectionObject.registerRubyMethods(Ruby runtime,
RubyClass klass) |
Constructor and Description |
---|
JavaProxyReflectionObject(Ruby runtime,
RubyClass metaClass) |
ProxyMethodImpl(Ruby runtime,
JavaProxyClass clazz,
java.lang.reflect.Method method,
java.lang.reflect.Method superMethod) |
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 |
---|---|
void |
LexingCommon.checkRegexpFragment(Ruby runtime,
ByteList value,
RegexpOptions options) |
void |
LexingCommon.checkRegexpSyntax(Ruby runtime,
ByteList value,
RegexpOptions options) |
void |
LexingCommon.setRegexpEncoding(Ruby runtime,
ByteList value,
RegexpOptions options) |
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() |
Modifier and Type | Method and Description |
---|---|
RubyArray |
StaticScope.getLocalVariables(Ruby runtime)
Convenience wrapper around
StaticScope.collectVariables(IntFunction, BiConsumer) . |
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 | Field and Description |
---|---|
ThreadContext.RecursiveFunctionEx<Ruby> |
JavaSites.HelpersSites.recursive_hash |
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,
RubySymbol symbol,
DynamicMethod method,
Visibility visibility,
ThreadContext context,
Ruby runtime) |
static RubySymbol |
Helpers.addInstanceMethod(RubyModule containingClass,
java.lang.String name,
DynamicMethod method,
Visibility visibility,
ThreadContext context,
Ruby runtime)
Deprecated.
|
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,
java.lang.String name,
int length,
int min,
int max) |
static int |
Arity.checkArgumentCount(Ruby runtime,
java.lang.String name,
int length,
int min,
int max,
boolean hasKwargs) |
static int |
Arity.checkArgumentCount(Ruby runtime,
java.lang.String name,
IRubyObject[] args,
int min,
int max) |
void |
Arity.checkArity(Ruby runtime,
int length) |
void |
Arity.checkArity(Ruby runtime,
IRubyObject[] args) |
void |
Signature.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) |
static java.lang.String |
Helpers.decodeByteList(Ruby runtime,
ByteList value)
Decode a given ByteList to a Java string.
|
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 IRubyObject |
Helpers.getErrorInfo(Ruby runtime)
Deprecated.
|
DynamicScope |
Binding.getEvalScope(Ruby runtime) |
static IRubyObject |
Helpers.getGlobalVariable(Ruby runtime,
java.lang.String name) |
static IRubyObject |
Helpers.getInstanceVariable(IRubyObject self,
Ruby runtime,
java.lang.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) |
static long |
Helpers.hashStart(Ruby runtime,
long value) |
void |
ObjectMarshal.marshalTo(Ruby runtime,
T 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 RaiseException |
Helpers.newIOErrorFromException(Ruby runtime,
java.io.IOException ex)
Java does not give us enough information for specific error conditions
so we are reduced to divining them through string matches...
|
static IRubyObject |
Helpers.nullToNil(IRubyObject value,
Ruby runtime)
Deprecated.
|
static ArgumentDescriptor[] |
Helpers.parameterListToArgumentDescriptors(Ruby runtime,
java.lang.String[] parameterList,
boolean isLambda)
Convert a parameter list from prefix format to ArgumentDescriptor format.
|
static Visibility |
Helpers.performNormalMethodChecksAndDetermineVisibility(Ruby runtime,
RubyModule clazz,
RubySymbol symbol,
Visibility visibility) |
static RubyClass |
Helpers.performSingletonMethodChecks(Ruby runtime,
IRubyObject receiver,
java.lang.String name) |
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,
java.lang.String name,
int length,
int min,
int max) |
static void |
Arity.raiseArgumentError(Ruby runtime,
java.lang.String name,
int length,
int min,
int max,
boolean hasKwargs) |
static void |
Helpers.registerEndBlock(Block block,
Ruby runtime)
Deprecated.
|
static void |
Helpers.rewriteStackTrace(Ruby runtime,
java.lang.Throwable e)
Deprecated.
|
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)
Deprecated.
|
static IRubyObject |
Helpers.setGlobalVariable(IRubyObject value,
Ruby runtime,
java.lang.String name) |
static IRubyObject |
Helpers.setLastLine(Ruby runtime,
ThreadContext context,
IRubyObject value) |
static RubyArray |
Helpers.subarrayOrEmpty(RubyArray array,
Ruby runtime,
int index)
Deprecated.
|
static RubyArray |
Helpers.subarrayOrEmpty(RubyArray array,
Ruby runtime,
int index,
int post)
Deprecated.
|
RubyArray |
ArgumentDescriptor.toArrayForm(Ruby runtime,
boolean isLambda) |
RubyArray |
ArgumentType.toArrayForm(Ruby runtime,
RubySymbol name) |
T |
ObjectMarshal.unmarshalFrom(Ruby runtime,
RubyClass type,
UnmarshalStream unmarshalStream) |
static IRubyObject |
Helpers.wrapJavaException(Ruby runtime,
java.lang.Throwable ex) |
Constructor and Description |
---|
Copy(Ruby runtime,
java.lang.String name,
GlobalVariable other) |
GlobalVariable(Ruby runtime,
java.lang.String name,
IRubyObject value) |
JavaInternalBlockBody(Ruby runtime,
Arity arity)
Deprecated.
|
JavaInternalBlockBody(Ruby runtime,
Signature signature)
For blocks which can be executed in any thread concurrently.
|
JavaInternalBlockBody(Ruby runtime,
ThreadContext originalContext,
java.lang.String methodName,
Signature signature)
For blocks which cannot be executed in parallel.
|
ReadonlyGlobalVariable(Ruby runtime,
java.lang.String name,
IRubyObject value) |
Modifier and Type | Method and Description |
---|---|
static IRubyObject |
TraceType.generateMRIBacktrace(Ruby runtime,
RubyStackTraceElement[] trace)
Deprecated.
|
RubyStackTraceElement[] |
BacktraceData.getBacktrace(Ruby runtime) |
RubyStackTraceElement[] |
BacktraceData.getPartialBacktrace(Ruby runtime,
int level) |
static void |
TraceType.logBacktrace(Ruby runtime,
RubyStackTraceElement[] trace) |
static java.lang.String |
TraceType.printBacktraceJRuby(Ruby runtime,
RubyStackTraceElement[] frames,
java.lang.String type,
java.lang.String message,
boolean color) |
Modifier and Type | Method and Description |
---|---|
Ruby |
IRubyObject.getRuntime()
RubyMethod getRuntime.
|
Modifier and Type | Method and Description |
---|---|
org.jcodings.Encoding |
EncodingService.getFileSystemEncoding(Ruby runtime)
Deprecated.
|
org.jcodings.Encoding |
EncodingService.getWindowsFilesystemEncoding(Ruby ruby) |
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)
Deprecated.
|
void |
ExternalScript.load(Ruby runtime,
boolean wrap) |
void |
ClassExtensionLibrary.load(Ruby runtime,
boolean wrap) |
void |
JavaCompiledScript.load(Ruby runtime,
boolean wrap) |
void |
JarredScript.load(Ruby runtime,
boolean wrap) |
void |
LoadService.ScriptClassSearcher.ScriptClassLibrary.load(Ruby runtime,
boolean wrap) |
void |
Library.load(Ruby runtime,
boolean wrap) |
static IRScope |
CompiledScriptLoader.loadScriptFromFile(Ruby runtime,
java.io.InputStream inStream,
java.io.File resourcePath,
java.lang.String resourceName,
boolean isAbsolute) |
static void |
LoadService.reflectedLoad(Ruby runtime,
java.lang.String libraryName,
java.lang.String className,
java.lang.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,
java.lang.String path) |
static RubyModule |
UnmarshalStream.getModuleFromPath(Ruby runtime,
java.lang.String path) |
Constructor and Description |
---|
MarshalStream(Ruby runtime,
java.io.OutputStream out,
int depthLimit) |
UnmarshalCache(Ruby runtime) |
UnmarshalStream(Ruby runtime,
java.io.InputStream in,
IRubyObject proc,
boolean taint) |
UnmarshalStream(Ruby runtime,
java.io.InputStream in,
IRubyObject proc,
boolean taint,
boolean untrust)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Invalidator |
OptoFactory.newConstantInvalidator(Ruby runtime) |
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 |
---|
BuiltinProfilingService(Ruby runtime) |
ProfiledMethods(Ruby runtime) |
Modifier and Type | Method and Description |
---|---|
protected RubyArray |
RubyArrayOneObject.dupImpl(Ruby runtime,
RubyClass metaClass) |
protected RubyArray |
RubyArrayTwoObject.dupImpl(Ruby runtime,
RubyClass metaClass) |
Constructor and Description |
---|
RubyArrayOneObject(Ruby runtime,
IRubyObject value) |
RubyArraySpecialized(Ruby runtime,
boolean light) |
RubyArrayTwoObject(Ruby runtime,
IRubyObject car,
IRubyObject cdr) |
Modifier and Type | Method and Description |
---|---|
static void |
RegexpSupport.appendRegexpString19(Ruby runtime,
ByteList to,
byte[] bytes,
int start,
int len,
org.jcodings.Encoding enc,
org.jcodings.Encoding resEnc) |
static void |
StringSupport.asciiOnlyCaseMap(Ruby runtime,
ByteList value,
org.jcodings.IntHolder flags,
org.jcodings.Encoding enc) |
static java.lang.Process |
ShellLauncher.buildProcess(Ruby runtime,
java.lang.String[] args,
java.lang.String[] env,
java.io.File pwd) |
static RubyInteger |
ConvertBytes.byteListToInum(Ruby runtime,
ByteList str,
int base,
boolean badcheck)
rb_cstr_to_inum
|
static RubyInteger |
ConvertBytes.byteListToInum(Ruby runtime,
ByteList str,
int off,
int end,
int base,
boolean badcheck) |
static RubyInteger |
ConvertBytes.byteListToInum19(Ruby runtime,
ByteList str,
int base,
boolean badcheck)
Deprecated.
|
static ByteList |
StringSupport.caseMap(Ruby runtime,
ByteList src,
org.jcodings.IntHolder flags,
org.jcodings.Encoding enc) |
static java.lang.String |
ShellLauncher.changeDirInsideJar(Ruby runtime,
java.lang.String arg) |
static IRubyObject |
TypeConverter.checkArrayType(Ruby runtime,
IRubyObject obj) |
static int |
StringSupport.checkCaseMapOptions(Ruby runtime,
IRubyObject arg0,
int flags) |
static int |
StringSupport.checkCaseMapOptions(Ruby runtime,
IRubyObject arg0,
IRubyObject arg1,
int flags) |
static void |
SecurityHelper.checkCryptoRestrictions(Ruby runtime) |
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,
java.lang.String name)
Convert the supplied object into an internal identifier String.
|
static IRubyObject |
TypeConverter.checkIntegerType(Ruby runtime,
IRubyObject obj,
java.lang.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)
Deprecated.
|
static int |
StringSupport.codePoint(Ruby runtime,
ByteList value) |
static int |
StringSupport.codePoint(Ruby runtime,
org.jcodings.Encoding enc,
byte[] bytes,
int p,
int end) |
static int |
StringSupport.countCommon19(ByteList str,
Ruby runtime,
boolean[] table,
StringSupport.TrTables tables,
org.jcodings.Encoding enc)
Deprecated.
|
static FileResource |
URLResource.create(Ruby runtime,
java.lang.String pathname,
boolean asFile) |
static FileResource |
URLResource.createClassloaderURI(Ruby runtime,
java.lang.String pathname,
boolean asFile) |
static FileResource |
JRubyFile.createResource(Ruby runtime,
java.lang.String pathname) |
static FileResource |
JRubyFile.createResource(Ruby runtime,
java.lang.String cwd,
java.lang.String pathname) |
static FileResource |
JRubyFile.createResourceAsFile(Ruby runtime,
java.lang.String pathname) |
abstract IRubyObject |
Pack.Converter.decode(Ruby runtime,
java.nio.ByteBuffer format) |
static void |
Pack.decode(ThreadContext context,
Ruby runtime,
java.nio.ByteBuffer encode,
int occurrences,
RubyArray result,
Block block,
Pack.Converter converter)
Deprecated.
|
static IRubyObject |
Pack.decode(ThreadContext context,
Ruby runtime,
java.nio.ByteBuffer encode,
int occurrences,
RubyArray result,
Block block,
Pack.Converter converter,
int mode) |
static ByteList |
StringSupport.dumpCommon(Ruby runtime,
ByteList bytelist)
rb_str_dump
|
static ByteList |
StringSupport.dumpCommon(Ruby runtime,
ByteList byteList,
boolean quoteOnlyIfNeeded) |
static int |
Pack.encode(Ruby runtime,
int occurrences,
ByteList result,
RubyArray list,
int index,
org.jruby.util.Pack.ConverterExecutor converter) |
abstract void |
Pack.Converter.encode(Ruby runtime,
IRubyObject from,
ByteList result) |
static void |
Pack.encodeUM(Ruby runtime,
ByteList lCurElemString,
int occurrences,
boolean ignoreStar,
char type,
ByteList result) |
static java.util.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,
java.util.Map mergeEnv) |
static java.io.File |
ShellLauncher.findPathExecutable(Ruby runtime,
java.lang.String fname) |
static java.io.File |
ShellLauncher.findPathExecutable(Ruby runtime,
java.lang.String fname,
IRubyObject pathObject) |
static java.lang.String[] |
ShellLauncher.getCurrentEnv(Ruby runtime) |
java.util.Map<RubyString,RubyString> |
OSEnvironment.getEnvironmentVariableMap(Ruby runtime) |
static java.lang.String[] |
ShellLauncher.getModifiedEnv(Ruby runtime,
java.util.Collection mergeEnv,
boolean clearEnv) |
static java.net.URL |
URLResource.getResourceURL(Ruby runtime,
java.lang.String location) |
java.util.Map<RubyString,RubyString> |
OSEnvironment.getSystemPropertiesMap(Ruby runtime) |
static IRubyObject |
TypeConverter.handleUncoercibleObject(Ruby runtime,
IRubyObject obj,
RubyClass target,
boolean raise) |
static RubyString |
RubyStringBuilder.ids(Ruby runtime,
IRubyObject object)
Convert object to proper Ruby String representation of an id.
|
static RubyString |
RubyStringBuilder.ids(Ruby runtime,
java.lang.String id) |
static RubyString |
RubyStringBuilder.inspectIdentifierByteList(Ruby runtime,
ByteList byteList) |
static IRubyObject |
TypeConverter.ioCheckIO(Ruby runtime,
IRubyObject obj) |
static RubyIO |
TypeConverter.ioGetIO(Ruby runtime,
IRubyObject obj) |
static java.lang.String |
ClasspathLauncher.jrubyCommand(Ruby runtime) |
static boolean |
StringSupport.multiByteSqueeze(Ruby runtime,
ByteList value,
boolean[] squeeze,
StringSupport.TrTables tables,
org.jcodings.Encoding enc,
boolean isArg) |
abstract RaiseException |
ResourceException.newRaiseException(Ruby runtime) |
RaiseException |
ResourceException.IOError.newRaiseException(Ruby runtime)
Deprecated.
|
static RaiseException |
TypeConverter.newTypeError(Ruby runtime,
IRubyObject obj,
RubyClass target,
java.lang.String methodName,
IRubyObject val) |
static RubyString |
Pack.pack(Ruby runtime,
RubyArray list,
ByteList formatString)
Same as pack but defaults tainting of output to false.
|
static RubyString |
Pack.pack(ThreadContext context,
Ruby runtime,
RubyArray list,
RubyString formatString)
Deprecated.
|
static ShellLauncher.POpenProcess |
ShellLauncher.popen(Ruby runtime,
IRubyObject[] strings,
java.util.Map env,
IOOptions modes)
Deprecated.
|
static ShellLauncher.POpenProcess |
ShellLauncher.popen(Ruby runtime,
IRubyObject[] strings,
java.util.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,
java.util.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 ByteList |
RegexpSupport.preprocess(Ruby runtime,
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 java.util.List<ByteList> |
Dir.push_glob(Ruby runtime,
java.lang.String cwd,
ByteList globByteList,
int flags) |
static int |
RegexpSupport.raisePreprocessError(Ruby runtime,
ByteList str,
java.lang.String err,
RegexpSupport.ErrorMode mode) |
static void |
RegexpSupport.raiseRegexpError19(Ruby runtime,
ByteList bytes,
org.jcodings.Encoding enc,
RegexpOptions options,
java.lang.String err) |
static int |
RegexpSupport.readEscapedByte(Ruby runtime,
byte[] to,
int toP,
byte[] bytes,
int p,
int end,
ByteList str,
RegexpSupport.ErrorMode mode) |
static ByteList |
RegexpSupport.regexpDescription19(Ruby runtime,
ByteList bytes,
RegexpOptions options,
org.jcodings.Encoding enc) |
static void |
StringSupport.replaceInternal19(Ruby runtime,
int beg,
int len,
RubyString source,
RubyString repl) |
static java.lang.Process |
ShellLauncher.run(Ruby runtime,
IRubyObject string) |
static java.lang.Process |
ShellLauncher.run(Ruby runtime,
IRubyObject[] rawArgs,
boolean doExecutableSearch) |
static java.lang.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,
java.io.OutputStream output) |
static int |
ShellLauncher.runAndWait(Ruby runtime,
IRubyObject[] rawArgs,
java.io.OutputStream output,
boolean doExecutableSearch) |
static long[] |
ShellLauncher.runAndWaitPid(Ruby runtime,
IRubyObject[] rawArgs) |
static long[] |
ShellLauncher.runAndWaitPid(Ruby runtime,
IRubyObject[] rawArgs,
java.io.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,
java.util.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,
ByteList to,
java.lang.CharSequence format,
int arg) |
static boolean |
Sprintf.sprintf(Ruby runtime,
ByteList to,
java.lang.CharSequence format,
long arg) |
static java.lang.String |
RubyStringBuilder.str(Ruby runtime,
IRubyObject value,
java.lang.String message) |
static java.lang.String |
RubyStringBuilder.str(Ruby runtime,
IRubyObject value,
java.lang.String message,
IRubyObject value2) |
static java.lang.String |
RubyStringBuilder.str(Ruby runtime,
IRubyObject value,
java.lang.String message,
IRubyObject value2,
java.lang.String message2) |
static java.lang.String |
RubyStringBuilder.str(Ruby runtime,
java.lang.String message,
IRubyObject value) |
static java.lang.String |
RubyStringBuilder.str(Ruby runtime,
java.lang.String messageBegin,
IRubyObject value,
java.lang.String messageEnd) |
static java.lang.String |
RubyStringBuilder.str(Ruby runtime,
java.lang.String messageBegin,
IRubyObject value,
java.lang.String messageMiddle,
IRubyObject value2) |
static java.lang.String |
RubyStringBuilder.str(Ruby runtime,
java.lang.String messageBegin,
IRubyObject value,
java.lang.String messageMiddle,
IRubyObject value2,
java.lang.String messageEnd) |
static java.lang.String |
RubyStringBuilder.str(Ruby runtime,
java.lang.String messageBegin,
IRubyObject value,
java.lang.String messageMiddle,
RubyString value2,
java.lang.String messageMiddle2,
IRubyObject value3,
java.lang.String messageMiddle3,
RubyString value4,
java.lang.String messageEnd) |
static int |
StringSupport.strCount(ByteList str,
Ruby runtime,
boolean[] table,
StringSupport.TrTables tables,
org.jcodings.Encoding enc) |
static CodeRangeable |
StringSupport.strDeleteBang(CodeRangeable rubyString,
Ruby runtime,
boolean[] squeeze,
StringSupport.TrTables tables,
org.jcodings.Encoding enc) |
static StringSupport.NeighborChar |
StringSupport.succChar(Ruby runtime,
org.jcodings.Encoding enc,
byte[] bytes,
int p,
int len) |
static ByteList |
StringSupport.succCommon(Ruby runtime,
ByteList original) |
static java.util.Map<RubyString,RubyString> |
OSEnvironment.systemPropertiesMap(Ruby runtime)
Returns java system properties as a Map
|
static RubyFloat |
TypeConverter.toFloat(Ruby runtime,
IRubyObject obj) |
IRubyObject |
SunSignalFacade.trap(Ruby runtime,
BlockCallback blk,
java.lang.String sig) |
IRubyObject |
SignalFacade.trap(Ruby runtime,
BlockCallback block,
java.lang.String sig) |
IRubyObject |
NoFunctionalitySignalFacade.trap(Ruby runtime,
BlockCallback block,
java.lang.String sig) |
static int |
StringSupport.trNext(StringSupport.TR tr,
Ruby runtime,
org.jcodings.Encoding enc) |
static StringSupport.TrTables |
StringSupport.trSetupTable(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) |
static RubyString |
RubyStringBuilder.types(Ruby runtime,
RubyModule type) |
static RubyString |
RubyStringBuilder.types(Ruby runtime,
RubyModule type1,
RubyModule type2) |
static boolean |
RegexpSupport.unescapeNonAscii(Ruby runtime,
ByteList to,
byte[] bytes,
int p,
int end,
org.jcodings.Encoding enc,
org.jcodings.Encoding[] encp,
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,
ByteList encodedString,
ByteList formatString) |
static RubyArray |
Pack.unpackWithBlock(ThreadContext context,
Ruby runtime,
ByteList encodedString,
ByteList formatString,
Block block)
Deprecated.
|
static int |
Pack.utf8Decode(Ruby runtime,
byte[] to,
int p,
int code)
rb_uv_to_utf8
|
Constructor and Description |
---|
ConvertBytes(Ruby runtime,
ByteList str,
int base,
boolean badcheck) |
ConvertBytes(Ruby runtime,
ByteList str,
int base,
boolean badcheck,
boolean is19)
Deprecated.
|
JRubyObjectInputStream(Ruby runtime,
java.io.InputStream input) |
LaunchConfig(Ruby runtime,
IRubyObject[] rawArgs,
boolean doExecutableSearch) |
MRIRecursionGuard(Ruby runtime)
Deprecated.
|
POpenProcess(java.lang.Process child,
Ruby runtime,
IOOptions modes)
Deprecated.
|
POpenProcess(java.lang.Process child,
Ruby runtime,
ModeFlags modes) |
Modifier and Type | Method and Description |
---|---|
void |
StringArraySet.appendString(Ruby runtime,
java.lang.String element) |
Constructor and Description |
---|
StringArraySet(Ruby runtime) |
Modifier and Type | Method and Description |
---|---|
Ruby |
ChannelStream.getRuntime()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static java.net.InetAddress |
Sockaddr.addressFromString(Ruby runtime,
java.lang.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 int |
EncodingUtils.encCrStrBufCat(Ruby runtime,
CodeRangeable str,
byte[] ptrBytes,
int ptr,
int len,
org.jcodings.Encoding ptrEnc,
int ptr_cr) |
static int |
EncodingUtils.encCrStrBufCat(Ruby runtime,
CodeRangeable str,
ByteList ptr,
org.jcodings.Encoding ptrEnc,
int ptr_cr) |
static void |
EncodingUtils.encStrBufCat(Ruby runtime,
RubyString str,
byte[] ptrBytes) |
static void |
EncodingUtils.encStrBufCat(Ruby runtime,
RubyString str,
byte[] ptrBytes,
org.jcodings.Encoding enc) |
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,
ByteList ptr) |
static void |
EncodingUtils.encStrBufCat(Ruby runtime,
RubyString str,
ByteList ptr,
org.jcodings.Encoding enc) |
static void |
EncodingUtils.encStrBufCat(Ruby runtime,
RubyString str,
java.lang.CharSequence cseq) |
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,
java.lang.String path,
ModeFlags modes)
Deprecated.
|
void |
ChannelStream.freopen(Ruby runtime,
java.lang.String path,
ModeFlags modes)
Deprecated.
|
void |
Stream.freopen(Ruby runtime,
java.lang.String path,
ModeFlags modes)
Deprecated.
|
void |
CRLFStreamWrapper.freopen(Ruby runtime,
java.lang.String path,
ModeFlags modes)
Deprecated.
|
static jnr.constants.platform.AddressFamily |
Sockaddr.getAddressFamilyFromSockaddr(Ruby runtime,
ByteList val) |
java.lang.String |
OpenFile.getModeAsString(Ruby runtime) |
static int |
ModeFlags.getOFlagsFromString(Ruby runtime,
java.lang.String modesString) |
IRubyObject |
SelectBlob.goForIt(ThreadContext context,
Ruby runtime,
IRubyObject[] args)
Deprecated.
|
void |
OpenFile.incrementLineno(Ruby runtime)
Deprecated.
|
void |
OpenFile.incrementLineno(Ruby runtime,
RubyIO io) |
org.jcodings.Encoding |
OpenFile.inputEncoding(Ruby runtime) |
static IRubyObject |
EncodingUtils.ioEncStr(Ruby runtime,
IRubyObject str,
OpenFile fptr) |
static int |
OpenFile.ioModestrFmode(Ruby runtime,
java.lang.String modestr) |
static int |
OpenFile.ioModestrOflags(Ruby runtime,
java.lang.String modestr) |
static java.lang.String |
OpenFile.ioOflagsModestr(Ruby runtime,
int oflags) |
static RaiseException |
EncodingUtils.makeEconvException(Ruby runtime,
org.jcodings.transcode.EConv ec) |
static boolean |
PopenExecutor.nativePopenAvailable(Ruby runtime)
Check properties and runtime state to determine whether a native popen is possible.
|
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 java.nio.channels.Selector |
SelectorFactory.openWithRetryFrom(Ruby runtime,
java.nio.channels.spi.SelectorProvider provider) |
static void |
EncodingUtils.rbStrBufCat(Ruby runtime,
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,
ByteList ptr) |
static RubyString |
EncodingUtils.rbStrEscape(Ruby runtime,
RubyString str) |
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 RubyString |
EncodingUtils.setStrBuf(Ruby runtime,
IRubyObject obj,
int len) |
static java.net.SocketAddress |
Sockaddr.sockaddrFromBytes(Ruby runtime,
byte[] val) |
static void |
EncodingUtils.strBufCat(Ruby runtime,
ByteListHolder str,
byte[] ptrBytes,
int ptr,
int len) |
static void |
EncodingUtils.strBufCat(Ruby runtime,
RubyString str,
ByteList ptr) |
static java.lang.String |
Sockaddr.stringFromAddress(Ruby runtime,
java.net.InetAddress as) |
Constructor and Description |
---|
IOOptions(Ruby runtime,
java.lang.String modeString)
Construct a new ModeFlags object by parsing the given string
|
POSIXProcess(Ruby runtime,
long finalPid) |
PosixShim(Ruby runtime) |
Copyright © 2001-2020 JRuby. All Rights Reserved.