org.jruby.cext
Class NativeObjectAllocator

java.lang.Object
  extended by org.jruby.cext.NativeObjectAllocator
All Implemented Interfaces:
ObjectAllocator

public final class NativeObjectAllocator
extends java.lang.Object
implements ObjectAllocator

The NativeObjectAllocator implements allocation through a native function. It is only created from within C code.


Field Summary
 
Fields inherited from interface org.jruby.runtime.ObjectAllocator
NOT_ALLOCATABLE_ALLOCATOR
 
Constructor Summary
NativeObjectAllocator(long function)
           
 
Method Summary
 IRubyObject allocate(Ruby runtime, RubyClass klass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeObjectAllocator

public NativeObjectAllocator(long function)
Method Detail

allocate

public IRubyObject allocate(Ruby runtime,
                            RubyClass klass)
Specified by:
allocate in interface ObjectAllocator


Copyright © 2002-2009 JRuby Team. All Rights Reserved.