
io.protostuff.compiler.model.SourceCodeLocation Maven / Gradle / Ivy
package io.protostuff.compiler.model;
/**
* @author Kostiantyn Shchepanovskyi
*/
public class SourceCodeLocation {
public static final SourceCodeLocation UNKNOWN = new SourceCodeLocation() {
@Override
public String toString() {
return "unknown";
}
};
private final String file;
private final int line;
private SourceCodeLocation() {
file = "unknown";
line = 0;
}
public SourceCodeLocation(String file, int line) {
this.file = file;
this.line = line;
}
public String getFile() {
return file;
}
public int getLine() {
return line;
}
@Override
public String toString() {
return file + ":" + line;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy