Uses of Class
org.drools.base.rule.Declaration
Packages that use Declaration
Package
Description
Contains the binary representations of rule constructs, like Package (which the compiler produces), Rule, and Conditional Elements.
-
Uses of Declaration in org.drools.base.base
Methods in org.drools.base.base with parameters of type DeclarationModifier and TypeMethodDescriptionbooleanEnabledBoolean.getValue(BaseTuple tuple, Declaration[] declarations, RuleImpl rule, ValueResolver valueResolver) -
Uses of Declaration in org.drools.base.definitions.rule.impl
Methods in org.drools.base.definitions.rule.impl that return DeclarationModifier and TypeMethodDescriptionRuleImpl.findEnabledDeclarations(Map<String, Declaration> decls) RuleImpl.findSalienceDeclarations(Map<String, Declaration> decls) RuleImpl.getDeclaration(String identifier) Retrieve a parameterDeclarationby identifier.QueryImpl.getParameters()Methods in org.drools.base.definitions.rule.impl that return types with arguments of type DeclarationModifier and TypeMethodDescriptionRuleImpl.getDeclarations()Retrieve the set of all root fact object parameterDeclarations.Methods in org.drools.base.definitions.rule.impl with parameters of type DeclarationModifier and TypeMethodDescriptionbooleanRuleImpl.isEffective(BaseTuple tuple, Declaration[] declarations, ValueResolver valueResolver) This returns true is the rule is effective.booleanRuleImpl.isEnabled(BaseTuple tuple, Declaration[] enabledDeclarations, ValueResolver valueResolver) voidQueryImpl.setParameters(Declaration[] parameters) voidQueryImpl.setReturnType(ObjectType objectType, String[] params, String[] args, Declaration[] declarations) Method parameters in org.drools.base.definitions.rule.impl with type arguments of type DeclarationModifier and TypeMethodDescriptionRuleImpl.findEnabledDeclarations(Map<String, Declaration> decls) RuleImpl.findSalienceDeclarations(Map<String, Declaration> decls) -
Uses of Declaration in org.drools.base.reteoo
Methods in org.drools.base.reteoo that return DeclarationModifier and TypeMethodDescriptionBaseTerminalNode.getAllDeclarations()BaseTerminalNode.getRequiredDeclarations()BaseTerminalNode.getSalienceDeclarations()Methods in org.drools.base.reteoo with parameters of type DeclarationModifier and TypeMethodDescriptionintSortDeclarations.compare(Declaration d1, Declaration d2) BaseTuple.get(Declaration declaration) Returns theFactHandlefor the givenDeclaration, which in turn specifcy thePatternthat they depend on.BaseTuple.getObject(Declaration declaration) -
Uses of Declaration in org.drools.base.rule
Fields in org.drools.base.rule declared as DeclarationModifier and TypeFieldDescriptionprotected Declaration[]Accumulate.innerDeclarationCacheprotected Declaration[]Accumulate.requiredDeclarationsprotected Declaration[]EvalCondition.requiredDeclarationsMethods in org.drools.base.rule that return DeclarationModifier and TypeMethodDescriptionPattern.addDeclaration(String identifier) Declaration.clone()Declaration.cloneWithPattern(Pattern pattern) Pattern.getDeclaration()QueryArgument.Declr.getDeclaration()XpathBackReference.getDeclaration(Pattern pattern, String id) protected Declaration[]Accumulate.getInnerDeclarationCache()Accumulate.getRequiredDeclarations()EvalCondition.getRequiredDeclarations()Pattern.getRequiredDeclarations()QueryElement.getRequiredDeclarations()Pattern.getXPathDeclaration()XpathBackReference.MapAdapter.put(String key, Declaration value) Accumulate.resolveDeclaration(String identifier) AsyncReceive.resolveDeclaration(String identifier) AsyncSend.resolveDeclaration(String identifier) Collect.resolveDeclaration(String identifier) ConditionalBranch.resolveDeclaration(String identifier) Not possible to resolve any declaration, so always return null.EntryPointId.resolveDeclaration(String identifier) Not possible to resolve any declaration, so always return null.EvalCondition.resolveDeclaration(String identifier) Forall.resolveDeclaration(String identifier) Forall can only resolve declarations from its base patternFrom.resolveDeclaration(String identifier) GroupElement.resolveDeclaration(String identifier) NamedConsequence.resolveDeclaration(String identifier) Not possible to resolve any declaration, so always return null.Pattern.resolveDeclaration(String identifier) QueryElement.resolveDeclaration(String identifier) RuleConditionElement.resolveDeclaration(String identifier) Resolves the given identifier in the current scope and returns the Declaration object for the declaration.WindowReference.resolveDeclaration(String identifier) Not possible to resolve any declaration, so always return null.Methods in org.drools.base.rule that return types with arguments of type DeclarationModifier and TypeMethodDescriptionXpathBackReference.MapAdapter.entrySet()XpathBackReference.getDeclarationMap()Pattern.getDeclarations()Accumulate.getInnerDeclarations()AsyncReceive.getInnerDeclarations()AsyncSend.getInnerDeclarations()Collect.getInnerDeclarations()ConditionalBranch.getInnerDeclarations()It is not possible to declare any new variables, so always return an Empty MapEntryPointId.getInnerDeclarations()It is not possible to declare any new variables, so always return an Empty MapEvalCondition.getInnerDeclarations()Forall.getInnerDeclarations()Forall inner declarations are only provided by the base patterns since it negates the remaining patternsGroupElement.getInnerDeclarations()GroupElement.getInnerDeclarations(String consequenceName) NamedConsequence.getInnerDeclarations()It is not possible to declare any new variables, so always return an Empty MapPattern.getInnerDeclarations()QueryElement.getInnerDeclarations()RuleConditionElement.getInnerDeclarations()Returns a Map of declarations that are visible inside this conditional elementWindowReference.getInnerDeclarations()It is not possible to declare any new variables, so always return an Empty MapAccumulate.getOuterDeclarations()AsyncReceive.getOuterDeclarations()AsyncSend.getOuterDeclarations()Collect.getOuterDeclarations()ConditionalBranch.getOuterDeclarations()It is not possible to declare and export any variables, so always return an empty mapEntryPointId.getOuterDeclarations()It is not possible to declare and export any variables, so always return an empty mapEvalCondition.getOuterDeclarations()Forall.getOuterDeclarations()Forall does not export any declarationsGroupElement.getOuterDeclarations()GroupElement.getOuterDeclarations(String consequenceName) NamedConsequence.getOuterDeclarations()It is not possible to declare and export any variables, so always return an empty mapPattern.getOuterDeclarations()QueryElement.getOuterDeclarations()RuleConditionElement.getOuterDeclarations()Returns a Map of declarations that are visible outside this conditional element.WindowReference.getOuterDeclarations()It is not possible to declare and export any variables, so always return an empty mapXpathBackReference.MapAdapter.values()Methods in org.drools.base.rule with parameters of type DeclarationModifier and TypeMethodDescriptionvoidPattern.addDeclaration(Declaration decl) EvalConditionFactory.createEvalCondition(Declaration[] requiredDeclarations) EvalConditionFactoryImpl.createEvalCondition(Declaration[] requiredDeclarations) static ObjectQueryArgument.evaluateDeclaration(ValueResolver valueResolver, BaseTuple tuple, Declaration declaration) XpathBackReference.MapAdapter.put(String key, Declaration value) abstract voidAccumulate.replaceAccumulatorDeclaration(Declaration declaration, Declaration resolved) voidMultiAccumulate.replaceAccumulatorDeclaration(Declaration declaration, Declaration resolved) voidSingleAccumulate.replaceAccumulatorDeclaration(Declaration declaration, Declaration resolved) voidAccumulate.replaceDeclaration(Declaration declaration, Declaration resolved) voidEvalCondition.replaceDeclaration(Declaration declaration, Declaration resolved) Method parameters in org.drools.base.rule with type arguments of type DeclarationModifier and TypeMethodDescriptionvoidXpathBackReference.MapAdapter.putAll(Map<? extends String, ? extends Declaration> m) voidEvalCondition.setOuterDeclarations(Map<String, Declaration> outerDeclarations) Constructors in org.drools.base.rule with parameters of type DeclarationModifierConstructorDescriptionAccumulate(RuleConditionElement source, Declaration[] requiredDeclarations) Declr(Declaration declaration) EvalCondition(EvalExpression eval, Declaration[] requiredDeclarations) EvalCondition(Declaration[] requiredDeclarations) MultiAccumulate(RuleConditionElement source, Declaration[] requiredDeclarations, Accumulator[] accumulators, int arraySize) QueryElement(Pattern resultPattern, String queryName, QueryArgument[] arguments, int[] variableIndexes, Declaration[] requiredDeclarations, boolean openQuery, boolean abductive) SingleAccumulate(RuleConditionElement source, Declaration[] requiredDeclarations) SingleAccumulate(RuleConditionElement source, Declaration[] requiredDeclarations, Accumulator accumulator) -
Uses of Declaration in org.drools.base.rule.accessor
Methods in org.drools.base.rule.accessor that return DeclarationModifier and TypeMethodDescriptiondefault Declaration[]Enabled.findDeclarations(Map<String, Declaration> decls) default Declaration[]Salience.findDeclarations(Map<String, Declaration> decls) DeclarationScopeResolver.getDeclaration(String identifier) default Declaration[]Accumulator.getRequiredDeclarations()DataProvider.getRequiredDeclarations()Methods in org.drools.base.rule.accessor that return types with arguments of type DeclarationModifier and TypeMethodDescriptionDeclarationScopeResolver.getDeclarations(RuleImpl rule) DeclarationScopeResolver.getDeclarations(RuleImpl rule, String consequenceName) Return all declarations scoped to the current RuleConditionElement in the build stackMethods in org.drools.base.rule.accessor with parameters of type DeclarationModifier and TypeMethodDescriptionAccumulator.accumulate(Object workingMemoryContext, Object context, BaseTuple leftTuple, FactHandle handle, Declaration[] declarations, Declaration[] innerDeclarations, ValueResolver valueResolver) Executes the accumulate (action) code for the given fact handlebooleanEvalExpression.evaluate(BaseTuple tuple, Declaration[] requiredDeclarations, ValueResolver valueResolver, Object context) ReturnValueExpression.evaluate(FactHandle handle, BaseTuple tuple, Declaration[] previousDeclarations, Declaration[] localDeclarations, ValueResolver valueResolver, Object context) Accumulator.getResult(Object workingMemoryContext, Object context, BaseTuple leftTuple, Declaration[] declarations, ValueResolver valueResolver) Gets the result of the accummulationbooleanEnabled.getValue(BaseTuple tuple, Declaration[] declarations, RuleImpl rule, ValueResolver valueResolver) Accumulator.init(Object workingMemoryContext, Object context, BaseTuple leftTuple, Declaration[] declarations, ValueResolver valueResolver) Executes the initialization block of codedefault voidAccumulator.replaceDeclaration(Declaration declaration, Declaration resolved) voidDataProvider.replaceDeclaration(Declaration declaration, Declaration resolved) voidEvalExpression.replaceDeclaration(Declaration declaration, Declaration resolved) voidReturnValueExpression.replaceDeclaration(Declaration declaration, Declaration resolved) booleanAccumulator.tryReverse(Object workingMemoryContext, Object context, BaseTuple leftTuple, FactHandle handle, Object value, Declaration[] declarations, Declaration[] innerDeclarations, ValueResolver valueResolver) Reverses the accumulate action for the given fact handleMethod parameters in org.drools.base.rule.accessor with type arguments of type DeclarationModifier and TypeMethodDescriptiondefault Declaration[]Enabled.findDeclarations(Map<String, Declaration> decls) default Declaration[]Salience.findDeclarations(Map<String, Declaration> decls) DeclarationScopeResolver.getDeclarationClasses(Map<String, Declaration> declarations) -
Uses of Declaration in org.drools.base.rule.consequence
Methods in org.drools.base.rule.consequence that return DeclarationModifier and TypeMethodDescriptionConsequenceContext.getDeclaration(String identifier) ConsequenceContext.getRequiredDeclarations()Methods in org.drools.base.rule.consequence with parameters of type Declaration -
Uses of Declaration in org.drools.base.rule.constraint
Methods in org.drools.base.rule.constraint that return DeclarationModifier and TypeMethodDescriptionXpathConstraint.getDeclaration()QueryNameConstraint.getLeftIndexExtractor()Constraint.getRequiredDeclarations()Returns all the declarations required by the given constraint implementation.NegConstraint.getRequiredDeclarations()QueryNameConstraint.getRequiredDeclarations()XpathConstraint.getRequiredDeclarations()XpathConstraint.XpathDataProvider.getRequiredDeclarations()XpathConstraint.getXpathStartDeclaration()Methods in org.drools.base.rule.constraint with parameters of type DeclarationModifier and TypeMethodDescriptionvoidConstraint.replaceDeclaration(Declaration oldDecl, Declaration newDecl) When a rule contains multiple logical branches, i.e., makes use of 'OR' CE, it is required to clone patterns and declarations for each logical branch.voidNegConstraint.replaceDeclaration(Declaration oldDecl, Declaration newDecl) voidQueryNameConstraint.replaceDeclaration(Declaration oldDecl, Declaration newDecl) voidXpathConstraint.replaceDeclaration(Declaration oldDecl, Declaration newDecl) voidXpathConstraint.XpathDataProvider.replaceDeclaration(Declaration declaration, Declaration resolved) voidXpathConstraint.setDeclaration(Declaration declaration) voidXpathConstraint.setXpathStartDeclaration(Declaration xpathStartDeclaration) Constructors in org.drools.base.rule.constraint with parameters of type DeclarationModifierConstructorDescriptionXpathDataProvider(org.drools.base.rule.constraint.XpathConstraint.XpathEvaluator xpathEvaluator, Declaration declaration) -
Uses of Declaration in org.drools.base.time.impl
Methods in org.drools.base.time.impl with parameters of type DeclarationModifier and TypeMethodDescriptionTimer.createTrigger(long timestamp, BaseTuple leftTuple, JobHandle jh, String[] calendarNames, Calendars calendars, Declaration[][] declrs, ValueResolver valueResolver)