dev.secondsun.retro.util.Token Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of retro-common Show documentation
Show all versions of retro-common Show documentation
This is a library that provides common classes and utilities for secondsun's retro projects.
package dev.secondsun.retro.util;
public class Token {
public TokenType type;
public int startIndex;
public int endIndex;
public String message;
public int intVal;
private StringBuilder stringBuffer = new StringBuilder();
public String getScopes() {
return null;
}
public int getStartIndex() {
return startIndex;
}
public int getEndIndex() {
return endIndex;
}
public void appendChar(char c) {
this.stringBuffer.append(c);
}
public String text() {
return stringBuffer.toString();
}
public TokenType getType() {
return type;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy