站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

BuildUtils (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.reteoo.builder
Class BuildUtils

java.lang.Object
  extended by org.drools.reteoo.builder.BuildUtils

public class BuildUtils
extends Object

Utility functions for reteoo build

Author:
etirelli

Constructor Summary
BuildUtils()
           
 
Method Summary
 void addBuilder(Class target, ReteooComponentBuilder builder)
          Adds the given builder for the given target to the builders map
 BaseNode attachNode(BuildContext context, BaseNode candidate)
          Attaches a node into the network.
 void checkUnboundDeclarations(BuildContext context, Declaration[] declarations)
          Make sure the required declarations are previously bound
 BetaConstraints createBetaNodeConstraint(BuildContext context, List list)
          Creates and returns a BetaConstraints object for the given list of constraints
 ReteooComponentBuilder getBuilderFor(RuleConditionElement target)
          Returns a builder for the given target from the builders map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildUtils

public BuildUtils()
Method Detail

addBuilder

public void addBuilder(Class target,
                       ReteooComponentBuilder builder)
Adds the given builder for the given target to the builders map

Parameters:
target -
builder -

getBuilderFor

public ReteooComponentBuilder getBuilderFor(RuleConditionElement target)
Returns a builder for the given target from the builders map

Parameters:
target -
Returns:
returns null if not found

attachNode

public BaseNode attachNode(BuildContext context,
                           BaseNode candidate)
Attaches a node into the network. If a node already exists that could substitute, it is used instead.

Parameters:
context - The current build context
candidate - The node to attach.
Returns:
the actual attached node that may be the one given as parameter or eventualy one that was already in the cache if sharing is enabled

createBetaNodeConstraint

public BetaConstraints createBetaNodeConstraint(BuildContext context,
                                                List list)
Creates and returns a BetaConstraints object for the given list of constraints

Parameters:
context - the current build context
list - the list of constraints
Returns:

checkUnboundDeclarations

public void checkUnboundDeclarations(BuildContext context,
                                     Declaration[] declarations)
                              throws InvalidPatternException
Make sure the required declarations are previously bound

Parameters:
declarations -
Throws:
InvalidPatternException


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.