qat.gui
Class Evaluater

java.lang.Object
  extended byqat.gui.Evaluater

public class Evaluater
extends java.lang.Object

This static class is used to determine whether a given set of keywords satisfies a boolean expression made up of these keywords. Allowed values are '(', ')', '&', '|', '!' and whitespace characters.

Version:
%W %E
Author:
Stephen Kruger

Constructor Summary
Evaluater()
           
 
Method Summary
static boolean evaluateExpression(java.lang.String expression, java.lang.String[] keys)
          returns true if the expression is satisfied by the supplied keys, else returns false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Evaluater

public Evaluater()
Method Detail

evaluateExpression

public static boolean evaluateExpression(java.lang.String expression,
                                         java.lang.String[] keys)
returns true if the expression is satisfied by the supplied keys, else returns false.



See QAT project for licensing details