All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Jaja.MutableString

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

public class MutableString
extends Value
This is the class of mutable strings. Immutable strings form a subclass.

See Also:
ImmutableString

Variable Index

 o content

Constructor Index

 o MutableString(int)
 o MutableString(int, char)
 o MutableString(String)
 o MutableString(Value[])

Method Index

 o string_set(int, char)
Modify a Jaja string at a position given by index to hold the new character.
 o toReadableString()
Convert a Value into a computer-readable Java String.
 o toString()
Convert a Value into a human-readable Java String.

Variables

 o content
 protected StringBuffer content

Constructors

 o MutableString
 public MutableString(String s)
 o MutableString
 public MutableString(int size)
 o MutableString
 public MutableString(int size,
                      char c)
 o MutableString
 public MutableString(Value arguments[])

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. Return the character that is overwritten.

 o toString
 public String toString()
Convert a Value into a human-readable Java String.

Overrides:
toString in class Value
 o toReadableString
 public String toReadableString()
Convert a Value into a computer-readable Java String.

Overrides:
toReadableString in class Value

All Packages  Class Hierarchy  This Package  Previous  Next  Index