Class RegexExpression

    • 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 class Expression
        Parameters:
        mapper - the mapper
        writer - the writer
        encoderContext - 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