gnu.expr
Class Symbols

java.lang.Object
  extended by gnu.expr.Symbols

public class Symbols
extends java.lang.Object

Utility class containing various routines to manipulate Scheme symbols. Note Scheme symbols are represented using java.lang.String objects, and there are no Symbol objects.


Method Summary
static java.lang.String generate()
          Generate a new un-interned Symbol with a unique name.
static java.lang.String gentemp()
          Generate a new (interned) symbol with a unique name.
static java.lang.String intern(java.lang.String name)
           
static java.lang.String make(java.lang.String name)
          Create or find a Symbol with a given name.
static void print(java.lang.String name, java.io.PrintWriter ps)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generate

public static final java.lang.String generate()
Generate a new un-interned Symbol with a unique name.

Returns:
the new Symbol

gentemp

public static final java.lang.String gentemp()
Generate a new (interned) symbol with a unique name.

Returns:
the new symbol

make

public static java.lang.String make(java.lang.String name)
Create or find a Symbol with a given name.

Parameters:
name - the print-name of the desired Symbol
Returns:
a Symbol with the given name, newly created iff none such exist

intern

public static final java.lang.String intern(java.lang.String name)

print

public static void print(java.lang.String name,
                         java.io.PrintWriter ps)