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) |
Object |
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) |
Object |
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 Object createContext()
createContext in interface org.drools.core.spi.Accumulatorpublic Object init(Object workingMemoryContext, Object context, org.drools.core.spi.Tuple tuple, org.drools.core.rule.Declaration[] declarations, org.drools.core.WorkingMemory workingMemory)
init in interface org.drools.core.spi.Accumulatorpublic 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)
accumulate in interface org.drools.core.spi.Accumulatorpublic 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)
tryReverse in interface org.drools.core.spi.Accumulatorpublic Object getResult(Object workingMemoryContext, Object context, org.drools.core.spi.Tuple tuple, org.drools.core.rule.Declaration[] declarations, org.drools.core.WorkingMemory workingMemory)
getResult in interface org.drools.core.spi.Accumulatorpublic 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.