Package com.yahoo.vespa.objects
Class ObjectVisitor
java.lang.Object
com.yahoo.vespa.objects.ObjectVisitor
- Direct Known Subclasses:
ObjectDumper
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
Close a (sub-)structureabstract void
openStruct
(String name, String type) Open a (sub-)structureabstract void
Visits some object.
-
Constructor Details
-
ObjectVisitor
public ObjectVisitor()
-
-
Method Details
-
openStruct
Open a (sub-)structure- Parameters:
name
- name of structuretype
- type of structure
-
closeStruct
public abstract void closeStruct()Close a (sub-)structure -
visit
Visits some object.- Parameters:
name
- variable nameobj
- object to visit
-