org.jrdf.query.expression
Class ExpressionVisitorAdapter

java.lang.Object
  extended by org.jrdf.query.expression.ExpressionVisitorAdapter
All Implemented Interfaces:
ExpressionVisitor
Direct Known Subclasses:
NaiveQueryEngineImpl

public class ExpressionVisitorAdapter
extends Object
implements ExpressionVisitor

An adapter for ExpressionVisitor - allows an implementation to avoid having to implement all the methods. Currently, these methods do nothing.

Version:
$Revision:$
Author:
Andrew Newman

Constructor Summary
ExpressionVisitorAdapter()
           
 
Method Summary
<V extends ExpressionVisitor>
void
visitConjunction(Conjunction<V> conjunction)
           
<V extends ExpressionVisitor>
void
visitConstraint(Constraint<V> constraint)
           
<V extends ExpressionVisitor>
void
visitOptional(Optional<V> optional)
           
<V extends ExpressionVisitor>
void
visitProjection(Projection<V> projection)
           
<V extends ExpressionVisitor>
void
visitUnion(Union<V> conjunction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionVisitorAdapter

public ExpressionVisitorAdapter()
Method Detail

visitProjection

public <V extends ExpressionVisitor> void visitProjection(Projection<V> projection)
Specified by:
visitProjection in interface ExpressionVisitor

visitConstraint

public <V extends ExpressionVisitor> void visitConstraint(Constraint<V> constraint)
Specified by:
visitConstraint in interface ExpressionVisitor

visitConjunction

public <V extends ExpressionVisitor> void visitConjunction(Conjunction<V> conjunction)
Specified by:
visitConjunction in interface ExpressionVisitor

visitUnion

public <V extends ExpressionVisitor> void visitUnion(Union<V> conjunction)
Specified by:
visitUnion in interface ExpressionVisitor

visitOptional

public <V extends ExpressionVisitor> void visitOptional(Optional<V> optional)
Specified by:
visitOptional in interface ExpressionVisitor