this.referencesBySymbol = referencesBySymbol;
}
+ public static Builder builder() {
+ return new Builder();
+ }
+
public Multimap<Symbol, Integer> getReferencesBySymbol() {
return referencesBySymbol;
}
return new DefaultSymbolTable(referencesBySymbol);
}
- private class SymbolComparator implements Comparator<Symbol> {
+ private static class SymbolComparator implements Comparator<Symbol> {
@Override
public int compare(Symbol left, Symbol right) {
return left.getDeclarationStartOffset() - right.getDeclarationStartOffset();
}
}
- private class ReferenceComparator implements Comparator<Integer> {
+ private static class ReferenceComparator implements Comparator<Integer> {
@Override
public int compare(Integer left, Integer right) {
int result;
private boolean shouldReopenPendingTags(CharactersReader charactersReader) {
return (charactersReader.getPreviousValue() == LF_END_OF_LINE && charactersReader.getCurrentValue() != LF_END_OF_LINE)
|| (charactersReader.getPreviousValue() == CR_END_OF_LINE && charactersReader.getCurrentValue() != CR_END_OF_LINE
- && charactersReader.getCurrentValue() != LF_END_OF_LINE
- );
+ && charactersReader.getCurrentValue() != LF_END_OF_LINE);
}
private boolean shouldStartNewLine(CharactersReader charactersReader) {
public interface Symbol {
- public int getDeclarationStartOffset();
+ int getDeclarationStartOffset();
- public int getDeclarationEndOffset();
+ int getDeclarationEndOffset();
- public String getFullyQualifiedName();
+ String getFullyQualifiedName();
}