Package sk.antons.json.literal.impl
Class JsonStringLiteralImpl
java.lang.Object
sk.antons.json.impl.JsonValueImpl
sk.antons.json.literal.impl.JsonLiteralImpl
sk.antons.json.literal.impl.JsonStringLiteralImpl
- All Implemented Interfaces:
JsonMember,JsonValue,JsonLiteral,JsonStringLiteral
- Author:
- antons
-
Nested Class Summary
Nested classes/interfaces inherited from class sk.antons.json.literal.impl.JsonLiteralImpl
JsonLiteralImpl.Type -
Field Summary
Fields inherited from class sk.antons.json.literal.impl.JsonLiteralImpl
length, literal, offsetFields inherited from class sk.antons.json.impl.JsonValueImpl
group -
Constructor Summary
ConstructorsConstructorDescriptionJsonStringLiteralImpl(String literal) JsonStringLiteralImpl(String literal, int offset, int length) -
Method Summary
Modifier and TypeMethodDescriptionConverts value to value usable for some template frameworks.copy()Makes deep copy of this value.static JsonStringLiteralImplstatic JsonStringLiteralImplString value of this literal.type()Methods inherited from class sk.antons.json.literal.impl.JsonLiteralImpl
findAll, findFirst, instance, literal, remove, toCompactString, toPrettyStringMethods inherited from class sk.antons.json.impl.JsonValueImpl
asArray, asBoolLiteral, asExpLiteral, asFracLiteral, asIntLiteral, asLiteral, asNullLiteral, asObject, asStringLiteral, find, find, findAll, findAllLiterals, findFirst, findFirstLiteral, group, isArray, isBoolLiteral, isDescendantOf, isExpLiteral, isFracLiteral, isIntLiteral, isLiteral, isNullLiteral, isObject, isStringLiteral, name, parent, parentIndex, path, pathAsString, replaceBy, setGroup, toCompactString, toPrettyString, writeCompact, writePrettyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface sk.antons.json.literal.JsonLiteral
literalMethods inherited from interface sk.antons.json.JsonValue
asArray, asBoolLiteral, asExpLiteral, asFracLiteral, asIntLiteral, asLiteral, asNullLiteral, asObject, asStringLiteral, find, find, findAll, findAllLiterals, findFirst, findFirstLiteral, isArray, isBoolLiteral, isDescendantOf, isExpLiteral, isFracLiteral, isIntLiteral, isLiteral, isNullLiteral, isObject, isStringLiteral, name, parent, parentIndex, path, pathAsString, remove, replaceBy, toCompactString, toPrettyString, writeCompact, writePretty
-
Constructor Details
-
JsonStringLiteralImpl
-
JsonStringLiteralImpl
-
-
Method Details
-
fromValue
-
fromValue
-
type
- Specified by:
typein classJsonLiteralImpl
-
stringValue
Description copied from interface:JsonLiteralString value of this literal. (for string literal "foo" it returns foo)- Specified by:
stringValuein interfaceJsonLiteral- Specified by:
stringValuein interfaceJsonStringLiteral- Overrides:
stringValuein classJsonLiteralImpl- Returns:
- string value of this literal
-
copy
Description copied from interface:JsonValueMakes deep copy of this value. -
asTemplateParam
Description copied from interface:JsonValueConverts value to value usable for some template frameworks. - JsonObjects is converted to read only Map - JsonArray is converted to read only List - JsonLiteral is converted to its java value- Specified by:
asTemplateParamin interfaceJsonValue- Returns:
- template parameter form of this value
-