tcl.lang
Interface TclDict.Visitor

Enclosing class:
TclDict

public static interface TclDict.Visitor

An interface to traverse (visit) each key-value pair in a Tcl dictionary object. This is an implementation of the standard Visitor Pattern, with added parameters for an Interp object and some arbitrary threaded state.


Method Summary
 Object visit(Interp interp, Object accum, TclObject key, TclObject value)
          Called for each element in a TclDict.
 

Method Detail

visit

Object visit(Interp interp,
             Object accum,
             TclObject key,
             TclObject value)
             throws TclException
Called for each element in a TclDict.

Throws:
TclException


Copyright © 2015. All rights reserved.