Squeak Class Documentation category index | class index  
 
SourceFileArray
  category: System-Files
  superclass: SequenceableCollection
  subclasses: StandardSourceFileArray

This class is an abstract superclass for source code access mechanisms. It defines the messages that need to be understood by those subclasses that store and retrieve source chunks on files, over the network or in databases.
The first concrete subclass, StandardSourceFileArray, supports access to the traditional sources and changes files. Other subclasses might implement multiple source files for different applications, or access to a network source server.

instance methods
  accessing
  at:
at:put:
collect:
size

  sourcePointer conversion
  fileIndexFromSourcePointer:
filePositionFromSourcePointer:
sourcePointerFromFileIndex:andPosition:

class methods
  no messages
 

instance methods
  accessing top  
 

at:

Primitive. Assumes receiver is indexable. Answer the value of an
indexable element in the receiver. Fail if the argument index is not an
Integer or is out of bounds. Essential. See Object documentation
whatIsAPrimitive.


 

at:put:

Primitive. Assumes receiver is indexable. Store the argument value in
the indexable element of the receiver indicated by index. Fail if the
index is not an Integer or is out of bounds. Or fail if the value is not of
the right type for this kind of collection. Answer the value that was
stored. Essential. See Object documentation whatIsAPrimitive.


 

collect:

Evaluate aBlock with each of the receiver's elements as the argument.
Collect the resulting values into a collection like the receiver. Answer
the new collection.


 

size

Answer how many elements the receiver contains.


  sourcePointer conversion top  
 

fileIndexFromSourcePointer:

Return the index of a source file corresponding to the given source pointer.


 

filePositionFromSourcePointer:

Return the position within a source file for the given source pointer.


 

sourcePointerFromFileIndex:andPosition:

Return a sourcePointer encoding the given file index and position


class methods
  no messages top