org.drools.base.mvel
Class MVELEvalExpression

java.lang.Object
  extended by org.drools.base.mvel.MVELEvalExpression
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, MVELCompileable, EvalExpression, Invoker, RuleComponent

public class MVELEvalExpression
extends Object
implements EvalExpression, MVELCompileable, Externalizable

See Also:
Serialized Form

Constructor Summary
MVELEvalExpression()
           
MVELEvalExpression(MVELCompilationUnit unit, String id)
           
 
Method Summary
 MVELEvalExpression clone()
           
 void compile(MVELDialectRuntimeData runtimeData)
           
 Object createContext()
           
 boolean equals(Object obj)
           
 boolean evaluate(Tuple tuple, Declaration[] requiredDeclarations, WorkingMemory workingMemory, Object context)
           
 int hashCode()
           
 void readExternal(ObjectInput in)
           
 void replaceDeclaration(Declaration declaration, Declaration resolved)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MVELEvalExpression

public MVELEvalExpression()

MVELEvalExpression

public MVELEvalExpression(MVELCompilationUnit unit,
                          String id)
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

compile

public void compile(MVELDialectRuntimeData runtimeData)
Specified by:
compile in interface MVELCompileable

createContext

public Object createContext()
Specified by:
createContext in interface EvalExpression

evaluate

public boolean evaluate(Tuple tuple,
                        Declaration[] requiredDeclarations,
                        WorkingMemory workingMemory,
                        Object context)
                 throws Exception
Specified by:
evaluate in interface EvalExpression
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object

replaceDeclaration

public void replaceDeclaration(Declaration declaration,
                               Declaration resolved)
Specified by:
replaceDeclaration in interface EvalExpression

clone

public MVELEvalExpression clone()
Specified by:
clone in interface EvalExpression
Overrides:
clone in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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