org.drools.template.model
Class Package

java.lang.Object
  extended by org.drools.template.model.DRLElement
      extended by org.drools.template.model.AttributedDRLElement
          extended by org.drools.template.model.Package
All Implemented Interfaces:
DRLJavaEmitter

public class Package
extends AttributedDRLElement
implements DRLJavaEmitter

This is the top of the parse tree. Represents a package of rules once it has been parsed from the spreadsheet. Also is the launching point for dumping out the DRL.


Constructor Summary
Package(String name)
           
 
Method Summary
 void addDeclaredType(String declaration)
           
 void addFunctions(String listing)
           
 void addImport(Import imp)
           
 void addQueries(String listing)
           
 void addRule(Rule rule)
           
 void addVariable(Global varz)
           
 List<Import> getImports()
           
 String getName()
           
 List<Rule> getRules()
           
 List<Global> getVariables()
           
 void renderDRL(DRLOutput out)
          Each node can add its contribution to the output
 
Methods inherited from class org.drools.template.model.AttributedDRLElement
asStringLiteral, asTimerLiteral, getAttribute, getSalience, setActivationGroup, setAgendaGroup, setAutoFocus, setCalendars, setDuration, setLockOnActive, setNoLoop, setRuleFlowGroup, setSalience, setSalience, setTimer
 
Methods inherited from class org.drools.template.model.DRLElement
setComment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Package

public Package(String name)
Method Detail

addImport

public void addImport(Import imp)

addVariable

public void addVariable(Global varz)

addRule

public void addRule(Rule rule)

addFunctions

public void addFunctions(String listing)

addQueries

public void addQueries(String listing)

addDeclaredType

public void addDeclaredType(String declaration)

getName

public String getName()

getImports

public List<Import> getImports()

getVariables

public List<Global> getVariables()

getRules

public List<Rule> getRules()

renderDRL

public void renderDRL(DRLOutput out)
Description copied from interface: DRLJavaEmitter
Each node can add its contribution to the output

Specified by:
renderDRL in interface DRLJavaEmitter
Overrides:
renderDRL in class AttributedDRLElement


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.