
com.github.tnakamot.jscdg.json.token.JSONTokenNull Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-parser Show documentation
Show all versions of json-parser Show documentation
An implementation of Java JSON Parser
/*
* Copyright (C) 2020 Takashi Nakamoto .
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package com.github.tnakamot.jscdg.json.token;
import com.github.tnakamot.jscdg.json.JSONText;
/**
* Represents one "null" token in JSON text.
*
*
* Based on RFC 8259, the token text returned
* by {@link #text()} is always "null".
*
*
* Instances of this class are immutable.
*/
public class JSONTokenNull extends JSONToken {
public static final String JSON_NULL = "null";
/**
* Creates one "null" type token of a JSON text.
*
* @param begin beginning location of this token within the source JSON text
* @param end end location of this token within the source JSON text
* @param source source JSON text where this token was extracted from
*/
public JSONTokenNull(StringLocation begin, StringLocation end, JSONText source) {
super(JSONTokenType.NULL, JSON_NULL, begin, end, source);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy