Package 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
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDeclaredType(String declaration) voidaddFunctions(String listing) voidvoidaddQueries(String listing) voidvoidaddVariable(Global varz) getName()getRules()voidEach node can add its contribution to the outputvoidsetDialect(String dialect) voidsetRuleUnit(String ruleUnit) Methods inherited from class org.drools.template.model.AttributedDRLElement
asStringLiteral, asTimerLiteral, getAttribute, getSalience, setActivationGroup, setAgendaGroup, setAutoFocus, setCalendars, setDateEffective, setDateExpires, setDuration, setEnabled, setLockOnActive, setNoLoop, setRuleFlowGroup, setSalience, setSalience, setTimerMethods inherited from class org.drools.template.model.DRLElement
setComment
-
Constructor Details
-
Package
-
-
Method Details
-
addImport
-
addVariable
-
addRule
-
addFunctions
-
addQueries
-
addDeclaredType
-
getName
-
getImports
-
getVariables
-
getRules
-
setRuleUnit
-
setDialect
-
renderDRL
Description copied from interface:DRLJavaEmitterEach node can add its contribution to the output- Specified by:
renderDRLin interfaceDRLJavaEmitter- Overrides:
renderDRLin classAttributedDRLElement
-