net.sourceforge.czt.parser.util
Class AbstractVisitor

java.lang.Object
  extended by net.sourceforge.czt.parser.util.AbstractVisitor
All Implemented Interfaces:
net.sourceforge.czt.util.Visitor
Direct Known Subclasses:
DefinitionTableVisitor, OpTableVisitor

public class AbstractVisitor
extends java.lang.Object
implements net.sourceforge.czt.util.Visitor


Constructor Summary
AbstractVisitor(net.sourceforge.czt.session.SectionInfo sectInfo)
           
 
Method Summary
protected  java.lang.Object get(java.lang.String name, java.lang.Class type)
          Asks the section manager to provide the requested info.
 java.util.Set getDependencies()
           
 java.lang.Object run(net.sourceforge.czt.base.ast.Term term)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractVisitor

public AbstractVisitor(net.sourceforge.czt.session.SectionInfo sectInfo)
Method Detail

run

public java.lang.Object run(net.sourceforge.czt.base.ast.Term term)
                     throws net.sourceforge.czt.session.CommandException
Throws:
net.sourceforge.czt.session.CommandException

getDependencies

public java.util.Set getDependencies()

get

protected java.lang.Object get(java.lang.String name,
                               java.lang.Class type)

Asks the section manager to provide the requested info.

If the section manager throws a CommandException, this exception is wrapped into a RuntimeException and thrown. It can be retrieved by calling getCause().



Copyright © 2003-2007 Community Z Tools Project. All Rights Reserved.