Class RegexExpression
- java.lang.Object
-
- dev.morphia.aggregation.experimental.expressions.impls.Expression
-
- dev.morphia.aggregation.experimental.expressions.impls.RegexExpression
-
public class RegexExpression extends Expression
-
-
Constructor Summary
Constructors Constructor Description RegexExpression(String operation, Expression input)
-
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)
RegexExpression
options(String options)
Optional options to apply to the regexRegexExpression
pattern(String pattern)
The regular expressionRegexExpression
pattern(Pattern pattern)
The regular expression-
Methods inherited from class dev.morphia.aggregation.experimental.expressions.impls.Expression
getOperation, getValue, toString
-
-
-
-
Constructor Detail
-
RegexExpression
public RegexExpression(String operation, Expression input)
-
-
Method Detail
-
encode
public void encode(Mapper mapper, org.bson.BsonWriter writer, org.bson.codecs.EncoderContext encoderContext)
- Overrides:
encode
in classExpression
- Parameters:
mapper
- the mapperwriter
- the writerencoderContext
- the context
-
options
public RegexExpression options(String options)
Optional options to apply to the regex- Parameters:
options
- the options- Returns:
- this
-
pattern
public RegexExpression pattern(String pattern)
The regular expression- Parameters:
pattern
- the regular expression- Returns:
- this
-
pattern
public RegexExpression pattern(Pattern pattern)
The regular expression- Parameters:
pattern
- the regular expression- Returns:
- this
-
-