public class Match extends Object implements Comparable<Match>
Modifier and Type | Field and Description |
---|---|
static Comparator<Match> |
LABEL_COMPARATOR |
static Comparator<Match> |
LENGTH_COMPARATOR |
static Comparator<Match> |
LINES_COMPARATOR |
static Comparator<Match> |
MATCHES_COMPARATOR |
Constructor and Description |
---|
Match(int tokenCount,
Mark first,
Mark second) |
Match(int tokenCount,
TokenEntry first,
TokenEntry second) |
Modifier and Type | Method and Description |
---|---|
void |
addTokenEntry(TokenEntry entry) |
int |
compareTo(Match other) |
int |
getEndIndex() |
Mark |
getFirstMark() |
String |
getLabel() |
int |
getLineCount() |
int |
getMarkCount() |
Set<Mark> |
getMarkSet() |
Mark |
getSecondMark() |
String |
getSourceCodeSlice() |
int |
getTokenCount() |
Iterator<Mark> |
iterator() |
void |
setLabel(String aLabel) |
void |
setMarkSet(Set<Mark> markSet) |
String |
toString() |
public static final Comparator<Match> MATCHES_COMPARATOR
public static final Comparator<Match> LINES_COMPARATOR
public static final Comparator<Match> LABEL_COMPARATOR
public static final Comparator<Match> LENGTH_COMPARATOR
public Match(int tokenCount, TokenEntry first, TokenEntry second)
public int getMarkCount()
public int getLineCount()
public int getTokenCount()
public String getSourceCodeSlice()
public int compareTo(Match other)
compareTo
in interface Comparable<Match>
public Mark getFirstMark()
public Mark getSecondMark()
public int getEndIndex()
public void setLabel(String aLabel)
public String getLabel()
public void addTokenEntry(TokenEntry entry)
Copyright © 2002-2016 InfoEther. All Rights Reserved.