Logo Search packages:      
Sourcecode: jruby1.0 version File versions

org::jruby::RubyStruct Class Reference

Inheritance diagram for org::jruby::RubyStruct:

org::jruby::RubyObject org::jruby::runtime::builtin::IRubyObject

List of all members.


Detailed Description

Author:
jpetersen

Definition at line 53 of file RubyStruct.java.


Public Member Functions

void addFinalizer (RubyProc finalizer)
IRubyObject anyToString ()
IRubyObject aref (IRubyObject key)
IRubyObject aset (IRubyObject key, IRubyObject value)
RubyString asString ()
String asSymbol ()
void attachToObjectSpace ()
void callInit (IRubyObject[] args, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject arg)
IRubyObject callMethod (ThreadContext context, String name, Block block)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name)
IRubyObject callMethod (ThreadContext context, String name)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, int methodIndex, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, int methodIndex, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject[] args)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject arg)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args)
IRubyObject callSuper (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject checkArrayType ()
IRubyObject checkStringType ()
IRubyObject compilerCallMethod (ThreadContext context, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
IRubyObject compilerCallMethodWithIndex (ThreadContext context, int methodIndex, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
RubyArray convertToArray ()
RubyFloat convertToFloat ()
RubyHash convertToHash ()
RubyInteger convertToInteger ()
RubyString convertToString ()
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, String convertMethod, boolean raiseOnMissingMethod, boolean raiseOnWrongTypeResult, boolean allowNilThrough)
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, boolean raise)
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, String convertMethod, boolean raise)
IRubyObject convertToTypeWithCheck (RubyClass targetType, int convertMethodIndex, String convertMethod)
synchronized Object dataGetStruct ()
synchronized void dataWrapStruct (Object obj)
IRubyObject display (IRubyObject[] args)
IRubyObject dup ()
IRubyObject each (Block block)
IRubyObject each_pair (Block block)
boolean eql (IRubyObject other)
IRubyObject eql_p (IRubyObject other)
final boolean eqlInternal (final ThreadContext context, final IRubyObject other)
IRubyObject equal (IRubyObject other)
final IRubyObject equalInternal (final ThreadContext context, final IRubyObject other)
boolean equals (Object other)
IRubyObject evalSimple (ThreadContext context, IRubyObject src, String file)
IRubyObject evalUnder (RubyModule under, IRubyObject src, IRubyObject file, IRubyObject line)
IRubyObject evalWithBinding (ThreadContext context, IRubyObject src, IRubyObject scope, String file)
IRubyObject extend (IRubyObject[] args)
IRubyObject freeze ()
RubyBoolean frozen ()
IRubyObject get (Block block)
IRubyObject getInstanceVariable (String name)
Map getInstanceVariables ()
Map getInstanceVariablesSnapshot ()
Class getJavaClass ()
final RubyClass getMetaClass ()
int getNativeTypeIndex ()
Ruby getRuntime ()
RubyClass getSingletonClass ()
RubyClass getSingletonClassClone ()
RubyClass getType ()
RubyFixnum hash ()
int hashCode ()
synchronized RubyFixnum id ()
synchronized RubyFixnum id_deprecated ()
IRubyObject infectBy (IRubyObject obj)
IRubyObject inherited (IRubyObject arg, Block block)
IRubyObject initialize (IRubyObject[] args, Block unusedBlock)
IRubyObject initialize_copy (IRubyObject arg)
IRubyObject inspect ()
IRubyObject instance_eval (IRubyObject[] args, Block block)
IRubyObject instance_exec (IRubyObject[] args, Block block)
RubyBoolean instance_of (IRubyObject type)
IRubyObject instance_variable_get (IRubyObject var)
IRubyObject instance_variable_set (IRubyObject var, IRubyObject value)
RubyArray instance_variables ()
Iterator instanceVariableNames ()
final boolean isFalse ()
boolean isFrozen ()
boolean isImmediate ()
boolean isKindOf (RubyModule type)
boolean isNil ()
boolean isSingleton ()
boolean isTaint ()
final boolean isTrue ()
RubyBoolean kind_of (IRubyObject type)
RubyClass makeMetaClass (RubyClass superClass, SinglyLinkedList parentCRef)
IRubyObject match (IRubyObject arg)
RubyArray members ()
IRubyObject method (IRubyObject symbol)
IRubyObject method_missing (IRubyObject[] args, Block block)
IRubyObject methods (IRubyObject[] args)
IRubyObject nil_p ()
IRubyObject obj_equal (IRubyObject obj)
IRubyObject private_methods ()
IRubyObject protected_methods ()
IRubyObject public_methods (IRubyObject[] args)
IRubyObject rbClone (Block block)
IRubyObject remove_instance_variable (IRubyObject name, Block block)
void removeFinalizers ()
IRubyObject removeInstanceVariable (String name)
RubyBoolean respond_to (IRubyObject[] args)
boolean respondsTo (String name)
 RubyStruct (Ruby runtime, RubyClass rubyClass)
