public class DeclarationScopeResolver extends Object
Constructor and Description |
---|
DeclarationScopeResolver(Map<String,Class<?>> map) |
DeclarationScopeResolver(Map<String,Class<?>> map,
InternalKnowledgePackage pkg) |
DeclarationScopeResolver(Map<String,Class<?>> map,
Stack<RuleConditionElement> buildStack) |
DeclarationScopeResolver(Map<String,Class<?>> map,
Stack<RuleConditionElement> buildStack,
InternalKnowledgePackage pkg) |
Modifier and Type | Method and Description |
---|---|
boolean |
available(RuleImpl rule,
String name) |
Pattern |
findPatternByIndex(int index) |
Declaration |
getDeclaration(RuleImpl rule,
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
|
static InternalReadAccessor |
getReadAcessor(String identifier,
ObjectType objectType) |
boolean |
isDuplicated(RuleImpl rule,
String name,
String type) |
RuleConditionElement |
peekBuildStack() |
RuleConditionElement |
popBuildStack() |
void |
pushOnBuildStack(RuleConditionElement element) |
public DeclarationScopeResolver(Map<String,Class<?>> map, Stack<RuleConditionElement> buildStack)
public DeclarationScopeResolver(Map<String,Class<?>> map, InternalKnowledgePackage pkg)
public DeclarationScopeResolver(Map<String,Class<?>> map, Stack<RuleConditionElement> buildStack, InternalKnowledgePackage pkg)
public RuleConditionElement peekBuildStack()
public RuleConditionElement popBuildStack()
public void pushOnBuildStack(RuleConditionElement element)
public Declaration getDeclaration(RuleImpl rule, String identifier)
public static InternalReadAccessor getReadAcessor(String identifier, ObjectType objectType)
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–2016 JBoss by Red Hat. All rights reserved.