org.drools.core.spi
Class DeclarationScopeResolver
java.lang.Object
org.drools.core.spi.DeclarationScopeResolver
public class DeclarationScopeResolver
- extends Object
A class capable of resolving a declaration in the current build context
|
Method Summary |
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)
|
void |
setPackage(InternalKnowledgePackage pkg)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeclarationScopeResolver
public DeclarationScopeResolver(Map<String,Class<?>> maps)
DeclarationScopeResolver
public DeclarationScopeResolver(Map<String,Class<?>> map,
Stack<RuleConditionElement> buildStack)
setPackage
public void setPackage(InternalKnowledgePackage pkg)
getDeclaration
public Declaration getDeclaration(RuleImpl rule,
String identifier)
getReadAcessor
public static InternalReadAccessor getReadAcessor(String identifier,
ObjectType objectType)
available
public boolean available(RuleImpl rule,
String name)
isDuplicated
public boolean isDuplicated(RuleImpl rule,
String name,
String type)
getDeclarations
public Map<String,Declaration> getDeclarations(RuleImpl rule)
getDeclarations
public Map<String,Declaration> getDeclarations(RuleImpl rule,
String consequenceName)
- Return all declarations scoped to the current
RuleConditionElement in the build stack
- Returns:
getDeclarationClasses
public Map<String,Class<?>> getDeclarationClasses(RuleImpl rule)
getDeclarationClasses
public static Map<String,Class<?>> getDeclarationClasses(Map<String,Declaration> declarations)
findPatternByIndex
public Pattern findPatternByIndex(int index)
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.