DATAMONGO-1533 - Polishing.

Enhance JavaDoc. Minor reformatting.

Original pull request: #428.
This commit is contained in:
Mark Paluch
2016-12-16 08:55:21 +01:00
parent 35bfb92ace
commit 6993054d6a

View File

@@ -15,9 +15,10 @@
*/
package org.springframework.data.mongodb.core.aggregation;
import com.mongodb.DBObject;
import org.springframework.util.Assert;
import com.mongodb.DBObject;
/**
* An {@link AggregationExpression} that renders a MongoDB Aggregation Framework expression from the AST of a
* <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/html/expressions.html">SpEL
@@ -53,7 +54,7 @@ public class AggregationSpELExpression implements AggregationExpression {
/**
* Creates new {@link AggregationSpELExpression} for the given {@literal expressionString} and {@literal parameters}.
*
* @param expression must not be {@literal null}.
* @param expressionString must not be {@literal null}.
* @param parameters can be empty.
* @return
*/
@@ -63,6 +64,9 @@ public class AggregationSpELExpression implements AggregationExpression {
return new AggregationSpELExpression(expressionString, parameters);
}
/* (non-Javadoc)
* @see org.springframework.data.mongodb.core.aggregation.AggregationExpression#toDbObject(org.springframework.data.mongodb.core.aggregation.AggregationOperationContext)
*/
@Override
public DBObject toDbObject(AggregationOperationContext context) {
return (DBObject) TRANSFORMER.transform(rawExpression, context, parameters);