protected Object processLiteral(Literal expr)
{
Object litValue = expr.getLiteral();
if (litValue instanceof Number)
{
MongoLiteral lit = new MongoLiteral(litValue);
stack.push(lit);
return lit;
}
else if (litValue instanceof String)
{
MongoLiteral lit = new MongoLiteral(litValue);
stack.push(lit);
return lit;
}
// TODO Handle all MongoDB supported (literal) types