org.drools.base.evaluators
Class EvaluatorCache

java.lang.Object
  extended by org.drools.base.evaluators.EvaluatorCache
All Implemented Interfaces:
Externalizable, Serializable

public class EvaluatorCache
extends Object
implements Externalizable

A simple helper class to store Evaluators for a given set of value types and operators

See Also:
Serialized Form

Constructor Summary
EvaluatorCache()
           
 
Method Summary
 void addEvaluator(ValueType type, Operator operator, Evaluator evaluator)
           
 Evaluator getEvaluator(ValueType type, Operator operator)
           
 void readExternal(ObjectInput in)
           
 boolean supportsType(ValueType type)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvaluatorCache

public EvaluatorCache()
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

addEvaluator

public void addEvaluator(ValueType type,
                         Operator operator,
                         Evaluator evaluator)

getEvaluator

public Evaluator getEvaluator(ValueType type,
                              Operator operator)

supportsType

public boolean supportsType(ValueType type)


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.