Interface ModelInstanceTraverser.Visitor

  • All Known Subinterfaces:
    ModelInstanceTraverser.FullVisitor
    Enclosing class:
    ModelInstanceTraverser
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface ModelInstanceTraverser.Visitor
    Simple visitor that is only fired at start. Useful for e.g. just enumerating the types used.
    • Method Detail

      • startInstance

        void startInstance​(java.lang.Object o,
                           VodmlTypeInfo v,
                           boolean firstVisit)
        perform an action at the start of an object instance.
        Parameters:
        o - the object.
        v - the vodml model information for the object.
        firstVisit - if true this is the first visit to this particular instance.