package com.anjlab.csv2db;
import java.util.Map;
import javax.script.ScriptEngine;
import com.google.gson.JsonElement;
import com.google.gson.JsonPrimitive;
public class StringLiteral implements ValueDefinition
{
private final String value;
public StringLiteral(String value)
{
this.value = value;
}
@Override
public Object eval(String targetTableColumnName, Map<String, Object> nameValues, ScriptEngine scriptEngine)
{
return value;
}
@Override
public JsonElement toJsonElement()
{
return new JsonPrimitive(value);
}
@Override
public boolean producesSQL()
{
return false;
}
}