public class TextPatternRegex extends TextPatternTerm
value
MAX_UNLIMITED
Constructor and Description |
---|
TextPatternRegex(String value)
Instantiate a regex TextPattern.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
TextPattern |
rewrite()
Rewrite to TextPatternTerm if value only contains letters and numbers.
|
String |
toString() |
BLSpanQuery |
translate(QueryExecutionContext context)
Translate this TextPattern into a BLSpanQuery.
|
getTerm, getValue
clausesToString
public TextPatternRegex(String value)
value
- public BLSpanQuery translate(QueryExecutionContext context) throws InvalidQuery
TextPattern
translate
in class TextPatternTerm
context
- query execution context to useRegexpTooLarge
- if a regular expression was too largeInvalidQuery
- if something else was wrong about the query (e.g. error in regex expression)public TextPattern rewrite()
public boolean equals(Object obj)
equals
in class TextPatternTerm
public int hashCode()
hashCode
in class TextPatternTerm
public String toString()
toString
in class TextPatternTerm
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.