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(Rule rule,
String name)
|
Pattern |
findPatternByIndex(int index)
|
Declaration |
getDeclaration(Rule rule,
String identifier)
|
static Map<String,Class<?>> |
getDeclarationClasses(Map<String,Declaration> declarations)
|
Map<String,Class<?>> |
getDeclarationClasses(Rule rule)
|
Map<String,Declaration> |
getDeclarations(Rule rule)
|
Map<String,Declaration> |
getDeclarations(Rule rule,
String consequenceName)
Return all declarations scoped to the current
RuleConditionElement in the build stack |
static InternalReadAccessor |
getReadAcessor(String identifier,
ObjectType objectType)
|
boolean |
isDuplicated(Rule rule,
String name,
String type)
|
void |
setPackage(Package 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(Package pkg)
getDeclaration
public Declaration getDeclaration(Rule rule,
String identifier)
getReadAcessor
public static InternalReadAccessor getReadAcessor(String identifier,
ObjectType objectType)
available
public boolean available(Rule rule,
String name)
isDuplicated
public boolean isDuplicated(Rule rule,
String name,
String type)
getDeclarations
public Map<String,Declaration> getDeclarations(Rule rule)
getDeclarations
public Map<String,Declaration> getDeclarations(Rule rule,
String consequenceName)
- Return all declarations scoped to the current
RuleConditionElement in the build stack
- Returns:
getDeclarationClasses
public Map<String,Class<?>> getDeclarationClasses(Rule rule)
getDeclarationClasses
public static Map<String,Class<?>> getDeclarationClasses(Map<String,Declaration> declarations)
findPatternByIndex
public Pattern findPatternByIndex(int index)
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.