jag
Interface Visitor

All Known Implementing Classes:
bdis, bi, eval, gen0, gen1, gen2, gen3, i, naive, postfix, reg, stack, type

public interface Visitor

what a visitor must do.


Method Summary
 Object visit(int action, Object object)
          callback from successful pattern search.
 Object visit(Object object)
          visits an object.
 Object visit0(Object object)
          visits an object, ignoring possible descendants.
 

Method Detail

visit

Object visit(Object object)
             throws Exception
visits an object. This is a facade for the class search.

Parameters:
object - to be visited, not null.
Returns:
result of action.
Throws:
NoRuleException - if no rule can be found.
Exception
See Also:
Rule.visit(jag.Visitor, java.util.HashMap, java.lang.Object, int, java.util.List)

visit0

Object visit0(Object object)
              throws Exception
visits an object, ignoring possible descendants.

Parameters:
object - to be visited, not null.
Returns:
result of action.
Throws:
NoRuleException - if no rule can be found.
Exception
See Also:
Rule.visit(jag.Visitor, java.util.HashMap, java.lang.Object, int, java.util.List)

visit

Object visit(int action,
             Object object)
             throws Exception
callback from successful pattern search.

Parameters:
action - to differentiate actions.
object - to be visited, not null.
Throws:
Exception