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

Classes | 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 Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes

org::jruby::RubyArray Class Reference

Inheritance diagram for org::jruby::RubyArray:
Inheritance graph
[legend]
Collaboration diagram for org::jruby::RubyArray:
Collaboration graph
[legend]

List of all members.

Classes

class  RubyArrayConversionIterator
class  RubyArrayConversionListIterator

Public Member Functions

boolean add (Object element)
void add (int index, Object element)
boolean addAll (Collection c)
boolean addAll (int index, Collection c)
void addFinalizer (IRubyObject f)
IRubyObject all_p (ThreadContext context, Block block)
IRubyObject any_p (ThreadContext context, Block block)
IRubyObject anyToString ()
RubyArray append (IRubyObject item)
IRubyObject aref (IRubyObject[] args)
IRubyObject aref (IRubyObject arg0)
IRubyObject aref (IRubyObject arg0, IRubyObject arg1)
IRubyObject aref19 (IRubyObject arg0)
IRubyObject aref19 (IRubyObject arg0, IRubyObject arg1)
final RubyArray aryDup ()
IRubyObject aset (IRubyObject[] args)
IRubyObject aset (IRubyObject arg0, IRubyObject arg1)
IRubyObject aset (IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
IRubyObject aset19 (IRubyObject arg0, IRubyObject arg1)
IRubyObject aset19 (IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
String asJavaString ()
IRubyObject assoc (ThreadContext context, IRubyObject key)
RubyString asString ()
IRubyObject at (IRubyObject pos)
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, int methodIndex, String name)
final IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject arg)
final IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, Block block)
IRubyObject callSuper (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject checkArrayType ()
final IRubyObject checkCallMethod (ThreadContext context, String name)
IRubyObject checkStringType ()
IRubyObject checkStringType19 ()
IRubyObject choice (ThreadContext context)
IRubyObject choice19 (ThreadContext context)
IRubyObject choiceCommon (ThreadContext context)
void clear ()
IRubyObject collect (ThreadContext context, Block block)
IRubyObject collect19 (ThreadContext context, Block block)
IRubyObject collect_bang (ThreadContext context, Block block)
RubyArray collectBang (ThreadContext context, Block block)
IRubyObject combination (ThreadContext context, IRubyObject num, Block block)
IRubyObject compact ()
IRubyObject compact_bang ()
RubyBoolean compare (ThreadContext context, String method, IRubyObject other, Set< RecursiveComparator.Pair > seen)
int compareTo (IRubyObject other)
RubyArray concat (IRubyObject obj)
RubyArray concat19 (IRubyObject obj)
boolean contains (Object element)
boolean containsAll (Collection c)
RubyArray convertToArray ()
RubyFloat convertToFloat ()
RubyHash convertToHash ()
RubyInteger convertToInteger ()
RubyInteger convertToInteger (int methodIndex, String convertMethod)
RubyInteger convertToInteger (String convertMethod)
RubyString convertToString ()
final IRubyObject convertToType (RubyClass target, int convertMethodIndex)
void copyInstanceVariablesInto (final InstanceVariables other)
void copyInstanceVariablesInto (InstanceVariables other)
void copySpecialInstanceVariables (IRubyObject clone)
IRubyObject count (ThreadContext context, Block block)
IRubyObject count (ThreadContext context, IRubyObject obj, Block block)
IRubyObject cycle (ThreadContext context, IRubyObject arg, Block block)
IRubyObject cycle (ThreadContext context, Block block)
synchronized Object dataGetStruct ()
synchronized Object dataGetStructChecked ()
synchronized void dataWrapStruct (Object obj)
IRubyObject delete (ThreadContext context, IRubyObject item, Block block)
IRubyObject delete_at (IRubyObject obj)
IRubyObject delete_if (ThreadContext context, Block block)
IRubyObject deleteIf (ThreadContext context, Block block)
IRubyObject detectCommon (ThreadContext context, IRubyObject ifnone, Block block)
IRubyObject display (ThreadContext context, IRubyObject[] args)
IRubyObject drop (ThreadContext context, IRubyObject n)
IRubyObject drop_while (ThreadContext context, Block block)
IRubyObject dup ()
IRubyObject each (ThreadContext context, Block block)
IRubyObject each_index (ThreadContext context, Block block)
IRubyObject eachCommon (ThreadContext context, Block block)
IRubyObject eachIndex (ThreadContext context, Block block)
final IRubyObject eltInternal (int offset)
final IRubyObject eltInternalSet (int offset, IRubyObject item)
IRubyObject empty_p ()
final IRubyObject entry (long offset)
final IRubyObject entry (int offset)
boolean eql (IRubyObject other)
IRubyObject eql (ThreadContext context, IRubyObject obj)
IRubyObject eql_p (IRubyObject obj)
IRubyObject equal_p (ThreadContext context, IRubyObject obj)
IRubyObject equal_p19 (ThreadContext context, IRubyObject other)
boolean equals (Object other)
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 fetch (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject fetch (ThreadContext context, IRubyObject arg0, Block block)
IRubyObject fetch (ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
IRubyObject fill (ThreadContext context, Block block)
IRubyObject fill (ThreadContext context, IRubyObject arg, Block block)
IRubyObject fill (ThreadContext context, IRubyObject arg1, IRubyObject arg2, Block block)
IRubyObject fill (ThreadContext context, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3, Block block)
IRubyObject find (ThreadContext context, IRubyObject ifnone, Block block)
IRubyObject find_index (ThreadContext context, Block block)
IRubyObject find_index (ThreadContext context, IRubyObject cond)
IRubyObject first (IRubyObject[] args)
IRubyObject first ()
IRubyObject first (IRubyObject arg0)
IRubyObject flatten (ThreadContext context)
IRubyObject flatten (ThreadContext context, IRubyObject arg)
IRubyObject flatten19 (ThreadContext context)
IRubyObject flatten19 (ThreadContext context, IRubyObject arg)
IRubyObject flatten_bang (ThreadContext context)
IRubyObject flatten_bang (ThreadContext context, IRubyObject arg)
IRubyObject flatten_bang19 (ThreadContext context)
IRubyObject flatten_bang19 (ThreadContext context, IRubyObject arg)
IRubyObject freeze (ThreadContext context)
RubyBoolean frozen_p (ThreadContext context)
Object get (int index)
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 ()
int getLength ()
List getList ()
final RubyClass getMetaClass ()
int getNativeTypeIndex ()
final Ruby getRuntime ()
RubyClass getSingletonClass ()
RubyClass getType ()
Object getVariable (int index)
int getVariableCount ()
List< Variable< Object > > getVariableList ()
List< String > getVariableNameList ()
RubyFixnum hash (ThreadContext context)
RubyFixnum hash ()
RubyFixnum hash19 (final ThreadContext context)
int hashCode ()
IRubyObject hashyInspect ()
boolean hasInstanceVariable (String name)
boolean hasInternalVariable (String name)
boolean hasVariables ()
IRubyObject id ()
IRubyObject id_deprecated ()
RubyBoolean include_p (ThreadContext context, IRubyObject item)
boolean includes (ThreadContext context, IRubyObject item)
IRubyObject index (ThreadContext context, IRubyObject obj)
IRubyObject index (ThreadContext context, IRubyObject obj, Block unused)
IRubyObject index (ThreadContext context, Block block)
IRubyObject indexes (IRubyObject[] args)
int indexOf (Object element)
IRubyObject infectBy (IRubyObject obj)
IRubyObject initialize (ThreadContext context, Block block)
IRubyObject initialize ()
IRubyObject initialize (ThreadContext context, IRubyObject arg0, Block block)
IRubyObject initialize (ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
IRubyObject initialize (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject initialize_copy (IRubyObject orig)
IRubyObject insert ()
IRubyObject insert (IRubyObject arg)
IRubyObject insert (IRubyObject arg1, IRubyObject arg2)
IRubyObject insert (IRubyObject[] args)
IRubyObject insert19 (IRubyObject arg)
IRubyObject insert19 (IRubyObject arg1, IRubyObject arg2)
IRubyObject insert19 (IRubyObject[] args)
IRubyObject inspect ()
IRubyObject instance_eval (ThreadContext context, Block block)
IRubyObject instance_eval (ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
IRubyObject instance_eval (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject instance_eval (ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
IRubyObject instance_eval (ThreadContext context, IRubyObject arg0, 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 ()
boolean isEmpty ()
final boolean isFalse ()
boolean isFrozen ()
boolean isImmediate ()
boolean isModule ()
final boolean isNil ()
boolean isTaint ()
final boolean isTrue ()
boolean isUntrusted ()
Iterator iterator ()
IRubyObject join (ThreadContext context, IRubyObject sep)
IRubyObject join (ThreadContext context)
IRubyObject join19 (ThreadContext context)
IRubyObject join19 (ThreadContext context, IRubyObject sep)
IRubyObject keep_if (ThreadContext context, Block block)
RubyBoolean kind_of_p (ThreadContext context, IRubyObject type)
IRubyObject last (IRubyObject[] args)
IRubyObject last ()
IRubyObject last (IRubyObject arg0)
int lastIndexOf (Object element)
RubyFixnum length ()
ListIterator listIterator (int index)
ListIterator listIterator ()
RubyClass makeMetaClass (RubyClass superClass)
IRubyObject map_bang (ThreadContext context, Block block)
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 nitems ()
IRubyObject op_and (IRubyObject other)
IRubyObject op_cmp (ThreadContext context, IRubyObject obj)
IRubyObject op_diff (IRubyObject other)
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_or (IRubyObject other)
IRubyObject op_plus (IRubyObject obj)
IRubyObject op_times (ThreadContext context, IRubyObject times)
IRubyObject op_times19 (ThreadContext context, IRubyObject times)
RubyString pack (ThreadContext context, IRubyObject obj)
IRubyObject permutation (ThreadContext context, IRubyObject num, Block block)
IRubyObject permutation (ThreadContext context, Block block)
IRubyObject pop (ThreadContext context)
IRubyObject pop (ThreadContext context, IRubyObject num)
IRubyObject private_methods (ThreadContext context, IRubyObject[] args)
IRubyObject private_methods19 (ThreadContext context, IRubyObject[] args)
IRubyObject product (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)
RubyArray push_m (IRubyObject[] items)
RubyArray push_m19 (IRubyObject[] items)
IRubyObject rassoc (ThreadContext context, IRubyObject value)
IRubyObject rb_clear ()
IRubyObject rbClone ()
IRubyObject reject (ThreadContext context, Block block)
IRubyObject reject_bang (ThreadContext context, Block block)
IRubyObject rejectBang (ThreadContext context, Block block)
IRubyObject rejectCommon (ThreadContext context, Block block)
boolean remove (Object element)
Object remove (int index)
IRubyObject remove_instance_variable (ThreadContext context, IRubyObject name, Block block)
boolean removeAll (Collection c)
void removeFinalizers ()
IRubyObject removeInstanceVariable (String name)
Object removeInternalVariable (String name)
IRubyObject replace (IRubyObject orig)
RubyBoolean respond_to_p (IRubyObject mname)
RubyBoolean respond_to_p (IRubyObject mname, IRubyObject includePrivate)
final boolean respondsTo (String name)
boolean retainAll (Collection c)
IRubyObject reverse ()
IRubyObject reverse_bang ()
IRubyObject reverse_each (ThreadContext context, Block block)
IRubyObject reverseEach (ThreadContext context, Block block)
IRubyObject rindex (ThreadContext context, Block block)
IRubyObject rindex (ThreadContext context, IRubyObject obj, Block unused)
IRubyObject rindex (ThreadContext context, IRubyObject obj)
IRubyObject rotate (ThreadContext context, IRubyObject cnt)
IRubyObject rotate (ThreadContext context)
IRubyObject rotate_bang (ThreadContext context)
IRubyObject rotate_bang (ThreadContext context, IRubyObject cnt)
IRubyObject sample (ThreadContext context)
IRubyObject sample (ThreadContext context, IRubyObject nv)
IRubyObject select (ThreadContext context, Block block)
IRubyObject select_bang (ThreadContext context, Block block)
IRubyObject selectCommon (ThreadContext context, Block block)
IRubyObject send (ThreadContext context, Block block)
IRubyObject send (ThreadContext context, IRubyObject arg0, Block block)
IRubyObject send (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject send (ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
IRubyObject send (ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
Object set (int index, Object element)
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)
IRubyObject shift (ThreadContext context)
IRubyObject shift (ThreadContext context, IRubyObject num)
IRubyObject shuffle (ThreadContext context)
IRubyObject shuffle_bang (ThreadContext context)
RubyArray singleton_methods (ThreadContext context, IRubyObject[] args)
RubyArray singleton_methods19 (ThreadContext context, IRubyObject[] args)
RubyArray singletonMethods (ThreadContext context, IRubyObject[] args, boolean asSymbols)
int size ()
IRubyObject slice_bang (IRubyObject[] args)
IRubyObject slice_bang (IRubyObject arg0, IRubyObject arg1)
IRubyObject slice_bang (IRubyObject arg0)
RubyArray sort (ThreadContext context, Block block)
RubyArray sort19 (ThreadContext context, Block block)
IRubyObject sort_bang (ThreadContext context, Block block)
IRubyObject sort_bang19 (ThreadContext context, Block block)
IRubyObject sort_by_bang (ThreadContext context, 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 arg0, IRubyObject arg1, IRubyObject arg2, Block block)
IRubyObject specificEval (ThreadContext context, RubyModule mod, IRubyObject[] args, Block block)
IRubyObject specificEval (ThreadContext context, RubyModule mod, IRubyObject arg0, IRubyObject arg1, Block block)
final IRubyObject store (long index, IRubyObject value)
List subList (int fromIndex, int toIndex)
IRubyObject subseq (long beg, long len)
IRubyObject subseqLight (long beg, long len)
void syncVariables (List< Variable< Object >> variables)
IRubyObject taint (ThreadContext context)
RubyBoolean tainted_p (ThreadContext context)
IRubyObject take (ThreadContext context, IRubyObject n)
IRubyObject take_while (ThreadContext context, Block block)
RubyArray to_a ()
IRubyObject to_ary ()
IRubyObject to_s ()
Object[] toArray (final Object[] arg)
Object[] toArray ()
Object toJava (Class target)
IRubyObject[] toJavaArray ()
IRubyObject[] toJavaArrayMaybeUnsafe ()
IRubyObject[] toJavaArrayUnsafe ()
String toString ()
RubyArray transpose ()
IRubyObject trust (ThreadContext context)
RubyClass type ()
RubyClass type_deprecated ()
IRubyObject uniq (ThreadContext context)
IRubyObject uniq19 (ThreadContext context, Block block)
IRubyObject uniq_bang (ThreadContext context)
IRubyObject uniq_bang19 (ThreadContext context, Block block)
IRubyObject unshift (IRubyObject item)
IRubyObject unshift ()
IRubyObject unshift (IRubyObject[] items)
IRubyObject unshift19 (IRubyObject item)
IRubyObject unshift19 ()
IRubyObject unshift19 (IRubyObject[] items)
IRubyObject untaint (ThreadContext context)
IRubyObject untrust (ThreadContext context)
RubyBoolean untrusted_p (ThreadContext context)
IRubyObject values_at (IRubyObject[] args)
IRubyObject zip (ThreadContext context, IRubyObject[] args, Block block)

Static Public Member Functions

static IRubyObject create (IRubyObject klass, IRubyObject[] args, Block block)
static RubyClass createArrayClass (Ruby runtime)
static RubyClass createBasicObjectClass (Ruby runtime, RubyClass objectClass)
static RubyClass createObjectClass (Ruby runtime, RubyClass objectClass)
static void marshalTo (RubyArray array, MarshalStream output) throws IOException
static RubyArray newArray (Ruby runtime, IRubyObject obj)
static RubyArray newArray (Ruby runtime, Collection<?extends IRubyObject > collection)
static final RubyArray newArray (final Ruby runtime, final int len)
static final RubyArray newArray (final Ruby runtime, final long len)
static RubyArray newArray (Ruby runtime, IRubyObject car, IRubyObject cdr)
static final RubyArray newArray (final Ruby runtime)
static RubyArray newArray (Ruby runtime, IRubyObject[] args)
static final RubyArray newArrayLight (final Ruby runtime)
static final RubyArray newArrayLight (final Ruby runtime, final long len)
static RubyArray newArrayLight (Ruby runtime, IRubyObject obj)
static RubyArray newArrayLight (Ruby runtime, IRubyObject...objs)
static final RubyArray newArrayLight (final Ruby runtime, final int len)
static RubyArray newArrayNoCopy (Ruby runtime, IRubyObject[] args, int begin)
static RubyArray newArrayNoCopy (Ruby runtime, IRubyObject[] args)
static RubyArray newArrayNoCopy (Ruby runtime, IRubyObject[] args, int begin, int length)
static RubyArray newArrayNoCopyLight (Ruby runtime, IRubyObject[] args)
static RubyArray newEmptyArray (Ruby runtime)
static void puts (Object obj)
static IRubyObject try_convert (ThreadContext context, IRubyObject self, IRubyObject arg)
static RubyArray unmarshalFrom (UnmarshalStream input) throws IOException

Static Public Attributes

static final int ALL_F = -1
static final int ARRAY_DEFAULT_SIZE = 16
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 ()
RubyClass getSingletonClassClone ()
synchronized long initObjectId (RubyClass.VariableAccessor objectIdAccessor)
int inspectHashCode ()
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 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
transient RubyClass metaClass

Static Protected Attributes

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

Package Functions

IRubyObject checkIntegerType (Ruby runtime, IRubyObject obj, String method)
final RubyBasicObject infectBy (RubyBasicObject obj)
final RubyBasicObject infectBy (int tuFlags)

Static Package Functions

static RubyString inspect (ThreadContext context, IRubyObject object)

Private Member Functions

IRubyObject all_pBlockless (ThreadContext context)
void alloc (int length)
IRubyObject any_pBlockless (ThreadContext context)
IRubyObject arefCommon (IRubyObject arg0, IRubyObject arg1)
IRubyObject arefCommon (IRubyObject arg0)
IRubyObject cmpCommon (ThreadContext context, Ruby runtime, RubyArray ary2)
int combinationLength (ThreadContext context, int n, int k)
final void concurrentModification ()
IRubyObject cycleCommon (ThreadContext context, long n, Block block)
final IRubyObject delete_at (int pos)
final IRubyObject elt (long offset)
final IRubyObject eltOk (long offset)
int fillBegin (IRubyObject arg)
IRubyObject fillCommon (ThreadContext context, int beg, long len, IRubyObject item)
IRubyObject fillCommon (ThreadContext context, int beg, long len, Block block)
long fillLen (long beg, IRubyObject arg)
boolean flatten (ThreadContext context, int level, RubyArray result)
IRubyObject initializeCommon (ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
IRubyObject inspectAry (ThreadContext context)
IRubyObject inspectJoin (ThreadContext context, RubyArray tmp, IRubyObject sep)
IRubyObject internalRotate (ThreadContext context, int cnt)
IRubyObject internalRotateBang (ThreadContext context, int cnt)
boolean[] join0 (ThreadContext context, ByteList sep, int max, ByteList result)
void join1 (final ThreadContext context, IRubyObject obj, final ByteList sep, int i, final ByteList result)
RubyHash makeHash ()
RubyHash makeHash (RubyHash hash)
RubyHash makeHash (RubyArray ary2)
RubyHash makeHash (ThreadContext context, RubyArray ary2, Block block)
RubyHash makeHash (ThreadContext context, Block block)
RubyHash makeHash (ThreadContext context, RubyHash hash, Block block)
RubyArray makeShared (int beg, int len, RubyClass klass)
RubyArray makeShared (int beg, int len, RubyArray sharedArray)
RubyArray makeShared ()
RubyArray makeSharedFirst (ThreadContext context, IRubyObject num, boolean last, RubyClass klass)
final void modify ()
final void modifyCheck ()
IRubyObject permutationCommon (ThreadContext context, int r, Block block)
void permute (ThreadContext context, int n, int r, int[]p, int index, boolean[]used, RubyArray values, Block block)
void realloc (int newLength, int valuesLength)
 RubyArray (Ruby runtime, RubyClass klass, int length)
 RubyArray (Ruby runtime, boolean objectSpace)
 RubyArray (Ruby runtime, RubyClass klass, IRubyObject[]vals, boolean objectspace)
 RubyArray (Ruby runtime, RubyClass klass, IRubyObject[] vals)
 RubyArray (Ruby runtime, IRubyObject[] vals, int begin, int length)
 RubyArray (Ruby runtime, RubyClass klass, boolean objectSpace)
 RubyArray (Ruby runtime, int length, boolean objectspace)
 RubyArray (Ruby runtime, RubyClass klass)
 RubyArray (Ruby runtime, IRubyObject[] vals, boolean objectSpace)
 RubyArray (Ruby runtime, IRubyObject[] vals, int begin)
 RubyArray (Ruby runtime, int length)
 RubyArray (Ruby runtime, RubyClass klass, RubyArray original)
 RubyArray (Ruby runtime, IRubyObject[] vals)
RubyArray safeReverse ()
IRubyObject slice_internal (long pos, long len, IRubyObject arg0, IRubyObject arg1, Ruby runtime)
IRubyObject sortInternal (final ThreadContext context, final Block block)
IRubyObject sortInternal (final ThreadContext context, boolean honorOverride)
final void splice (long beg, long len, IRubyObject rpl)
final void spliceOne (long beg, IRubyObject rpl)
void spliceRealloc (int length, int valuesLength)
void storeRealloc (long index, int valuesLength)
final IRubyObject values_at (long olen, IRubyObject[] args)

Static Private Member Functions

static void aryReverse (IRubyObject[] _p1, int p1, IRubyObject[] _p2, int p2)
static RubyArray aryToAry (IRubyObject obj)
static final void checkLength (Ruby runtime, long length)
static int compareFixnums (RubyFixnum o1, RubyFixnum o2)
static int compareOthers (ThreadContext context, IRubyObject o1, IRubyObject o2)
static void fill (IRubyObject[]arr, int from, int to, IRubyObject with)
static int rotateCount (int cnt, int len)

Private Attributes

int begin = 0
volatile boolean isShared = false
int realLength = 0
volatile IRubyObject[] values

Static Private Attributes

static ObjectAllocator ARRAY_ALLOCATOR
static int SORTED_THRESHOLD = 10
static final int TMPLOCK_ARR_F = 1 << 9
static final int TMPLOCK_OR_FROZEN_ARR_F = TMPLOCK_ARR_F | FROZEN_F

Detailed Description

The implementation of the built-in class Array in Ruby.

Concurrency: no synchronization is required among readers, but all users must synchronize externally with writers.

Definition at line 84 of file RubyArray.java.


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

Generated by  Doxygen 1.6.0   Back to index