public class MVELAccumulator extends Object implements MVELCompileable, org.drools.core.spi.MvelAccumulator, Externalizable
| Constructor and Description |
|---|
MVELAccumulator() |
MVELAccumulator(MVELCompilationUnit initUnit,
MVELCompilationUnit actionUnit,
MVELCompilationUnit reverseUnit,
MVELCompilationUnit resultUnit) |
| Modifier and Type | Method and Description |
|---|---|
Object |
accumulate(Object workingMemoryContext,
Object context,
org.drools.core.spi.Tuple tuple,
org.drools.core.common.InternalFactHandle handle,
org.drools.core.rule.Declaration[] declarations,
org.drools.core.rule.Declaration[] innerDeclarations,
org.drools.core.WorkingMemory workingMemory) |
void |
compile(MVELDialectRuntimeData runtimeData) |
void |
compile(MVELDialectRuntimeData runtimeData,
org.drools.core.definitions.rule.impl.RuleImpl rule) |
Serializable |
createContext() |
Object |
createWorkingMemoryContext() |
org.drools.core.rule.Declaration[] |
getRequiredDeclarations() |
Object |
getResult(Object workingMemoryContext,
Object context,
org.drools.core.spi.Tuple tuple,
org.drools.core.rule.Declaration[] declarations,
org.drools.core.WorkingMemory workingMemory) |
void |
init(Object workingMemoryContext,
Object context,
org.drools.core.spi.Tuple tuple,
org.drools.core.rule.Declaration[] declarations,
org.drools.core.WorkingMemory workingMemory) |
void |
readExternal(ObjectInput in) |
boolean |
supportsReverse() |
boolean |
tryReverse(Object workingMemoryContext,
Object context,
org.drools.core.spi.Tuple leftTuple,
org.drools.core.common.InternalFactHandle handle,
Object value,
org.drools.core.rule.Declaration[] declarations,
org.drools.core.rule.Declaration[] innerDeclarations,
org.drools.core.WorkingMemory workingMemory) |
void |
writeExternal(ObjectOutput out) |
public MVELAccumulator()
public MVELAccumulator(MVELCompilationUnit initUnit, MVELCompilationUnit actionUnit, MVELCompilationUnit reverseUnit, MVELCompilationUnit resultUnit)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void compile(MVELDialectRuntimeData runtimeData)
compile in interface MVELCompileablepublic void compile(MVELDialectRuntimeData runtimeData, org.drools.core.definitions.rule.impl.RuleImpl rule)
compile in interface MVELCompileablepublic Serializable createContext()
createContext in interface org.drools.core.spi.Accumulatorpublic void init(Object workingMemoryContext, Object context, org.drools.core.spi.Tuple tuple, org.drools.core.rule.Declaration[] declarations, org.drools.core.WorkingMemory workingMemory) throws Exception
init in interface org.drools.core.spi.AccumulatorExceptionpublic Object accumulate(Object workingMemoryContext, Object context, org.drools.core.spi.Tuple tuple, org.drools.core.common.InternalFactHandle handle, org.drools.core.rule.Declaration[] declarations, org.drools.core.rule.Declaration[] innerDeclarations, org.drools.core.WorkingMemory workingMemory) throws Exception
accumulate in interface org.drools.core.spi.AccumulatorExceptionpublic boolean tryReverse(Object workingMemoryContext, Object context, org.drools.core.spi.Tuple leftTuple, org.drools.core.common.InternalFactHandle handle, Object value, org.drools.core.rule.Declaration[] declarations, org.drools.core.rule.Declaration[] innerDeclarations, org.drools.core.WorkingMemory workingMemory) throws Exception
tryReverse in interface org.drools.core.spi.AccumulatorExceptionpublic Object getResult(Object workingMemoryContext, Object context, org.drools.core.spi.Tuple tuple, org.drools.core.rule.Declaration[] declarations, org.drools.core.WorkingMemory workingMemory) throws Exception
getResult in interface org.drools.core.spi.AccumulatorExceptionpublic boolean supportsReverse()
supportsReverse in interface org.drools.core.spi.Accumulatorpublic Object createWorkingMemoryContext()
createWorkingMemoryContext in interface org.drools.core.spi.Accumulatorpublic org.drools.core.rule.Declaration[] getRequiredDeclarations()
getRequiredDeclarations in interface org.drools.core.spi.MvelAccumulatorCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.