Class ConditionNode
java.lang.Object
software.amazon.smithy.rulesengine.logic.cfg.CfgNode
software.amazon.smithy.rulesengine.logic.cfg.ConditionNode
A CFG node that evaluates a condition and branches based on the result.
-
Constructor Summary
ConstructorsConstructorDescriptionConditionNode
(ConditionReference condition, CfgNode trueBranch, CfgNode falseBranch) Creates a new condition node. -
Method Summary
-
Constructor Details
-
ConditionNode
Creates a new condition node.- Parameters:
condition
- condition reference (can be negated)trueBranch
- node to evaluate if the condition is truefalseBranch
- node to evaluate if the condition is false
-
-
Method Details
-
getCondition
Returns the condition reference for this node.- Returns:
- the condition reference
-
getTrueBranch
Returns the node to evaluate if the condition is true.- Returns:
- the true branch node
-
getFalseBranch
Returns the node to evaluate if the condition is false.- Returns:
- the false branch node
-
equals
-
hashCode
public int hashCode() -
toString
-