Class EditorVisitor

  • Direct Known Subclasses:
    EditorHierarchyPrinter

    public class EditorVisitor
    extends java.lang.Object
    A visitor for examining an Editor hierarchy.
    • Constructor Summary

      Constructors 
      Constructor Description
      EditorVisitor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> void endVisit​(EditorContext<T> ctx)
      Exit an Editor.
      <T> boolean visit​(EditorContext<T> ctx)
      Receive an Editor.
      • Methods inherited from class java.lang.Object

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

      • EditorVisitor

        public EditorVisitor()
    • Method Detail

      • endVisit

        public <T> void endVisit​(EditorContext<T> ctx)
        Exit an Editor. The default implementation is a no-op.
        Parameters:
        ctx - contextual data about the current Editor
      • visit

        public <T> boolean visit​(EditorContext<T> ctx)
        Receive an Editor. The default implementation always returns true.
        Parameters:
        ctx - contextual data about the current Editor
        Returns:
        true if the visitor should visit any sub-editors of the current editor.