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

io.github.kits.json.tokenizer.JsonToken Maven / Gradle / Ivy

The newest version!
package io.github.kits.json.tokenizer;

/**
 * @project: kits
 * @created: with IDEA
 * @author: whimthen
 * @date: 2019-03-05-11:15 | March. Tuesday
 */
public class JsonToken {

	private JsonTokenType tokenType;

	private String value;

	public JsonToken(JsonTokenType tokenType, String value) {
		this.tokenType = tokenType;
		this.value = value;
	}

	public JsonToken(JsonTokenType jsonTokenType) {
		this.tokenType = jsonTokenType;
		this.value = jsonTokenType.getValue();
	}

	public JsonTokenType getTokenType() {
		return tokenType;
	}

	public JsonToken setTokenType(JsonTokenType tokenType) {
		this.tokenType = tokenType;
		return this;
	}

	public String getValue() {
		return value;
	}

	public JsonToken setValue(String value) {
		this.value = value;
		return this;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy