Class Tree


  • public class Tree
    extends java.lang.Object
    This example illustrates two 'generators' that walk a tree, one in pre-order and another in post-order. A generator is an iterator that generates a value (in this case the nodes of the tree) each time its execute() method 'yields' a value. Also, @see kilim.examples.Fib
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) Tree _left  
      (package private) Tree _right  
      java.lang.String _val  
    • Constructor Summary

      Constructors 
      Constructor Description
      Tree​(java.lang.String s)  
      Tree​(java.lang.String s, Tree l, Tree r)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _val

        public java.lang.String _val
      • _right

        Tree _right
    • Constructor Detail

      • Tree

        Tree​(java.lang.String s)
      • Tree

        Tree​(java.lang.String s,
             Tree l,
             Tree r)
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)