Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<Match> |
LABEL_COMPARATOR |
static java.util.Comparator<Match> |
LENGTH_COMPARATOR |
static java.util.Comparator<Match> |
LINES_COMPARATOR |
static java.util.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() |
java.lang.String |
getLabel() |
int |
getLineCount() |
int |
getMarkCount() |
java.util.Set<Mark> |
getMarkSet() |
Mark |
getSecondMark() |
java.lang.String |
getSourceCodeSlice() |
int |
getTokenCount() |
java.util.Iterator<Mark> |
iterator() |
void |
setLabel(java.lang.String aLabel) |
void |
setMarkSet(java.util.Set<Mark> markSet) |
java.lang.String |
toString() |
public static final java.util.Comparator<Match> MATCHES_COMPARATOR
public static final java.util.Comparator<Match> LINES_COMPARATOR
public static final java.util.Comparator<Match> LABEL_COMPARATOR
public static final java.util.Comparator<Match> LENGTH_COMPARATOR
public Match(int tokenCount, TokenEntry first, TokenEntry second)
public int getMarkCount()
public int getLineCount()
public int getTokenCount()
public java.lang.String getSourceCodeSlice()
public java.util.Iterator<Mark> iterator()
iterator
in interface java.lang.Iterable<Mark>
public int compareTo(Match other)
compareTo
in interface java.lang.Comparable<Match>
public Mark getFirstMark()
public Mark getSecondMark()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<Mark> getMarkSet()
public int getEndIndex()
public void setMarkSet(java.util.Set<Mark> markSet)
public void setLabel(java.lang.String aLabel)
public java.lang.String getLabel()
public void addTokenEntry(TokenEntry entry)
Copyright © 2002–2018 PMD. All rights reserved.