Class ASTNumericLiteral
- java.lang.Object
-
- org.eclipse.rdf4j.query.parser.sparql.ast.SimpleNode
-
- org.eclipse.rdf4j.query.parser.sparql.ast.ASTRDFValue
-
- org.eclipse.rdf4j.query.parser.sparql.ast.ASTNumericLiteral
-
- All Implemented Interfaces:
Node
public class ASTNumericLiteral extends ASTRDFValue
-
-
Constructor Summary
Constructors Constructor Description ASTNumericLiteral(int id)
ASTNumericLiteral(SyntaxTreeBuilder p, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRI
getDatatype()
java.lang.String
getValue()
java.lang.Object
jjtAccept(SyntaxTreeBuilderVisitor visitor, java.lang.Object data)
Accept the visitor.void
setDatatype(IRI datatype)
void
setValue(java.lang.String value)
java.lang.String
toString()
-
Methods inherited from class org.eclipse.rdf4j.query.parser.sparql.ast.ASTRDFValue
getRDFValue, setRDFValue
-
Methods inherited from class org.eclipse.rdf4j.query.parser.sparql.ast.SimpleNode
childrenAccept, dump, getId, isScopeChange, jjtAddChild, jjtAppendChild, jjtClose, jjtGetChild, jjtGetChild, jjtGetChildren, jjtGetChildren, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtReplaceChild, jjtReplaceWith, jjtSetParent, jjtSetValue, setScopeChange, toString
-
-
-
-
Field Detail
-
value
private java.lang.String value
-
datatype
private IRI datatype
-
-
Constructor Detail
-
ASTNumericLiteral
public ASTNumericLiteral(int id)
-
ASTNumericLiteral
public ASTNumericLiteral(SyntaxTreeBuilder p, int id)
-
-
Method Detail
-
jjtAccept
public java.lang.Object jjtAccept(SyntaxTreeBuilderVisitor visitor, java.lang.Object data) throws VisitorException
Description copied from class:SimpleNode
Accept the visitor.- Specified by:
jjtAccept
in interfaceNode
- Overrides:
jjtAccept
in classSimpleNode
- Throws:
VisitorException
-
getValue
public java.lang.String getValue()
-
setValue
public void setValue(java.lang.String value)
-
getDatatype
public IRI getDatatype()
-
setDatatype
public void setDatatype(IRI datatype)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classSimpleNode
-
-