All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zwobble.mammoth.internal.styles.parsing.Token Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
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