Class RegexExpression
- java.lang.Object
-
- dev.morphia.aggregation.expressions.impls.Expression
-
- dev.morphia.aggregation.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 voidencode(Datastore datastore, BsonWriter writer, EncoderContext encoderContext)RegexExpressionoptions(String options)Optional options to apply to the regexRegexExpressionpattern(String pattern)The regular expressionRegexExpressionpattern(Pattern pattern)The regular expression-
Methods inherited from class dev.morphia.aggregation.expressions.impls.Expression
getOperation, getValue, toString
-
-
-
-
Constructor Detail
-
RegexExpression
public RegexExpression(String operation, Expression input)
-
-
Method Detail
-
encode
public void encode(Datastore datastore, BsonWriter writer, EncoderContext encoderContext)
- Overrides:
encodein classExpression- Parameters:
datastore- the datastorewriter- 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
-
-