public class TextPatternEdge extends TextPatternCombiner
clauses
MAX_UNLIMITED
Constructor and Description |
---|
TextPatternEdge(TextPattern clause,
boolean rightEdge) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
TextPattern |
getClause() |
int |
hashCode() |
boolean |
isRightEdge() |
String |
toString() |
BLSpanQuery |
translate(QueryExecutionContext context)
Translate this TextPattern into a BLSpanQuery.
|
addClause, numberOfClauses, replaceClause
clausesToString
public TextPatternEdge(TextPattern clause, boolean rightEdge)
public BLSpanQuery translate(QueryExecutionContext context) throws InvalidQuery
TextPattern
translate
in class TextPatternCombiner
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 TextPatternCombiner
public boolean isRightEdge()
public TextPattern getClause()
public int hashCode()
hashCode
in class TextPatternCombiner
public String toString()
toString
in class TextPattern
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.