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,
TokenEntry first,
TokenEntry second) |
Modifier and Type | Method and Description |
---|---|
void |
addTokenEntry(TokenEntry entry) |
int |
compareTo(Match other) |
int |
getEndIndex() |
TokenEntry |
getFirstMark() |
String |
getLabel() |
int |
getLineCount() |
int |
getMarkCount() |
Set<TokenEntry> |
getMarkSet() |
TokenEntry |
getSecondMark() |
String |
getSourceCodeSlice() |
int |
getTokenCount() |
Iterator<TokenEntry> |
iterator() |
void |
setLabel(String aLabel) |
void |
setLineCount(int lineCount) |
void |
setMarkSet(Set<TokenEntry> markSet) |
void |
setSourceCodeSlice(String code) |
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 void setLineCount(int lineCount)
public int getLineCount()
public int getTokenCount()
public String getSourceCodeSlice()
public void setSourceCodeSlice(String code)
public Iterator<TokenEntry> iterator()
public int compareTo(Match other)
compareTo
in interface Comparable<Match>
public TokenEntry getFirstMark()
public TokenEntry getSecondMark()
public Set<TokenEntry> getMarkSet()
public int getEndIndex()
public void setMarkSet(Set<TokenEntry> markSet)
public void setLabel(String aLabel)
public String getLabel()
public void addTokenEntry(TokenEntry entry)
Copyright © 2002-2014 InfoEther. All Rights Reserved.