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

com.github.tnakamot.jscdg.json.token.JSONTokenNull Maven / Gradle / Ivy

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