01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2006.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.query.algebra;
07:
08: /**
09: * A BNode generator, which generates a new BNode for each new call to
10: * {@link #getValue}.
11: */
12: public class BNodeGenerator extends QueryModelNodeBase implements
13: ValueExpr {
14:
15: /*--------------*
16: * Constructors *
17: *--------------*/
18:
19: public BNodeGenerator() {
20: super ();
21: }
22:
23: /*---------*
24: * Methods *
25: *---------*/
26:
27: public <X extends Exception> void visit(QueryModelVisitor<X> visitor)
28: throws X {
29: visitor.meet(this );
30: }
31:
32: @Override
33: public BNodeGenerator clone() {
34: return (BNodeGenerator) super.clone();
35: }
36: }
|