All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Jaja.ImmutableString

java.lang.Object
   |
   +----Jaja.Jaja
           |
           +----Jaja.Value
                   |
                   +----Jaja.MutableString
                           |
                           +----Jaja.ImmutableString

public class ImmutableString
extends MutableString
This is the class of immutable strings. Scheme says that a string that appears quoted in a program (ie surrounded with double quotes) is immutable. This class refines MutableString and redefines string_set to forbid modifications.


Constructor Index

 o ImmutableString(String)

Method Index

 o string_set(int, char)
Modify a Jaja string at a position given by index to hold the new character.

Constructors

 o ImmutableString
 public ImmutableString(String s)

Methods

 o string_set
 public Value string_set(int index,
                         char newChar)
Modify a Jaja string at a position given by index to hold the new character.

Overrides:
string_set in class MutableString

All Packages  Class Hierarchy  This Package  Previous  Next  Index