Package org.drools.mvel.dataproviders
Class MVELDataProvider
- java.lang.Object
-
- org.drools.mvel.dataproviders.MVELDataProvider
-
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,org.drools.core.spi.DataProvider,MVELCompileable
- Direct Known Subclasses:
ReactiveMVELDataProvider
public class MVELDataProvider extends Object implements org.drools.core.spi.DataProvider, MVELCompileable, Externalizable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MVELDataProvider()MVELDataProvider(MVELCompilationUnit unit, String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IteratorasIterator(Object result)org.drools.core.spi.DataProviderclone()voidcompile(MVELDialectRuntimeData runtimeData)voidcompile(MVELDialectRuntimeData runtimeData, org.drools.core.definitions.rule.impl.RuleImpl rule)ObjectcreateContext()booleanequals(Object obj)protected Objectevaluate(org.drools.core.spi.Tuple tuple, org.drools.core.common.InternalWorkingMemory wm)org.drools.core.rule.Declaration[]getRequiredDeclarations()IteratorgetResults(org.drools.core.spi.Tuple tuple, org.drools.core.common.InternalWorkingMemory wm, org.drools.core.spi.PropagationContext ctx, Object executionContext)inthashCode()booleanisReactive()voidreadExternal(ObjectInput in)voidreplaceDeclaration(org.drools.core.rule.Declaration declaration, org.drools.core.rule.Declaration resolved)voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
MVELDataProvider
public MVELDataProvider()
-
MVELDataProvider
public MVELDataProvider(MVELCompilationUnit unit, String id)
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
compile
public void compile(MVELDialectRuntimeData runtimeData)
- Specified by:
compilein interfaceMVELCompileable
-
compile
public void compile(MVELDialectRuntimeData runtimeData, org.drools.core.definitions.rule.impl.RuleImpl rule)
- Specified by:
compilein interfaceMVELCompileable
-
getRequiredDeclarations
public org.drools.core.rule.Declaration[] getRequiredDeclarations()
- Specified by:
getRequiredDeclarationsin interfaceorg.drools.core.spi.DataProvider
-
replaceDeclaration
public void replaceDeclaration(org.drools.core.rule.Declaration declaration, org.drools.core.rule.Declaration resolved)- Specified by:
replaceDeclarationin interfaceorg.drools.core.spi.DataProvider
-
createContext
public Object createContext()
- Specified by:
createContextin interfaceorg.drools.core.spi.DataProvider
-
getResults
public Iterator getResults(org.drools.core.spi.Tuple tuple, org.drools.core.common.InternalWorkingMemory wm, org.drools.core.spi.PropagationContext ctx, Object executionContext)
- Specified by:
getResultsin interfaceorg.drools.core.spi.DataProvider
-
evaluate
protected Object evaluate(org.drools.core.spi.Tuple tuple, org.drools.core.common.InternalWorkingMemory wm)
-
clone
public org.drools.core.spi.DataProvider clone()
-
isReactive
public boolean isReactive()
- Specified by:
isReactivein interfaceorg.drools.core.spi.DataProvider
-
-