astra.core.AbstractElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of astra-interpreter Show documentation
Show all versions of astra-interpreter Show documentation
Core interpreter artifact for the ASTRA Language
package astra.core;
public abstract class AbstractElement {
int beginLine;
int beginColumn;
int endLine;
int endColumn;
String clazz;
boolean linkedToSource = false;
public void setLocation(String clazz, int beginLine, int beginColumn, int endLine, int endColumn) {
this.clazz = clazz;
this.beginLine = beginLine;
this.beginColumn = beginColumn;
this.endLine = endLine;
this.endColumn = endColumn;
linkedToSource = true;
}
public int beginLine() {
return beginLine;
}
public int endLine() {
return endLine;
}
public String getASTRAClass() {
return clazz;
}
public boolean isLinkedToSource() {
return linkedToSource;
}
}