public class DeclarationScopeResolver extends Object
Modifier | Constructor and Description |
---|---|
protected |
DeclarationScopeResolver() |
|
DeclarationScopeResolver(Map<String,Class<?>> globalMap,
InternalKnowledgePackage pkg) |
|
DeclarationScopeResolver(Map<String,Class<?>> globalMap,
Stack<RuleConditionElement> buildStack) |
Modifier and Type | Method and Description |
---|---|
boolean |
available(RuleImpl rule,
String name) |
Pattern |
findPatternByIndex(int index) |
Declaration |
getDeclaration(String identifier) |
static Map<String,Class<?>> |
getDeclarationClasses(Map<String,Declaration> declarations) |
Map<String,Class<?>> |
getDeclarationClasses(RuleImpl rule) |
Map<String,Declaration> |
getDeclarations(RuleImpl rule) |
Map<String,Declaration> |
getDeclarations(RuleImpl rule,
String consequenceName)
Return all declarations scoped to the current
RuleConditionElement in the build stack
|
boolean |
hasDataSource(String name) |
boolean |
isDuplicated(RuleImpl rule,
String name,
String type) |
String |
normalizeValueForUnit(String value) |
RuleConditionElement |
peekBuildStack() |
RuleConditionElement |
popBuildStack() |
void |
pushOnBuildStack(RuleConditionElement element) |
Class<?> |
resolveVarType(String identifier) |
void |
setRule(RuleImpl rule) |
protected DeclarationScopeResolver()
public DeclarationScopeResolver(Map<String,Class<?>> globalMap, Stack<RuleConditionElement> buildStack)
public DeclarationScopeResolver(Map<String,Class<?>> globalMap, InternalKnowledgePackage pkg)
public void setRule(RuleImpl rule)
public RuleConditionElement peekBuildStack()
public RuleConditionElement popBuildStack()
public void pushOnBuildStack(RuleConditionElement element)
public Declaration getDeclaration(String identifier)
public boolean hasDataSource(String name)
public Map<String,Declaration> getDeclarations(RuleImpl rule)
public Map<String,Declaration> getDeclarations(RuleImpl rule, String consequenceName)
public static Map<String,Class<?>> getDeclarationClasses(Map<String,Declaration> declarations)
public Pattern findPatternByIndex(int index)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.