Package org.drools.base.rule.accessor
Class DeclarationScopeResolver
java.lang.Object
org.drools.base.rule.accessor.DeclarationScopeResolver
A class capable of resolving a declaration in the current build context
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeclarationScopeResolver(Map<String, Type> globalMap, Deque<RuleConditionElement> buildList) DeclarationScopeResolver(Map<String, Type> globalMap, InternalKnowledgePackage pkg) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfindPatternById(int id) getDeclaration(String identifier) getDeclarationClasses(Map<String, Declaration> declarations) getDeclarations(RuleImpl rule) getDeclarations(RuleImpl rule, String consequenceName) Return all declarations scoped to the current RuleConditionElement in the build stackbooleanhasDataSource(String name) booleanisDuplicated(RuleImpl rule, String name, String type) normalizeValueForUnit(String value) voidpushOnBuildStack(RuleConditionElement element) resolveVarType(String identifier) void
-
Constructor Details
-
DeclarationScopeResolver
protected DeclarationScopeResolver() -
DeclarationScopeResolver
-
DeclarationScopeResolver
-
-
Method Details
-
setRule
-
peekBuildStack
-
popBuildStack
-
pushOnBuildStack
-
getDeclaration
-
resolveVarType
-
normalizeValueForUnit
-
hasDataSource
-
available
-
isDuplicated
-
getDeclarations
-
getDeclarations
Return all declarations scoped to the current RuleConditionElement in the build stack -
getDeclarationClasses
-
getDeclarationClasses
-
findPatternById
-