Class JsonNull
java.lang.Object
de.monticore.symboltable.serialization.json.JsonNull
- All Implemented Interfaces:
JsonElement
Represents a Json null, which is a value type in Json. This class exists for
reasons of completeness, but you should avoid using it
(cf. Hoare's "billion-dollar mistake")
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.monticore.symboltable.serialization.json.JsonElement
getAsJsonArray, getAsJsonBoolean, getAsJsonNumber, getAsJsonObject, getAsJsonString, isJsonArray, isJsonBoolean, isJsonNumber, isJsonObject, isJsonString
-
Constructor Details
-
JsonNull
public JsonNull()
-
-
Method Details
-
isJsonNull
public boolean isJsonNull()- Specified by:
isJsonNullin interfaceJsonElement- Returns:
- true iff this object is of type JsonNull and false otherwise.
- See Also:
-
getAsJsonNull
- Specified by:
getAsJsonNullin interfaceJsonElement- Returns:
- this object as JsonNull if it is of this type and throws an error otherwise.
- See Also:
-
toString
-
print
- Specified by:
printin interfaceJsonElement
-