org.topbraid.spin.model.visitor
Class ElementWalker

java.lang.Object
  extended by org.topbraid.spin.model.visitor.ElementWalker
All Implemented Interfaces:
ElementVisitor

public class ElementWalker
extends java.lang.Object
implements ElementVisitor

An object that can be used to recursively walk through an Element and the embedded expressions.

Author:
Holger Knublauch

Constructor Summary
ElementWalker(ElementVisitor elementVisitor, ExpressionVisitor expressionVisitor)
           
 
Method Summary
 void visit(ElementList elementList)
           
 void visit(Filter filter)
           
 void visit(Let let)
           
 void visit(NamedGraph namedGraph)
           
 void visit(NotExists notExists)
           
 void visit(Optional optional)
           
 void visit(Service service)
           
 void visit(SubQuery subQuery)
           
 void visit(TriplePath triplePath)
           
 void visit(TriplePattern triplePattern)
           
 void visit(Union union)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementWalker

public ElementWalker(ElementVisitor elementVisitor,
                     ExpressionVisitor expressionVisitor)
Method Detail

visit

public void visit(ElementList elementList)
Specified by:
visit in interface ElementVisitor

visit

public void visit(Filter filter)
Specified by:
visit in interface ElementVisitor

visit

public void visit(Let let)
Specified by:
visit in interface ElementVisitor

visit

public void visit(NamedGraph namedGraph)
Specified by:
visit in interface ElementVisitor

visit

public void visit(NotExists notExists)
Specified by:
visit in interface ElementVisitor

visit

public void visit(Optional optional)
Specified by:
visit in interface ElementVisitor

visit

public void visit(Service service)
Specified by:
visit in interface ElementVisitor

visit

public void visit(SubQuery subQuery)
Specified by:
visit in interface ElementVisitor

visit

public void visit(TriplePath triplePath)
Specified by:
visit in interface ElementVisitor

visit

public void visit(TriplePattern triplePattern)
Specified by:
visit in interface ElementVisitor

visit

public void visit(Union union)
Specified by:
visit in interface ElementVisitor