Logo Search packages:      
Sourcecode: jruby version File versions  Download package

Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Package Functions | Static Package Functions | Private Attributes

org::jruby::ext::ffi::jffi::CallbackManager::Callback Class Reference

Inheritance diagram for org::jruby::ext::ffi::jffi::CallbackManager::Callback:
Inheritance graph
[legend]
Collaboration diagram for org::jruby::ext::ffi::jffi::CallbackManager::Callback:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void addFinalizer (IRubyObject f)
IRubyObject address (ThreadContext context)
IRubyObject anyToString ()
final IRubyObject aref (ThreadContext context, IRubyObject indexArg)
String asJavaString ()
RubyString asString ()
void attachToObjectSpace ()
final void callInit (IRubyObject[] args, Block block)
final IRubyObject callMethod (ThreadContext context, String name)
final IRubyObject callMethod (ThreadContext context, String name, IRubyObject arg)
final IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args)
final IRubyObject callMethod (String name, IRubyObject...args)
final IRubyObject callMethod (String name)
final IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, Block block)
final IRubyObject callMethod (ThreadContext context, int methodIndex, String name)
final IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject arg)
IRubyObject callSuper (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject checkArrayType ()
final IRubyObject checkCallMethod (ThreadContext context, String name)
IRubyObject checkStringType ()
IRubyObject checkStringType19 ()
IRubyObject clear (ThreadContext context)
int compareTo (IRubyObject other)
RubyArray convertToArray ()
RubyFloat convertToFloat ()
RubyHash convertToHash ()
RubyInteger convertToInteger ()
RubyInteger convertToInteger (String convertMethod)
RubyInteger convertToInteger (int methodIndex, String convertMethod)
RubyString convertToString ()
final IRubyObject convertToType (RubyClass target, int convertMethodIndex)
void copyInstanceVariablesInto (final InstanceVariables other)
void copyInstanceVariablesInto (InstanceVariables other)
void copySpecialInstanceVariables (IRubyObject clone)
synchronized Object dataGetStruct ()
synchronized Object dataGetStructChecked ()
synchronized void dataWrapStruct (Object obj)
IRubyObject display (ThreadContext context, IRubyObject[] args)
IRubyObject dup ()
final boolean eql (IRubyObject other)
IRubyObject eql_p (IRubyObject obj)
IRubyObject equal_p (ThreadContext context, IRubyObject obj)
IRubyObject equal_p19 (ThreadContext context, IRubyObject other)
boolean equals (Object obj)
IRubyObject evalUnder (final ThreadContext context, RubyModule under, IRubyObject src, IRubyObject file, IRubyObject line)
IRubyObject evalUnder (final ThreadContext context, RubyModule under, RubyString src, String file, int line)
IRubyObject extend (IRubyObject[] args)
IRubyObject fastGetInstanceVariable (String internedName)
Object fastGetInternalVariable (String internedName)
boolean fastHasInstanceVariable (String internedName)
boolean fastHasInternalVariable (String internedName)
IRubyObject fastSetInstanceVariable (String internedName, IRubyObject value)
void fastSetInternalVariable (String internedName, Object value)
IRubyObject freeze (ThreadContext context)
RubyBoolean frozen_p (ThreadContext context)
IRubyObject get_array_of_float (ThreadContext context, IRubyObject offset, IRubyObject length)
IRubyObject get_array_of_float64 (ThreadContext context, IRubyObject offset, IRubyObject length)
IRubyObject get_array_of_int16 (ThreadContext context, IRubyObject offset, IRubyObject length)
IRubyObject get_array_of_int32 (ThreadContext context, IRubyObject offset, IRubyObject length)
IRubyObject get_array_of_int64 (ThreadContext context, IRubyObject offset, IRubyObject length)
IRubyObject get_array_of_int8 (ThreadContext context, IRubyObject offset, IRubyObject length)
IRubyObject get_array_of_long (ThreadContext context, IRubyObject offset, IRubyObject length)
IRubyObject get_array_of_pointer (ThreadContext context, IRubyObject offset, IRubyObject length)
IRubyObject get_array_of_string (ThreadContext context, IRubyObject rbOffset)
IRubyObject get_array_of_string (ThreadContext context, IRubyObject rbOffset, IRubyObject rbCount)
IRubyObject get_array_of_uint16 (ThreadContext context, IRubyObject offset, IRubyObject length)
IRubyObject get_array_of_uint32 (ThreadContext context, IRubyObject offset, IRubyObject length)
IRubyObject get_array_of_uint64 (ThreadContext context, IRubyObject offset, IRubyObject length)
IRubyObject get_array_of_uint8 (ThreadContext context, IRubyObject offset, IRubyObject length)
IRubyObject get_array_of_ulong (ThreadContext context, IRubyObject offset, IRubyObject length)
IRubyObject get_bytes (ThreadContext context, IRubyObject offArg, IRubyObject lenArg)
IRubyObject get_float32 (ThreadContext context)
IRubyObject get_float32 (ThreadContext context, IRubyObject offset)
IRubyObject get_float64 (ThreadContext context)
IRubyObject get_float64 (ThreadContext context, IRubyObject offset)
IRubyObject get_int16 (ThreadContext context)
IRubyObject get_int16 (ThreadContext context, IRubyObject offset)
IRubyObject get_int32 (ThreadContext context)
IRubyObject get_int32 (ThreadContext context, IRubyObject offset)
IRubyObject get_int64 (ThreadContext context, IRubyObject offset)
IRubyObject get_int64 (ThreadContext context)
IRubyObject get_int8 (ThreadContext context)
IRubyObject get_int8 (ThreadContext context, IRubyObject offset)
IRubyObject get_long (ThreadContext context)
IRubyObject get_long (ThreadContext context, IRubyObject offset)
IRubyObject get_pointer (ThreadContext context, IRubyObject offset)
IRubyObject get_pointer (ThreadContext context)
IRubyObject get_string (ThreadContext context, IRubyObject offArg)
IRubyObject get_string (ThreadContext context)
IRubyObject get_string (ThreadContext context, IRubyObject offArg, IRubyObject lenArg)
IRubyObject get_uint16 (ThreadContext context)
IRubyObject get_uint16 (ThreadContext context, IRubyObject offset)
IRubyObject get_uint32 (ThreadContext context)
IRubyObject get_uint32 (ThreadContext context, IRubyObject offset)
IRubyObject get_uint64 (ThreadContext context)
IRubyObject get_uint64 (ThreadContext context, IRubyObject offset)
IRubyObject get_uint8 (ThreadContext context)
IRubyObject get_uint8 (ThreadContext context, IRubyObject offset)
IRubyObject get_ulong (ThreadContext context, IRubyObject offset)
IRubyObject get_ulong (ThreadContext context)
final long getAddress ()
final boolean getFlag (int flag)
IRubyObject getInstanceVariable (String name)
List< Variable< IRubyObject > > getInstanceVariableList ()
List< String > getInstanceVariableNameList ()
InstanceVariables getInstanceVariables ()
Object getInternalVariable (String name)
InternalVariables getInternalVariables ()
Class getJavaClass ()
final MemoryIO getMemoryIO ()
final RubyClass getMetaClass ()
int getNativeTypeIndex ()
final Ruby getRuntime ()
RubyClass getSingletonClass ()
final long getSize ()
RubyClass getType ()
Object getVariable (int index)
int getVariableCount ()
List< Variable< Object > > getVariableList ()
List< String > getVariableNameList ()
RubyFixnum hash (ThreadContext context)
RubyFixnum hash ()
int hashCode ()
IRubyObject hashyInspect ()
boolean hasInstanceVariable (String name)
boolean hasInternalVariable (String name)
boolean hasVariables ()
IRubyObject id ()
IRubyObject id_deprecated ()
IRubyObject infectBy (IRubyObject obj)
IRubyObject initialize (ThreadContext context, IRubyObject type, IRubyObject address)
IRubyObject initialize (ThreadContext context, IRubyObject address)
IRubyObject initialize ()
IRubyObject initialize_copy (IRubyObject original)
IRubyObject inspect ()
IRubyObject inspect (ThreadContext context)
IRubyObject instance_eval (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject instance_eval (ThreadContext context, Block block)
IRubyObject instance_eval (ThreadContext context, IRubyObject arg0, Block block)
IRubyObject instance_eval (ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
IRubyObject instance_eval (ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
IRubyObject instance_exec (ThreadContext context, IRubyObject[] args, Block block)
RubyBoolean instance_of_p (ThreadContext context, IRubyObject type)
IRubyObject instance_variable_defined_p (ThreadContext context, IRubyObject name)
IRubyObject instance_variable_get (ThreadContext context, IRubyObject name)
IRubyObject instance_variable_set (IRubyObject name, IRubyObject value)
RubyArray instance_variables (ThreadContext context)
boolean isBuiltin (String methodName)
boolean isClass ()
final boolean isFalse ()
boolean isFrozen ()
boolean isImmediate ()
boolean isModule ()
final boolean isNil ()
boolean isTaint ()
final boolean isTrue ()
boolean isUntrusted ()
RubyBoolean kind_of_p (ThreadContext context, IRubyObject type)
RubyClass makeMetaClass (RubyClass superClass)
IRubyObject method (IRubyObject symbol)
IRubyObject methods (ThreadContext context, IRubyObject[] args)
IRubyObject methods (ThreadContext context, IRubyObject[] args, boolean useSymbols)
IRubyObject methods19 (ThreadContext context, IRubyObject[] args)
IRubyObject nil_p (ThreadContext context)
IRubyObject null_p (ThreadContext context)
IRubyObject op_eqq (ThreadContext context, IRubyObject other)
IRubyObject op_equal (ThreadContext context, IRubyObject obj)
IRubyObject op_equal_19 (ThreadContext context, IRubyObject obj)
IRubyObject op_match (ThreadContext context, IRubyObject arg)
IRubyObject op_not (ThreadContext context)
IRubyObject op_not_equal (ThreadContext context, IRubyObject other)
IRubyObject op_not_match (ThreadContext context, IRubyObject arg)
IRubyObject op_plus (ThreadContext context, IRubyObject value)
IRubyObject private_methods (ThreadContext context, IRubyObject[] args)
IRubyObject private_methods19 (ThreadContext context, IRubyObject[] args)
IRubyObject protected_methods (ThreadContext context, IRubyObject[] args)
IRubyObject protected_methods19 (ThreadContext context, IRubyObject[] args)
IRubyObject public_methods (ThreadContext context, IRubyObject[] args)
IRubyObject public_methods19 (ThreadContext context, IRubyObject[] args)
IRubyObject put_array_of_float (ThreadContext context, IRubyObject offset, IRubyObject arrParam)
IRubyObject put_array_of_float64 (ThreadContext context, IRubyObject offset, IRubyObject arrParam)
IRubyObject put_array_of_int16 (ThreadContext context, IRubyObject offset, IRubyObject arrParam)
IRubyObject put_array_of_int32 (ThreadContext context, IRubyObject offset, IRubyObject arrParam)
IRubyObject put_array_of_int64 (ThreadContext context, IRubyObject offset, IRubyObject arrParam)
IRubyObject put_array_of_int8 (ThreadContext context, IRubyObject offset, IRubyObject arrParam)
IRubyObject put_array_of_long (ThreadContext context, IRubyObject offset, IRubyObject arr)
IRubyObject put_array_of_pointer (ThreadContext context, IRubyObject offset, IRubyObject arrParam)
IRubyObject put_array_of_uint16 (ThreadContext context, IRubyObject offset, IRubyObject arrParam)
IRubyObject put_array_of_uint32 (ThreadContext context, IRubyObject offset, IRubyObject arrParam)
IRubyObject put_array_of_uint64 (ThreadContext context, IRubyObject offset, IRubyObject arrParam)
IRubyObject put_array_of_uint8 (ThreadContext context, IRubyObject offset, IRubyObject arrParam)
IRubyObject put_array_of_ulong (ThreadContext context, IRubyObject offset, IRubyObject arr)
IRubyObject put_bytes (ThreadContext context, IRubyObject[] args)
IRubyObject put_callback (ThreadContext context, IRubyObject offset, IRubyObject proc, IRubyObject cbInfo)
IRubyObject put_float32 (ThreadContext context, IRubyObject value)
IRubyObject put_float32 (ThreadContext context, IRubyObject offset, IRubyObject value)
IRubyObject put_float64 (ThreadContext context, IRubyObject value)
IRubyObject put_float64 (ThreadContext context, IRubyObject offset, IRubyObject value)
IRubyObject put_int16 (ThreadContext context, IRubyObject offset, IRubyObject value)
IRubyObject put_int16 (ThreadContext context, IRubyObject value)
IRubyObject put_int32 (ThreadContext context, IRubyObject offset, IRubyObject value)
IRubyObject put_int32 (ThreadContext context, IRubyObject value)
IRubyObject put_int64 (ThreadContext context, IRubyObject offset, IRubyObject value)
IRubyObject put_int64 (ThreadContext context, IRubyObject value)
IRubyObject put_int8 (ThreadContext context, IRubyObject value)
IRubyObject put_int8 (ThreadContext context, IRubyObject offset, IRubyObject value)
IRubyObject put_long (ThreadContext context, IRubyObject offset, IRubyObject value)
IRubyObject put_long (ThreadContext context, IRubyObject value)
IRubyObject put_pointer (ThreadContext context, IRubyObject value)
IRubyObject put_pointer (ThreadContext context, IRubyObject offset, IRubyObject value)
IRubyObject put_string (ThreadContext context, IRubyObject offArg, IRubyObject strArg)
IRubyObject put_uint16 (ThreadContext context, IRubyObject value)
IRubyObject put_uint16 (ThreadContext context, IRubyObject offset, IRubyObject value)
IRubyObject put_uint32 (ThreadContext context, IRubyObject offset, IRubyObject value)
IRubyObject put_uint32 (ThreadContext context, IRubyObject value)
IRubyObject put_uint64 (ThreadContext context, IRubyObject value)
IRubyObject put_uint64 (ThreadContext context, IRubyObject offset, IRubyObject value)
IRubyObject put_uint8 (ThreadContext context, IRubyObject offset, IRubyObject value)
IRubyObject put_uint8 (ThreadContext context, IRubyObject value)
IRubyObject put_ulong (ThreadContext context, IRubyObject value)
IRubyObject put_ulong (ThreadContext context, IRubyObject offset, IRubyObject value)
IRubyObject rbClone ()
IRubyObject read_char (ThreadContext context)
IRubyObject read_double (ThreadContext context)
IRubyObject read_float (ThreadContext context)
IRubyObject read_int (ThreadContext context)
IRubyObject read_long (ThreadContext context)
IRubyObject read_long_long (ThreadContext context)
IRubyObject read_pointer (ThreadContext context)
IRubyObject read_short (ThreadContext context)
IRubyObject read_string (ThreadContext context, IRubyObject rbLength)
IRubyObject read_string (ThreadContext context)
IRubyObject read_uchar (ThreadContext context)
IRubyObject read_uint (ThreadContext context)
IRubyObject read_ulong (ThreadContext context)
IRubyObject read_ulong_long (ThreadContext context)
IRubyObject read_ushort (ThreadContext context)
IRubyObject remove_instance_variable (ThreadContext context, IRubyObject name, Block block)
void removeFinalizers ()
IRubyObject removeInstanceVariable (String name)
Object removeInternalVariable (String name)
RubyBoolean respond_to_p (IRubyObject mname, IRubyObject includePrivate)
RubyBoolean respond_to_p (IRubyObject mname)
final boolean respondsTo (String name)
IRubyObject send (ThreadContext context, IRubyObject arg0, Block block)
IRubyObject send (ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
IRubyObject send (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject send (ThreadContext context, Block block)
IRubyObject send (ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
final void setFlag (int flag, boolean set)
void setFrozen (boolean frozen)
IRubyObject setInstanceVariable (String name, IRubyObject value)
void setInternalVariable (String name, Object value)
void setMetaClass (RubyClass metaClass)
void setTaint (boolean taint)
void setUntrusted (boolean untrusted)
synchronized void setVariable (int index, Object value)
RubyArray singleton_methods (ThreadContext context, IRubyObject[] args)
RubyArray singleton_methods19 (ThreadContext context, IRubyObject[] args)
RubyArray singletonMethods (ThreadContext context, IRubyObject[] args, boolean asSymbols)
IRubyObject specificEval (ThreadContext context, RubyModule mod, IRubyObject arg0, IRubyObject arg1, Block block)
IRubyObject specificEval (ThreadContext context, RubyModule mod, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
IRubyObject specificEval (ThreadContext context, RubyModule mod, IRubyObject arg, Block block)
IRubyObject specificEval (ThreadContext context, RubyModule mod, Block block)
IRubyObject specificEval (ThreadContext context, RubyModule mod, IRubyObject[] args, Block block)
void syncVariables (List< Variable< Object >> variables)
IRubyObject taint (ThreadContext context)
RubyBoolean tainted_p (ThreadContext context)
RubyArray to_a ()
IRubyObject to_s ()
IRubyObject to_s (ThreadContext context, IRubyObject[] args)
Object toJava (Class target)
String toString ()
IRubyObject total (ThreadContext context)
IRubyObject trust (ThreadContext context)
RubyClass type ()
RubyClass type_deprecated ()
final IRubyObject type_size (ThreadContext context)
IRubyObject untaint (ThreadContext context)
IRubyObject untrust (ThreadContext context)
RubyBoolean untrusted_p (ThreadContext context)
IRubyObject write_char (ThreadContext context, IRubyObject value)
IRubyObject write_double (ThreadContext context, IRubyObject value)
IRubyObject write_float (ThreadContext context, IRubyObject value)
IRubyObject write_int (ThreadContext context, IRubyObject value)
IRubyObject write_long (ThreadContext context, IRubyObject value)
IRubyObject write_long_long (ThreadContext context, IRubyObject value)
IRubyObject write_pointer (ThreadContext context, IRubyObject value)
IRubyObject write_short (ThreadContext context, IRubyObject value)
IRubyObject write_uchar (ThreadContext context, IRubyObject value)
IRubyObject write_uint (ThreadContext context, IRubyObject value)
IRubyObject write_ulong_long (ThreadContext context, IRubyObject value)
IRubyObject write_ushort (ThreadContext context, IRubyObject value)

Static Public Member Functions

static RubyClass createAbstractMemoryClass (Ruby runtime, RubyModule module)
static RubyClass createBasicObjectClass (Ruby runtime, RubyClass objectClass)
static RubyClass createObjectClass (Ruby runtime, RubyClass objectClass)
static RubyClass createPointerClass (Ruby runtime, RubyModule module)
static final RubyClass getPointerClass (Ruby runtime)
static void puts (Object obj)

Static Public Attributes

static final String ABSTRACT_MEMORY_RUBY_CLASS = "AbstractMemory"
static final int ALL_F = -1
static final int COMPARE_BY_IDENTITY_F = (1<<(FL_USHIFT+8))
static final int FALSE_F = 1 << 0
static final int FL_USHIFT = 5
static final int FROZEN_F = 1 << 2
static final IRubyObject NEVER = new RubyBasicObject()
static final int NIL_F = 1 << 1
static final IRubyObject[] NULL_ARRAY = new IRubyObject[0]
static final ObjectAllocator OBJECT_ALLOCATOR
static final int TAINTED_F = 1 << 3
static final IRubyObject UNDEF = new RubyBasicObject()
static final int UNTRUSTED_F = 1 << 4
static final int USER0_F = (1<<(FL_USHIFT+0))
static final int USER1_F = (1<<(FL_USHIFT+1))
static final int USER2_F = (1<<(FL_USHIFT+2))
static final int USER3_F = (1<<(FL_USHIFT+3))
static final int USER4_F = (1<<(FL_USHIFT+4))
static final int USER5_F = (1<<(FL_USHIFT+5))
static final int USER6_F = (1<<(FL_USHIFT+6))
static final int USER7_F = (1<<(FL_USHIFT+7))

Protected Member Functions

void checkFrozen ()
final void ensureInstanceVariablesSettable ()
synchronized long getObjectId ()
final long getOffset (IRubyObject offset)
Pointer getPointer (Ruby runtime, long offset)
RubyClass getSingletonClassClone ()
synchronized long initObjectId (RubyClass.VariableAccessor objectIdAccessor)
int inspectHashCode ()
final MemoryIO setMemoryIO (MemoryIO io)
AbstractMemory slice (Ruby runtime, long offset, long size)
AbstractMemory slice (Ruby runtime, long offset)
void taint (Ruby runtime)
final void testFrozen (String message)
final void testFrozen ()
String validateInstanceVariable (String name)
boolean variableTableContains (String name)
boolean variableTableFastContains (String internedName)
Object variableTableFastFetch (String internedName)
Object variableTableFastStore (String internedName, Object value)
Object variableTableFetch (String name)
Object variableTableRemove (String name)
Object variableTableStore (String name, Object value)
void variableTableSync (List< Variable< Object >> vars)

Static Protected Member Functions

static final int calculateSize (ThreadContext context, IRubyObject sizeArg)
static final RubyArray checkArray (IRubyObject obj)
static boolean eqlInternal (final ThreadContext context, final IRubyObject that, final IRubyObject other)
static boolean equalInternal (final ThreadContext context, final IRubyObject that, final IRubyObject other)

Protected Attributes

int flags
MemoryIO io
transient RubyClass metaClass
long size
int typeSize

Static Protected Attributes

static final String ERR_INSECURE_SET_INST_VAR = "Insecure: can't modify instance variable"

Package Functions

 Callback (Ruby runtime, Closure.Handle handle, CallbackInfo cbInfo)
IRubyObject checkIntegerType (Ruby runtime, IRubyObject obj, String method)
void dispose ()
final RubyBasicObject infectBy (RubyBasicObject obj)
final RubyBasicObject infectBy (int tuFlags)

Static Package Functions

static RubyString inspect (ThreadContext context, IRubyObject object)

Private Attributes

final CallbackInfo cbInfo

Detailed Description

Wrapper around the native callback, to represent it as a ruby object

Definition at line 208 of file CallbackManager.java.


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index