public ValueConstant visit(ASTRDFLiteral node, Object data)
throws VisitorException
{
String label = (String)node.getLabel().jjtAccept(this, null);
String lang = node.getLang();
ASTIRI datatypeNode = node.getDatatype();
Literal literal;
if (datatypeNode != null) {
URI datatype = valueFactory.createURI(datatypeNode.getValue());
literal = valueFactory.createLiteral(label, datatype);
}
else if (lang != null) {
literal = valueFactory.createLiteral(label, lang);
}