mwalk Platform 0.3.0

mwalk.visitor
Interface Visitor

All Known Subinterfaces:
DownVisitor, UpVisitor
All Known Implementing Classes:
AbstractVisitor

public interface Visitor

The core interface for all visitors.

Version:
1.0
Author:
Robert Chalmers

Method Summary
 boolean again(Tree tree)
          Whether to walk the tree again.
 ActivityEvaluator evaluator()
          Return the current activity evaluator.
 void evaluator(ActivityEvaluator eval)
          Set the current activity evaluator.
 boolean init(Tree tree)
          Initialize state.
 boolean postfix()
          Whether to visit after visiting parent/children.
 boolean prefix()
          Whether to visit prior to visiting parent/children.
 void reset(Tree tree)
          Reset state.
 boolean verbose()
          Check whether the visitor is verbose.
 

Method Detail

evaluator

public ActivityEvaluator evaluator()
Return the current activity evaluator.
Returns:
ActivityEvaluator current evaluator

evaluator

public void evaluator(ActivityEvaluator eval)
Set the current activity evaluator.
Parameters:
ActivityEvaluator - new evaluator

verbose

public boolean verbose()
Check whether the visitor is verbose.
Returns:
boolean whether visitor is verbose

prefix

public boolean prefix()
Whether to visit prior to visiting parent/children.
Returns:
boolean whether to visit prior

postfix

public boolean postfix()
Whether to visit after visiting parent/children.
Returns:
boolean whether to visit after

init

public boolean init(Tree tree)
Initialize state.
Parameters:
Tree - current tree instance
Returns:
boolean whether initialization succeeded

reset

public void reset(Tree tree)
Reset state.
Parameters:
Tree - current tree instance

again

public boolean again(Tree tree)
Whether to walk the tree again.
Parameters:
Tree - current tree instance
Returns:
boolean whether to walk again

mwalk Platform 0.3.0

Submit a bug or feature mwalk Platform API Specification 0.3.0
Sensitivity: {Public:Research}
Copyright(c) 2000, Robert Chalmers