Record Class FindExprMatch
java.lang.Object
java.lang.Record
ca.phon.app.session.editor.search.FindExprMatch
- Record Components:
range- the range of the result within the transcript, if null there is no matchmatcher- the Java regex matcher for the result (may be null)phonexMatcher- the Phonex matcher for the result (may be null)
public record FindExprMatch(Range range, Matcher matcher, PhonexMatcher phonexMatcher)
extends Record
Result of a find operation. This contains the expression used to find the
result and the range of the result within the transcript. It also includes
the optional Java regex matcher and Phonex matcher for the result.
-
Constructor Summary
ConstructorsConstructorDescriptionFindExprMatch(Range range, Matcher matcher, PhonexMatcher phonexMatcher) Creates an instance of aFindExprMatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FindExprMatchempty()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhasMatch()booleanbooleanbooleanmatcher()Returns the value of thematcherrecord component.Returns the value of thephonexMatcherrecord component.range()Returns the value of therangerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FindExprMatch
Creates an instance of aFindExprMatchrecord class.- Parameters:
range- the value for therangerecord componentmatcher- the value for thematcherrecord componentphonexMatcher- the value for thephonexMatcherrecord component
-
-
Method Details
-
empty
-
hasMatch
public boolean hasMatch() -
isPlainMatch
public boolean isPlainMatch() -
isRegexMatch
public boolean isRegexMatch() -
isPhonexMatch
public boolean isPhonexMatch() -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
range
-
matcher
-
phonexMatcher
Returns the value of thephonexMatcherrecord component.- Returns:
- the value of the
phonexMatcherrecord component
-