com.sri.oaa2.mapper
Class IclTraversal

java.lang.Object
  |
  +--com.sri.oaa2.mapper.IclTraversal
Direct Known Subclasses:
FindVarNames

public class IclTraversal
extends java.lang.Object

Traverses an ICL tree and calls back to an IclVisitor interface. This class is meant to be subclassed with the visit() methods overridden.


Constructor Summary
IclTraversal()
           
 
Method Summary
protected  void remove()
          Remove the currently visited node.
protected  void replace(IclTerm icl)
          Replaces the currently visited node.
 void traverse(IclTerm icl)
           
 void traverse(IclTerm icl, IclTerm parent, int childIndex)
           
protected  boolean visit(IclFloat icl)
           
protected  boolean visit(IclGroup icl)
           
protected  boolean visit(IclInt icl)
           
protected  boolean visit(IclList icl)
           
protected  boolean visit(IclStr icl)
           
protected  boolean visit(IclStruct icl)
           
protected  boolean visit(IclTerm icl)
           
protected  boolean visit(IclVar icl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IclTraversal

public IclTraversal()
Method Detail

traverse

public final void traverse(IclTerm icl)
                    throws MappingException
MappingException

traverse

public final void traverse(IclTerm icl,
                           IclTerm parent,
                           int childIndex)
                    throws MappingException
MappingException

visit

protected boolean visit(IclTerm icl)
                 throws MappingException
MappingException

visit

protected boolean visit(IclVar icl)
                 throws MappingException
MappingException

visit

protected boolean visit(IclStr icl)
                 throws MappingException
MappingException

visit

protected boolean visit(IclStruct icl)
                 throws MappingException
MappingException

visit

protected boolean visit(IclInt icl)
                 throws MappingException
MappingException

visit

protected boolean visit(IclFloat icl)
                 throws MappingException
MappingException

visit

protected boolean visit(IclList icl)
                 throws MappingException
MappingException

visit

protected boolean visit(IclGroup icl)
                 throws MappingException
MappingException

replace

protected final void replace(IclTerm icl)
                      throws MappingException
Replaces the currently visited node.

Parameters:
icl -
MappingException

remove

protected final void remove()
                     throws MappingException
Remove the currently visited node.

MappingException