Package org.drools.template.model
Class Condition
- java.lang.Object
-
- org.drools.template.model.DRLElement
-
- org.drools.template.model.Condition
-
- All Implemented Interfaces:
DRLJavaEmitter
public class Condition extends DRLElement implements DRLJavaEmitter
This class represents a single LHS item (which will be the same as a line in traditional DRL).
-
-
Constructor Summary
Constructors Constructor Description Condition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSnippet()
void
renderDRL(DRLOutput out)
Each node can add its contribution to the outputvoid
setSnippet(String snippet)
-
Methods inherited from class org.drools.template.model.DRLElement
setComment
-
-
-
-
Field Detail
-
_snippet
public String _snippet
-
-
Method Detail
-
setSnippet
public void setSnippet(String snippet)
- Parameters:
snippet
- The snippet to set.
-
getSnippet
public String getSnippet()
-
renderDRL
public void renderDRL(DRLOutput out)
Description copied from interface:DRLJavaEmitter
Each node can add its contribution to the output- Specified by:
renderDRL
in interfaceDRLJavaEmitter
-
-