Package sk.antons.json.literal.impl
Class JsonExpLiteralImpl
- java.lang.Object
-
- sk.antons.json.impl.JsonValueImpl
-
- sk.antons.json.literal.impl.JsonLiteralImpl
-
- sk.antons.json.literal.impl.JsonExpLiteralImpl
-
- All Implemented Interfaces:
JsonMember,JsonValue,JsonExpLiteral,JsonLiteral
public class JsonExpLiteralImpl extends JsonLiteralImpl implements JsonExpLiteral
- 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
cachedValueString, length, literal, offset
-
Fields inherited from class sk.antons.json.impl.JsonValueImpl
group
-
-
Constructor Summary
Constructors Constructor Description JsonExpLiteralImpl(String literal, int offset, int length, int dotPos, int ePos)JsonExpLiteralImpl(BigDecimal bd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectasTemplateParam()Converts value to value usable for some template frameworks.BigDecimalbdValue()BigDecimal value represented by this literal.JsonValuecopy()Makes deep copy of this value.JsonLiteralImpl.Typetype()-
Methods inherited from class sk.antons.json.literal.impl.JsonLiteralImpl
findAll, findFirst, instance, literal, remove, stringValue, 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, name, 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, stringValue
-
Methods inherited from interface sk.antons.json.JsonValue
asArray, asBoolLiteral, asExpLiteral, asFracLiteral, asIntLiteral, asLiteral, asNullLiteral, asObject, asStringLiteral, findAll, findAllLiterals, findFirst, findFirstLiteral, isArray, isBoolLiteral, isDescendantOf, isExpLiteral, isFracLiteral, isIntLiteral, isLiteral, isNullLiteral, isObject, isStringLiteral, name, parent, parentIndex, path, pathAsString, remove, replaceBy, toCompactString, toPrettyString
-
-
-
-
Constructor Detail
-
JsonExpLiteralImpl
public JsonExpLiteralImpl(BigDecimal bd)
-
JsonExpLiteralImpl
public JsonExpLiteralImpl(String literal, int offset, int length, int dotPos, int ePos)
-
-
Method Detail
-
type
public JsonLiteralImpl.Type type()
- Specified by:
typein classJsonLiteralImpl
-
bdValue
public BigDecimal bdValue()
Description copied from interface:JsonExpLiteralBigDecimal value represented by this literal.- Specified by:
bdValuein interfaceJsonExpLiteral- Returns:
- BigDecimal value
-
copy
public JsonValue copy()
Description copied from interface:JsonValueMakes deep copy of this value.
-
asTemplateParam
public Object 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
-
-