public class UniquePatternDetectorElement
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<UniquePatternDetectorElement> |
AbsoluteLineNumberAndColumnOffsetComparator
Comparator for sorting first by absolute line number offset and second by absolute line column offset
|
static java.util.Comparator<UniquePatternDetectorElement> |
LineNumberComparator
Comparator for sorting first by line number and second by line index.
|
static java.util.Comparator<UniquePatternDetectorElement> |
TextLengthComparator
Comparator for sorting by text.length().
|
Modifier and Type | Method and Description |
---|---|
int |
getLineColumnOffset()
Get (optional) context information about the lime column offset.
|
int |
getLineIndex()
Get the index within the line where the unique pattern was detected.
|
int |
getLineNumber()
Get the line number where the unique pattern was detected.
|
int |
getLineNumberOffset()
Get (optional) context information about the lime number offset.
|
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.
|
void |
setLineNumberAndColumnOffset(int lineNumberOffset,
int lineColumnOffset)
Set (optional) context information about the lime number offset and the line column offset.
|
public static java.util.Comparator<UniquePatternDetectorElement> LineNumberComparator
public static java.util.Comparator<UniquePatternDetectorElement> TextLengthComparator
public static java.util.Comparator<UniquePatternDetectorElement> AbsoluteLineNumberAndColumnOffsetComparator
public int getLineNumber()
public int getTokenIndex()
public java.lang.String getText()
public int getLineIndex()
public void setLineNumberAndColumnOffset(int lineNumberOffset, int lineColumnOffset)
lineNumberOffset
- the lime number offsetlineColumnOffset
- the line column offsetpublic int getLineNumberOffset()
public int getLineColumnOffset()