org.drools.spi
Class DeclarationScopeResolver
java.lang.Object
org.drools.spi.DeclarationScopeResolver
public class DeclarationScopeResolver
- extends Object
A class capable of resolving a declaration in the current build context
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)
available
public boolean available(Rule rule,
String name)
isDuplicated
public boolean isDuplicated(Rule rule,
String name)
getDeclarations
public Map<String,Declaration> getDeclarations(Rule rule)
- 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-2013 JBoss Inc.. All Rights Reserved.