org.apache.hivemind.conditional
Class ClassNameEvaluator

java.lang.Object
  extended by org.apache.hivemind.conditional.ClassNameEvaluator
All Implemented Interfaces:
Evaluator

public class ClassNameEvaluator
extends java.lang.Object
implements Evaluator

Evaluator for a fully qualified class name.

Since:
1.1
Author:
Howard M. Lewis Ship

Constructor Summary
ClassNameEvaluator(java.lang.String className)
           
 
Method Summary
 boolean evaluate(EvaluationContext context, Node node)
          Invoked by the Node to evaluate its own value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassNameEvaluator

public ClassNameEvaluator(java.lang.String className)
Method Detail

evaluate

public boolean evaluate(EvaluationContext context,
                        Node node)
Description copied from interface: Evaluator
Invoked by the Node to evaluate its own value. Typical implementations will extract the Node's left and right properties and combine or otherwise evaluate them. Terminal nodes in the tree will have evaluators that don't do that but generate a return value internally.

Specified by:
evaluate in interface Evaluator