public class MVELAccumulatorFunctionExecutor extends Object implements MVELCompileable, Externalizable, org.drools.core.spi.MvelAccumulator
| Constructor and Description |
|---|
MVELAccumulatorFunctionExecutor() |
MVELAccumulatorFunctionExecutor(MVELCompilationUnit unit,
org.kie.api.runtime.rule.AccumulateFunction function) |
| 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 leftTuple,
org.drools.core.rule.Declaration[] declarations,
org.drools.core.WorkingMemory workingMemory) |
Object |
init(Object workingMemoryContext,
Object context,
org.drools.core.spi.Tuple leftTuple,
org.drools.core.rule.Declaration[] declarations,
org.drools.core.WorkingMemory workingMemory) |
void |
readExternal(ObjectInput in) |
void |
replaceDeclaration(org.drools.core.rule.Declaration declaration,
org.drools.core.rule.Declaration resolved) |
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 MVELAccumulatorFunctionExecutor()
public MVELAccumulatorFunctionExecutor(MVELCompilationUnit unit, org.kie.api.runtime.rule.AccumulateFunction function)
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 leftTuple, 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 leftTuple, 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.MvelAccumulatorpublic void replaceDeclaration(org.drools.core.rule.Declaration declaration,
org.drools.core.rule.Declaration resolved)
replaceDeclaration in interface org.drools.core.spi.MvelAccumulatorCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.