Class ObjectVisitor

  • Direct Known Subclasses:
    ObjectDumper

    public abstract class ObjectVisitor
    extends Object
    This is an abstract class used to visit structured objects. It contains a basic interface that is intended to be overridden by subclasses. As an extension to this class, the visit.hpp file contains various versions of the visit method that maps visitation of various types into invocations of the basic interface defined by this class.
    Author:
    Simon Thoresen Hult
    • Constructor Detail

      • ObjectVisitor

        public ObjectVisitor()
    • Method Detail

      • openStruct

        public abstract void openStruct​(String name,
                                        String type)
        Open a (sub-)structure
        Parameters:
        name - name of structure
        type - type of structure
      • closeStruct

        public abstract void closeStruct()
        Close a (sub-)structure
      • visit

        public abstract void visit​(String name,
                                   Object obj)
        Visits some object.
        Parameters:
        name - variable name
        obj - object to visit