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
public class JsonStringLiteralImpl extends JsonLiteralImpl implements 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, offset
-
Fields inherited from class sk.antons.json.impl.JsonValueImpl
group
-
-
Constructor Summary
Constructors Constructor Description JsonStringLiteralImpl(String literal)JsonStringLiteralImpl(String literal, int offset, int length)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonStringLiteralImplfromValue(String value)StringstringValue()String value of this literal.JsonLiteralImpl.Typetype()-
Methods inherited from class sk.antons.json.literal.impl.JsonLiteralImpl
copy, findAll, findFirst, instance, literal, remove, toCompactString, toPrettyString
-
Methods inherited from class sk.antons.json.impl.JsonValueImpl
asArray, asBoolLiteral, asExpLiteral, asFracLiteral, asIntLiteral, asLiteral, asNullLiteral, asObject, asStringLiteral, findAll, findAllLiterals, findFirst, findFirstLiteral, group, isArray, isBoolLiteral, isDescendantOf, isExpLiteral, isFracLiteral, isIntLiteral, isLiteral, isNullLiteral, isObject, isStringLiteral, parent, parentIndex, path, pathAsString, replaceBy, setGroup, toCompactString, toPrettyString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface sk.antons.json.literal.JsonLiteral
literal
-
Methods inherited from interface sk.antons.json.JsonValue
asArray, asBoolLiteral, asExpLiteral, asFracLiteral, asIntLiteral, asLiteral, asNullLiteral, asObject, asStringLiteral, copy, findAll, findAllLiterals, findFirst, findFirstLiteral, isArray, isBoolLiteral, isDescendantOf, isExpLiteral, isFracLiteral, isIntLiteral, isLiteral, isNullLiteral, isObject, isStringLiteral, parent, parentIndex, path, pathAsString, remove, replaceBy, toCompactString, toPrettyString
-
-
-
-
Method Detail
-
fromValue
public static JsonStringLiteralImpl fromValue(String value)
-
type
public JsonLiteralImpl.Type type()
- Specified by:
typein classJsonLiteralImpl
-
stringValue
public String 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
-
-