Package org.drools.compiler.lang.api
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EvalDescrBuilder<ConditionalBranchDescrBuilder<P>>
condition()
Defines the condition for this conditional branchNamedConsequenceDescrBuilder<ConditionalBranchDescrBuilder<P>>
consequence()
Defines a Consequence activated when the condition is evaluated to trueConditionalBranchDescrBuilder<P>
otherwise()
Defines a else branch used when the condition is evaluated to false-
Methods inherited from interface org.drools.compiler.lang.api.DescrBuilder
end, endCharacter, endLocation, getDescr, startCharacter, startLocation
-
-
-
-
Method Detail
-
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
-
-