org.drools.template.model
Class Package
java.lang.Object
org.drools.template.model.DRLElement
org.drools.template.model.AttributedDRLElement
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Package
public Package(String name)
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.