Map safeGetInstanceVariables ()
boolean safeHasInstanceVariables ()
IRubyObject send (IRubyObject[] args, Block block)
IRubyObject set (IRubyObject value, Block block)
void setFrozen (boolean frozen)
IRubyObject setInstanceVariable (String name, IRubyObject value)
IRubyObject setInstanceVariable (String name, IRubyObject value, String taintError, String freezeError)
void setInstanceVariables (Map instanceVariables)
void setMetaClass (RubyClass metaClass)
void setTaint (boolean taint)
RubyArray singleton_methods (IRubyObject[] args)
RubyFixnum size ()
IRubyObject specificEval (RubyModule mod, IRubyObject[] args, Block block)
IRubyObject taint ()
RubyBoolean tainted ()
RubyArray to_a ()
IRubyObject to_s ()
String toString ()
RubyClass type ()
RubyClass type_deprecated ()
IRubyObject untaint ()
IRubyObject values_at (IRubyObject[] args)

Static Public Member Functions

static IRubyObject callMethodMissingIfNecessary (ThreadContext context, IRubyObject receiver, DynamicMethod method, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
static RubyClass createObjectClass (Ruby runtime, RubyClass objectClass)
static RubyClass createStructClass (Ruby runtime)
static void initCopy (IRubyObject clone, IRubyObject original)
static void marshalTo (RubyStruct struct, MarshalStream output) throws java.io.IOException
static RubyArray members (IRubyObject recv, Block block)
static RubyClass newInstance (IRubyObject recv, IRubyObject[] args, Block block)
static RubyStruct newStruct (IRubyObject recv, IRubyObject[] args, Block block)
static void puts (Object obj)
static String trueFalseNil (String v)
static String trueFalseNil (IRubyObject v)
static RubyStruct unmarshalFrom (UnmarshalStream input) throws java.io.IOException

Static Public Attributes

static final IRubyObject NEVER = new RubyObject()
static final IRubyObject[] NULL_ARRAY = new IRubyObject[0]
static ObjectAllocator OBJECT_ALLOCATOR

Protected Member Functions

void checkFrozen ()
IRubyObject doClone ()
void testFrozen (String message)

Protected Attributes

Map instanceVariables
boolean isTrue = true
RubyClass metaClass

Private Member Functions

RubyClass classOf ()
IRubyObject getByName (String name)
void modify ()
RaiseException notStructMemberError (String name)
IRubyObject setByName (String name, IRubyObject value)

Static Private Member Functions

static IRubyObject getInstanceVariable (RubyClass type, String name)
static RubyClass pathToClass (Ruby runtime, String path)

Private Attributes

IRubyObject[] values

Static Private Attributes

static ObjectAllocator STRUCT_INSTANCE_ALLOCATOR

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

Generated by  Doxygen 1.6.0   Back to index