01: /* Generated By:JJTree: Do not edit this line. ASTVar.java */
02:
03: package org.openrdf.query.parser.sparql.ast;
04:
05: public class ASTVar extends SimpleNode {
06:
07: private String name;
08:
09: private boolean anonymous;
10:
11: public ASTVar(int id) {
12: super (id);
13: }
14:
15: public ASTVar(SyntaxTreeBuilder p, int id) {
16: super (p, id);
17: }
18:
19: @Override
20: public Object jjtAccept(SyntaxTreeBuilderVisitor visitor,
21: Object data) throws VisitorException {
22: return visitor.visit(this , data);
23: }
24:
25: public String getName() {
26: return name;
27: }
28:
29: public void setName(String name) {
30: this .name = name;
31: }
32:
33: public boolean isAnonymous() {
34: return anonymous;
35: }
36:
37: public void setAnonymous(boolean anonymous) {
38: this .anonymous = anonymous;
39: }
40:
41: @Override
42: public String toString() {
43: return super .toString() + " (" + name + ")";
44: }
45: }
|