java.lang.Object
software.amazon.smithy.rulesengine.logic.cfg.CfgNode
software.amazon.smithy.rulesengine.logic.cfg.ResultNode

public final class ResultNode extends CfgNode
A terminal CFG node that represents a final result, either an endpoint or error.
  • Constructor Details

    • ResultNode

      public ResultNode(Rule result)
  • Method Details

    • terminal

      public static ResultNode terminal()
      Returns a terminal node representing no match.
      Returns:
      the terminal result node
    • getResult

      public Rule getResult()
      Get the underlying result.
      Returns:
      the result value.
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object