org.millscript.millscript.datatypes
Class Atom

java.lang.Object
  extended by org.millscript.millscript.datatypes.Atom

public final class Atom
extends java.lang.Object

This class represents MillScripts Atom type, the equivalent of an interned String in Java.


Method Summary
static Atom make(java.lang.String symbol)
          Returns the unique atom for the specified symbol.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

make

public static Atom make(java.lang.String symbol)
Returns the unique atom for the specified symbol. If an atom for the specified symbol already exists, it will be returned, otherwise a new atom will be created.

Parameters:
symbol - the symbol we want an atom for
Returns:
an Atom for the specified symbol

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.