Package org.opengrok.indexer.analysis
Class TextMatchedEvent
java.lang.Object
org.opengrok.indexer.analysis.TextMatchedEvent
Represents an event raised when a symbol matcher matches a string that
would not be published as a symbol.
-
Constructor Summary
ConstructorsConstructorDescriptionTextMatchedEvent(Object source, String str, long start, long end) Initializes an immutable instance ofTextMatchedEvent.TextMatchedEvent(Object source, String str, EmphasisHint hint, long start, long end) Initializes an immutable instance ofTextMatchedEvent. -
Method Summary
-
Constructor Details
-
TextMatchedEvent
Initializes an immutable instance ofTextMatchedEvent.- Parameters:
source- the event sourcestr- the text stringstart- the text start positionend- the text end position
-
TextMatchedEvent
Initializes an immutable instance ofTextMatchedEvent.- Parameters:
source- the event sourcestr- the text stringhint- the text hintstart- the text start positionend- the text end position
-
-
Method Details
-
getSource
Gets the event source.- Returns:
- the initial value
-
getStr
Gets the text string.- Returns:
- the initial value
-
getStart
public long getStart()Gets the text start position.- Returns:
- the initial value
-
getEnd
public long getEnd()Gets the text end position.- Returns:
- the initial value
-
getHint
Gets the text hint.- Returns:
- the initial value
-