1 package org.simantics.scl.compiler.types.exceptions;
8 public Problem(int start, int end, String description) {
11 this.description = description;
14 public int getStart() {
22 public String getDescription() {
27 public String toString() {
28 StringBuilder b = new StringBuilder();
33 void toString(StringBuilder b) {
38 b.append(description);
42 public int hashCode() {
45 result = prime * result
46 + ((description == null) ? 0 : description.hashCode());
47 result = prime * result + end;
48 result = prime * result + start;
53 public boolean equals(Object obj) {
58 if (getClass() != obj.getClass())
60 Problem other = (Problem) obj;
61 if (description == null) {
62 if (other.description != null)
64 } else if (!description.equals(other.description))
68 if (start != other.start)