Package | Description |
---|---|
org.jruby | |
org.jruby.ext.digest | |
org.jruby.ext.zlib | |
org.jruby.runtime | |
org.jruby.specialized |
Modifier and Type | Field and Description |
---|---|
static ObjectAllocator |
RubyBasicObject.BASICOBJECT_ALLOCATOR
Default allocator instance for all Ruby objects.
|
static ObjectAllocator |
RubyClass.CLASS_ALLOCATOR |
static ObjectAllocator |
RubyException.EXCEPTION_ALLOCATOR |
static ObjectAllocator |
RubyObject.IVAR_INSPECTING_OBJECT_ALLOCATOR
Allocator that inspects all methods for instance variables and chooses
a concrete class to construct based on that.
|
static ObjectAllocator |
RubyModule.MODULE_ALLOCATOR |
static ObjectAllocator |
RubyNil.NIL_ALLOCATOR |
protected static ObjectAllocator |
RubyNumeric.NUMERIC_ALLOCATOR |
static ObjectAllocator |
RubyObject.OBJECT_ALLOCATOR
Default allocator instance for all Ruby objects.
|
static ObjectAllocator |
RubyObject.REIFYING_OBJECT_ALLOCATOR |
Modifier and Type | Method and Description |
---|---|
ObjectAllocator |
RubyClass.getAllocator() |
Modifier and Type | Method and Description |
---|---|
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.
|
RubyClass |
Ruby.defineClass(java.lang.String name,
RubyClass superClass,
ObjectAllocator allocator)
Define a new class under the Object namespace.
|
RubyClass |
Ruby.defineClass(java.lang.String name,
RubyClass superClass,
ObjectAllocator allocator,
CallSite[] callSites)
A variation of defineClass that allows passing in an array of subplementary
call sites for improving dynamic invocation performance.
|
RubyClass |
RubyModule.defineClassUnder(java.lang.String name,
RubyClass superClass,
ObjectAllocator allocator)
rb_define_class_under
this method should be used only as an API to define/open nested classes
|
RubyClass |
Ruby.defineClassUnder(java.lang.String name,
RubyClass superClass,
ObjectAllocator allocator,
RubyModule parent)
Define a new class with the given name under the given module or class
namespace.
|
RubyClass |
Ruby.defineClassUnder(java.lang.String id,
RubyClass superClass,
ObjectAllocator allocator,
RubyModule parent,
CallSite[] callSites)
A variation of defineClassUnder that allows passing in an array of
supplementary call sites to improve dynamic invocation.
|
RubyClass |
RubyModule.defineOrGetClassUnder(java.lang.String name,
RubyClass superClazz,
ObjectAllocator allocator) |
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.
|
void |
RubyClass.setAllocator(ObjectAllocator allocator) |
Modifier and Type | Field and Description |
---|---|
protected static ObjectAllocator |
RubyDigest.DigestBase.DIGEST_BASE_ALLOCATOR |
protected static ObjectAllocator |
RubyDigest.DigestClass.DIGEST_CLASS_ALLOCATOR |
Modifier and Type | Field and Description |
---|---|
protected static ObjectAllocator |
JZlibDeflate.DEFLATE_ALLOCATOR |
protected static ObjectAllocator |
RubyGzipFile.GZIPFILE_ALLOCATOR |
protected static ObjectAllocator |
JZlibRubyGzipReader.GZIPREADER_ALLOCATOR |
protected static ObjectAllocator |
JZlibRubyGzipWriter.GZIPWRITER_ALLOCATOR |
protected static ObjectAllocator |
JZlibInflate.INFLATE_ALLOCATOR |
Modifier and Type | Field and Description |
---|---|
static ObjectAllocator |
ObjectAllocator.NOT_ALLOCATABLE_ALLOCATOR |
Modifier and Type | Method and Description |
---|---|
static ObjectAllocator |
RubyObjectSpecializer.specializeForVariables(RubyClass klass,
java.util.Set<java.lang.String> foundVariables) |
Copyright © 2001-2018 JRuby. All Rights Reserved.