Class Util.FoundOne

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    Util

    public static class Util.FoundOne
    extends ControlFlowException
    Exception used to interrupt a tree walk of any kind.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object node  
      static Util.FoundOne NULL
      Singleton instance.
    • Constructor Summary

      Constructors 
      Constructor Description
      FoundOne​(java.lang.Object node)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getNode()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

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

      • node

        private final java.lang.Object node
      • NULL

        public static final Util.FoundOne NULL
        Singleton instance. Can be used if you don't care about node.
    • Constructor Detail

      • FoundOne

        public FoundOne​(java.lang.Object node)
    • Method Detail

      • getNode

        public java.lang.Object getNode()