Package org.drools.drl.ast.dsl
Interface ConditionalBranchDescrBuilder<P extends DescrBuilder<?,?>>
- All Superinterfaces:
DescrBuilder<P,ConditionalBranchDescr>
- All Known Implementing Classes:
ConditionalBranchDescrBuilderImpl
public interface ConditionalBranchDescrBuilder<P extends DescrBuilder<?,?>>
extends DescrBuilder<P,ConditionalBranchDescr>
-
Method Summary
Modifier and TypeMethodDescriptionDefines the condition for this conditional branchDefines a Consequence activated when the condition is evaluated to trueDefines a else branch used when the condition is evaluated to falseMethods inherited from interface org.drools.drl.ast.dsl.DescrBuilder
end, endCharacter, endLocation, getDescr, getParent, startCharacter, startLocation
-
Method Details
-
condition
EvalDescrBuilder<ConditionalBranchDescrBuilder<P>> condition()Defines the condition for this conditional branch- Returns:
- a descriptor builder for the EVAL CE
-
consequence
NamedConsequenceDescrBuilder<ConditionalBranchDescrBuilder<P>> consequence()Defines a Consequence activated when the condition is evaluated to true- Returns:
- a descriptor builder for the Named Consequence CE
-
otherwise
ConditionalBranchDescrBuilder<P> otherwise()Defines a else branch used when the condition is evaluated to false- Returns:
- a descriptor builder for the else Conditional Branch CE
-