Class RuleBuildContext

java.lang.Object
org.drools.compiler.rule.builder.PackageBuildContext
org.drools.compiler.rule.builder.RuleBuildContext

public class RuleBuildContext extends PackageBuildContext
A context for the current build
  • Constructor Details

  • Method Details

    • getRule

      public RuleImpl getRule()
      Returns the current Rule being built
    • getRuleDescr

      public RuleDescr getRuleDescr()
      Returns the current RuleDescriptor
    • getDeclarationResolver

      public DeclarationScopeResolver getDeclarationResolver()
      Returns the available declarationResolver instance
    • setDeclarationResolver

      public void setDeclarationResolver(DeclarationScopeResolver declarationResolver)
      Sets the available declarationResolver instance
    • getNextPatternId

      public int getNextPatternId()
    • needsStreamMode

      public boolean needsStreamMode()
    • setNeedStreamMode

      public void setNeedStreamMode()
    • setPrefixPattern

      public void setPrefixPattern(Pattern prefixPattern)
    • getPrefixPattern

      public Pattern getPrefixPattern()
    • isInXpath

      public boolean isInXpath()
    • setInXpath

      public void setInXpath(boolean inXpath)
    • initRule

      public void initRule()
    • resolveVarType

      public Type resolveVarType(String identifier)
      Overrides:
      resolveVarType in class PackageBuildContext
    • getEntryPointId

      public Optional<EntryPointId> getEntryPointId(String name)
    • getEntryPointId

      public Optional<EntryPointId> getEntryPointId(RuleUnitDescription ruDescr, String name)
    • increaseXpathChuckNr

      public void increaseXpathChuckNr()
    • resetXpathChuckNr

      public void resetXpathChuckNr()
    • getXpathChuckNr

      public int getXpathChuckNr()
    • setXpathChuckNr

      public void setXpathChuckNr(int chunkNbr)
    • setXpathOffsetadjustment

      public void setXpathOffsetadjustment(int xpathOffsetadjustment)
    • getXpathOffsetadjustment

      public int getXpathOffsetadjustment()
    • descrToRule

      public static RuleImpl descrToRule(RuleDescr ruleDescr)