public class TextPatternExpansion extends TextPattern
Modifier and Type | Field and Description |
---|---|
protected TextPattern |
clause |
protected SpanQueryExpansion.Direction |
direction |
protected int |
max |
protected int |
min |
MAX_UNLIMITED
Constructor and Description |
---|
TextPatternExpansion(TextPattern clause,
SpanQueryExpansion.Direction direction,
int min,
int max) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
TextPattern |
getClause() |
int |
getMaxExpand() |
int |
getMinExpand() |
int |
hashCode() |
boolean |
isExpandToLeft() |
String |
toString() |
BLSpanQuery |
translate(QueryExecutionContext context)
Translate this TextPattern into a BLSpanQuery.
|
clausesToString
protected TextPattern clause
protected SpanQueryExpansion.Direction direction
protected int min
protected int max
public TextPatternExpansion(TextPattern clause, SpanQueryExpansion.Direction direction, int min, int max)
public BLSpanQuery translate(QueryExecutionContext context) throws InvalidQuery
TextPattern
translate
in class TextPattern
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 boolean equals(Object obj)
equals
in class TextPattern
public int getMinExpand()
public int getMaxExpand()
public boolean isExpandToLeft()
public TextPattern getClause()
public int hashCode()
hashCode
in class TextPattern
public String toString()
toString
in class TextPattern
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.