Class JsonString
java.lang.Object
de.monticore.symboltable.serialization.json.JsonString
- All Implemented Interfaces:
JsonElement
- Direct Known Subclasses:
UserJsonString
This realizes a Json String.
-
Field Summary
Fields -
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, getAsJsonNull, getAsJsonNumber, getAsJsonObject, isJsonArray, isJsonBoolean, isJsonNull, isJsonNumber, isJsonObject
-
Field Details
-
value
-
-
Constructor Details
-
JsonString
-
-
Method Details
-
isJsonString
public boolean isJsonString()- Specified by:
isJsonStringin interfaceJsonElement- Returns:
- true iff this object is of type JsonString and false otherwise.
- See Also:
-
getAsJsonString
- Specified by:
getAsJsonStringin interfaceJsonElement- Returns:
- this object as JsonString if it is of this type and throws an error otherwise.
- See Also:
-
getValue
- Returns:
- value
-
setValue
- Parameters:
value- the value to set
-
length
public int length()- Returns:
- See Also:
-
toString
-
print
- Specified by:
printin interfaceJsonElement
-