Squeak Class Documentation category index | class index  
 
Array
  category: Collections-Arrayed
  superclass: ArrayedCollection
  subclasses: WeakArray FlippyArray2 DependentsArray

I present an ArrayedCollection whose elements are objects.

instance methods
  accessing
  atWrap:
atWrap:put:

  comparing
  hashMappedBy:

  converting
  asArray
elementsExchangeIdentityWith:
elementsForwardIdentityTo:
evalStrings

  copying
  copyWithDependent:

  file in/out
  objectForDataStream:

  filter streaming
  byteEncode:
storeOnStream:

  printing
  isLiteral
printOn:
storeOn:

  private
  hasLiteral:
hasLiteralSuchThat:
replaceFrom:to:with:startingAt:

class methods
  brace support
  braceStream:
braceWith:
braceWith:with:
braceWith:with:with:
braceWith:with:with:with:
braceWithNone

  examples
  exampleFor:

  plugin generation
  ccg:emitLoadFor:from:on:
ccg:prolog:expr:index:
ccgDeclareCForVar:

instance methods
  accessing top  
 

atWrap:

Optimized to go through the primitive if possible


 

atWrap:put:

Optimized to go through the primitive if possible


  comparing top  
 

hashMappedBy:

Answer what my hash would be if oops changed according to map.


  converting top  
 

asArray

Answer with the receiver itself.


 

elementsExchangeIdentityWith:

This primitive performs a bulk mutation, causing all pointers to the elements of this array to be replaced by pointers to the corresponding elements of otherArray. At the same time, all pointers to the elements of otherArray are replaced by pointers to the corresponding elements of this array. The identityHashes remain with the pointers rather than with the objects so that objects in hashed structures should still be properly indexed after the mutation.


 

elementsForwardIdentityTo:

This primitive performs a bulk mutation, causing all pointers to the elements of this array to be replaced by pointers to the corresponding elements of otherArray. The identityHashes remain with the pointers rather than with the objects so that the objects in this array should still be properly indexed in any existing hashed structures after the mutation.


 

evalStrings

Allows you to construct literal arrays.
#(true false nil '5@6' 'Set new' '''text string''') evalStrings
gives an array with true, false, nil, a Point, a Set, and a String
instead of just a bunch of Symbols


  copying top  
 

copyWithDependent:

Answer a new collection with newElement added (as last
element if sequenceable).


  file in/out top  
 

objectForDataStream:

I am about to be written on an object file. If I am one of two shared global arrays, write a proxy instead.


  filter streaming top  
 

byteEncode:


 

storeOnStream:


  printing top  
 

isLiteral

Answer whether the receiver has a literal text form recognized by the
compiler.


 

printOn:

Append a sequence of characters that identify the receiver to aStream.


 

storeOn:

Use the literal form if possible.


  private top  
 

hasLiteral:

Answer true if literal is identical to any literal in this array, even
if imbedded in further array structure. This method is only intended
for private use by CompiledMethod hasLiteralSymbol:


 

hasLiteralSuchThat:

Answer true if litBlock returns true for any literal in this array, even if imbedded in further array structure. This method is only intended for private use by CompiledMethod hasLiteralSuchThat:


 

replaceFrom:to:with:startingAt:

Primitive. This destructively replaces elements from start to stop in the receiver starting at index, repStart, in the collection, replacement. Answer the receiver. Range checks are performed in the primitive only. Optional. See Object documentation whatIsAPrimitive.


class methods
  brace support top  
 

braceStream:

This method is used in compilation of brace constructs.
It MUST NOT be deleted or altered.


 

braceWith:

This method is used in compilation of brace constructs.
It MUST NOT be deleted or altered.


 

braceWith:with:

This method is used in compilation of brace constructs.
It MUST NOT be deleted or altered.


 

braceWith:with:with:

This method is used in compilation of brace constructs.
It MUST NOT be deleted or altered.


 

braceWith:with:with:with:

This method is used in compilation of brace constructs.
It MUST NOT be deleted or altered.


 

braceWithNone

This method is used in compilation of brace constructs.
It MUST NOT be deleted or altered.


  examples top  
 

exampleFor:

Provide a MethodCall with a valid example of aSelector, ready to run. If 'all', provide all tests we know about for SUnit tests. When 'all', each will be a Verifier, with an expected answer. Returns a list of MethodCalls, Verifiers, or VerifierOfPropertys.


  plugin generation top  
 

ccg:emitLoadFor:from:on:


 

ccg:prolog:expr:index:


 

ccgDeclareCForVar: