org.zwobble.mammoth.internal.styles.parsing.Token Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mammoth Show documentation
Show all versions of mammoth Show documentation
Convert Word documents to simple and clean HTML
package org.zwobble.mammoth.internal.styles.parsing;
public class Token {
private final int characterIndex;
private final TokenType tokenType;
private final String value;
public Token(int characterIndex, TokenType tokenType, String value) {
this.characterIndex = characterIndex;
this.tokenType = tokenType;
this.value = value;
}
public int getCharacterIndex() {
return characterIndex;
}
public TokenType getTokenType() {
return tokenType;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return "Token(tokenType=" + tokenType + ", value=" + value + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy