
lt.compiler.lexical.Indent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of latte-compiler Show documentation
Show all versions of latte-compiler Show documentation
The latte-lang compiler project, which contains compiler and runtime required library.
The newest version!
package lt.compiler.lexical;
/**
* indentation
*/
public class Indent {
public static final int FLEX = -1;
private int indent;
public Indent(int indent) {
this.indent = indent;
}
public int getIndent() {
return indent;
}
public void setIndent(int indent) {
this.indent = indent;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Indent indent1 = (Indent) o;
return indent == indent1.indent;
}
@Override
public int hashCode() {
return indent;
}
@Override
public String toString() {
return "Indent(" + indent + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy