aima.logic.fol.parsing
Class AbstractFOLVisitor

java.lang.Object
  extended by aima.logic.fol.parsing.AbstractFOLVisitor
All Implemented Interfaces:
FOLVisitor
Direct Known Subclasses:
SubstVisitor

public class AbstractFOLVisitor
extends java.lang.Object
implements FOLVisitor


Constructor Summary
AbstractFOLVisitor()
           
 
Method Summary
protected  Sentence recreate(java.lang.Object ast)
           
 java.lang.Object visitConnectedSentence(ConnectedSentence sentence, java.lang.Object arg)
           
 java.lang.Object visitConstant(Constant constant, java.lang.Object arg)
           
 java.lang.Object visitFunction(Function function, java.lang.Object arg)
           
 java.lang.Object visitNotSentence(NotSentence sentence, java.lang.Object arg)
           
 java.lang.Object visitPredicate(Predicate predicate, java.lang.Object arg)
           
 java.lang.Object visitQuantifiedSentence(QuantifiedSentence sentence, java.lang.Object arg)
           
 java.lang.Object visitTermEquality(TermEquality equality, java.lang.Object arg)
           
 java.lang.Object visitVariable(Variable variable, java.lang.Object arg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFOLVisitor

public AbstractFOLVisitor()
Method Detail

recreate

protected Sentence recreate(java.lang.Object ast)

visitVariable

public java.lang.Object visitVariable(Variable variable,
                                      java.lang.Object arg)
Specified by:
visitVariable in interface FOLVisitor

visitQuantifiedSentence

public java.lang.Object visitQuantifiedSentence(QuantifiedSentence sentence,
                                                java.lang.Object arg)
Specified by:
visitQuantifiedSentence in interface FOLVisitor

visitPredicate

public java.lang.Object visitPredicate(Predicate predicate,
                                       java.lang.Object arg)
Specified by:
visitPredicate in interface FOLVisitor

visitTermEquality

public java.lang.Object visitTermEquality(TermEquality equality,
                                          java.lang.Object arg)
Specified by:
visitTermEquality in interface FOLVisitor

visitConstant

public java.lang.Object visitConstant(Constant constant,
                                      java.lang.Object arg)
Specified by:
visitConstant in interface FOLVisitor

visitFunction

public java.lang.Object visitFunction(Function function,
                                      java.lang.Object arg)
Specified by:
visitFunction in interface FOLVisitor

visitNotSentence

public java.lang.Object visitNotSentence(NotSentence sentence,
                                         java.lang.Object arg)
Specified by:
visitNotSentence in interface FOLVisitor

visitConnectedSentence

public java.lang.Object visitConnectedSentence(ConnectedSentence sentence,
                                               java.lang.Object arg)
Specified by:
visitConnectedSentence in interface FOLVisitor