@Override public int hashCode() { if (startLine != -1) { return className.hashCode() + startLine + 3 * endLine + getDescription().hashCode(); } return className.hashCode() + startBytecode + 3 * endBytecode + getDescription().hashCode(); }
@Override public boolean equals(Object o) { if (!(o instanceof SourceLineAnnotation)) { return false; } SourceLineAnnotation other = (SourceLineAnnotation) o; if (!getDescription().equals(other.getDescription())) { return false; } if (startLine != -1) { return className.equals(other.className) && startLine == other.startLine && endLine == other.endLine; } return className.equals(other.className) && startBytecode == other.startBytecode && endBytecode == other.endBytecode; }
optionalAdd(primaryAnnotations, primeClass); if ((showContext || !SourceLineAnnotation.DEFAULT_ROLE.equals(primarySourceLineAnnotation.getDescription()))) { result.add(primarySourceLineAnnotation);
String role = getDescription(); if (!DEFAULT_ROLE.equals(role)) { attributeList.addAttribute("role", getDescription());
static SourceLineAnnotation obfuscate(SourceLineAnnotation m) { SourceLineAnnotation result = new SourceLineAnnotation(hashClass(m.getClassName()), hashFilename(m.getSourceFile()), m.getStartLine(), m.getEndLine(), m.getStartBytecode(), m.getEndBytecode()); result.setDescription(m.getDescription()); return result; }
@Override public int hashCode() { if (startLine != -1) { return className.hashCode() + startLine + 3 * endLine + getDescription().hashCode(); } return className.hashCode() + startBytecode + 3 * endBytecode + getDescription().hashCode(); }
@Override public boolean equals(Object o) { if (!(o instanceof SourceLineAnnotation)) { return false; } SourceLineAnnotation other = (SourceLineAnnotation) o; if (!getDescription().equals(other.getDescription())) { return false; } if (startLine != -1) { return className.equals(other.className) && startLine == other.startLine && endLine == other.endLine; } return className.equals(other.className) && startBytecode == other.startBytecode && endBytecode == other.endBytecode; }
this.myDocument = src; src.getHighlightInformation().clear(); String primaryKind = mySourceLine.getDescription(); continue; if (sourceAnnotation.getDescription().equals(primaryKind)) { highlight(src, sourceAnnotation, MAIN_HIGHLIGHT_MORE); } else {
optionalAdd(primaryAnnotations, primeClass); if ((showContext || !SourceLineAnnotation.DEFAULT_ROLE.equals(primarySourceLineAnnotation.getDescription()))) { result.add(primarySourceLineAnnotation);
String role = getDescription(); if (!DEFAULT_ROLE.equals(role)) { attributeList.addAttribute("role", getDescription());
static SourceLineAnnotation obfuscate(SourceLineAnnotation m) { SourceLineAnnotation result = new SourceLineAnnotation(hashClass(m.getClassName()), hashFilename(m.getSourceFile()), m.getStartLine(), m.getEndLine(), m.getStartBytecode(), m.getEndBytecode()); result.setDescription(m.getDescription()); return result; }