rule
Class Condition

java.lang.Object
  |
  +--rule.Condition

public class Condition
extends java.lang.Object

The Condition class implements the conditional test within a clause.


Field Summary
(package private)  int index
           
(package private)  java.lang.String symbol
           
 
Constructor Summary
Condition(java.lang.String symbol)
          Creates a Condition with the given conditional test.
 
Method Summary
 java.lang.String toString()
          Converts the Condition to a format that can be displayed.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

index

int index

symbol

java.lang.String symbol
Constructor Detail

Condition

public Condition(java.lang.String symbol)
Creates a Condition with the given conditional test.
Parameters:
symbol - the String that represents the conditional test (=, <, >, or !=)
Method Detail

toString

public java.lang.String toString()
Converts the Condition to a format that can be displayed.
Returns:
the Condition in string format
Overrides:
toString in class java.lang.Object