Class Match
java.lang.Object
de.espirit.firstspirit.access.search.Match
- All Implemented Interfaces:
Serializable
Container for describing a match of a search.
- Since:
- 4.0.17
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getBegin()
Provides the starting position of the match within the text it bases upon.Set<de.espirit.firstspirit.access.search.PatternClause>
Provides the clauses, which were matched.int
getEnd()
Provides the ending position of the match within the text it bases upon.
-
Constructor Details
-
Match
public Match(de.espirit.firstspirit.access.search.PatternClause clause, int begin, int end) Constructor based on a single clause and providing textual markers.- Parameters:
clause
- The clause matched.begin
- The starting position within the text.end
- The ending position within the text.- Since:
- 4.0.17
-
Match
Constructor based on a set of clauses.- Parameters:
clauses
- The clauses matched.- Since:
- 4.0.17
-
-
Method Details
-
getClauses
Provides the clauses, which were matched.- Returns:
- A set of clauses.
- Since:
- 4.0.17
-
getBegin
public int getBegin()Provides the starting position of the match within the text it bases upon.- Returns:
- The starting position or -1, if none given.
- Since:
- 4.0.17
-
getEnd
public int getEnd()Provides the ending position of the match within the text it bases upon.- Returns:
- The ending position or -1, if none given.
- Since:
- 4.0.17
-