if (obj instanceof Long)
return new LongLiteral((Long)obj);
if (obj instanceof Float)
return new FloatLiteral((Float)obj);
if (obj instanceof Double)
return new DoubleLiteral((Double)obj);
}
throw new InternalErrorException(this.getTypeSignature().getReturnType().getSimpleName());