public class UniquePatternDetectorElement
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<UniquePatternDetectorElement> |
LineNumberComparator
Comparator for sorting first by line number and second by token index.
|
static java.util.Comparator<UniquePatternDetectorElement> |
TextLengthComparator
Comparator for sorting by text.length().
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLineNumber()
Get the line number where the unique pattern was detected.
|
java.lang.String |
getText()
Get the text of the unique pattern.
|
int |
getTokenIndex()
Get the token index within the line where the unique pattern was detected.
|
public static java.util.Comparator<UniquePatternDetectorElement> LineNumberComparator
public static java.util.Comparator<UniquePatternDetectorElement> TextLengthComparator
public int getLineNumber()
public int getTokenIndex()
public java.lang.String getText()