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