Class Expression
- java.lang.Object
-
- dev.morphia.aggregation.experimental.expressions.impls.Expression
-
- Direct Known Subclasses:
Accumulator
,AccumulatorExpression
,ArrayExpression
,ArrayFilterExpression
,ArrayIndexExpression
,ConvertExpression
,DateExpressions.DateExpression
,DateFromParts
,DateFromString
,DateToParts
,DateToString
,DocumentExpression
,FunctionExpression
,IfNull
,IndexExpression
,IsoDates
,LetExpression
,LiteralExpression
,MapExpression
,MathExpression
,MetaExpression
,ObjectExpressions.MergeObjects
,Push
,RangeExpression
,ReduceExpression
,RegexExpression
,ReplaceExpression
,SliceExpression
,SwitchExpression
,TrimExpression
,ValueExpression
,ZipExpression
public class Expression extends Object
Base class for all the expression types.- Since:
- 2.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Expression(String operation)
Expression(String operation, Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(Mapper mapper, org.bson.BsonWriter writer, org.bson.codecs.EncoderContext encoderContext)
String
getOperation()
Object
getValue()
String
toString()
-
-
-
Constructor Detail
-
Expression
protected Expression(String operation)
-
-
Method Detail
-
encode
public void encode(Mapper mapper, org.bson.BsonWriter writer, org.bson.codecs.EncoderContext encoderContext)
- Parameters:
mapper
- the mapperwriter
- the writerencoderContext
- the context
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
getOperation
public String getOperation()
- Returns:
- the value
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
getValue
@Nullable public Object getValue()
- Returns:
- the value
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-