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