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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IclTraversal
public IclTraversal()
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