Class Variable

java.lang.Object
  |
  +--Variable
All Implemented Interfaces:
FILisable, java.io.Serializable

public class Variable
extends java.lang.Object
implements java.io.Serializable, FILisable

The class `Variable' represents an occurrence of a variable in a case (a variable being an identifier that gets bound to a value when the case is matched against a new situation).

See Also:
Serialized Form

Constructor Summary
Variable(java.lang.String name)
          Constructs an instance of Variable.
 
Method Summary
 boolean equals(java.lang.Object anObject)
          Returns true just in case the given object is a Variable whose name is string-equal to this one.
 java.lang.String FILise(boolean HTML)
          Returns a string representing this variable in FIL.
 java.lang.String toString()
          Returns the string representation of this variable, without the `?' prefix.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Variable

public Variable(java.lang.String name)
Constructs an instance of Variable.
Parameters:
name - The name of the variable (without the `?' prefix).
Method Detail

equals

public boolean equals(java.lang.Object anObject)
Returns true just in case the given object is a Variable whose name is string-equal to this one.
Overrides:
equals in class java.lang.Object
Parameters:
anObject - The Object to be compared.
Returns:
True just in case the given object is an Variable whose name is string-equal to this one.

toString

public java.lang.String toString()
Returns the string representation of this variable, without the `?' prefix.
Overrides:
toString in class java.lang.Object
Parameters:
anObject - The string representation of this enumeration symbol.

FILise

public java.lang.String FILise(boolean HTML)
Returns a string representing this variable in FIL.
Specified by:
FILise in interface FILisable
Parameters:
HTML - If true, the FIL will be augmented with HTML tags.
Returns:
A string representing the variable in FIL.