Class Symbol

java.lang.Object
   |
   +----Symbol

abstract class Symbol
extends Object
implements Cloneable
Any class that needs to be in a symbol table is a descendant of Symbol. The only field is a name String for looking up symbols.

Author:
Peter Sagerson, petersag@wpi.edu

Variable Index

 o name

Constructor Index

 o Symbol(String)

Method Index

 o nameOf()
Just returns the name.
 o toString()
Exactly the same as nameOf().

Variables

 o name
 private String name

Constructors

 o Symbol
 public Symbol(String str) throws NameLengthException
Throws: NameLengthException
if str is over 31 characters

Methods

 o nameOf
 public String nameOf()
Just returns the name.

 o toString
 public String toString()
Exactly the same as nameOf().

Overrides:
toString in class Object