Class Root

All Implemented Interfaces:
Sleepable

public final class Root extends Branch
Always-valid root of a TreeScript.
  • Method Details

    • isValid

      public boolean isValid()
      Reports root validity.
      Specified by:
      isValid in class Leaf
      Returns:
      always true
    • getTree

      public TreeScript getTree()
      Returns the owning tree.
      Overrides:
      getTree in class Leaf
      Returns:
      owning tree script
    • addBranches

      public Root addBranches(Leaf... leaves)
      Appends top-level nodes in selection order.
      Parameters:
      leaves - branches or executable leaves to attach
      Returns:
      this root for fluent registration