Class ObjectVisitor

  • Direct Known Subclasses:

    public abstract class ObjectVisitor
    extends java.lang.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.
    Simon Thoresen Hult
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract void closeStruct()
      Close a (sub-)structure
      abstract void openStruct​(java.lang.String name, java.lang.String type)
      Open a (sub-)structure
      abstract void visit​(java.lang.String name, java.lang.Object obj)
      Visits some object.
      • Methods inherited from class java.lang.Object

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

      • ObjectVisitor

        public ObjectVisitor()
    • Method Detail

      • openStruct

        public abstract void openStruct​(java.lang.String name,
                                        java.lang.String type)
        Open a (sub-)structure
        name - name of structure
        type - type of structure
      • closeStruct

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

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