Package sk.antons.json.literal.impl
Class JsonFracLiteralImpl
- java.lang.Object
-
- sk.antons.json.impl.JsonValueImpl
-
- sk.antons.json.literal.impl.JsonLiteralImpl
-
- sk.antons.json.literal.impl.JsonFracLiteralImpl
-
- All Implemented Interfaces:
JsonMember,JsonValue,JsonFracLiteral,JsonLiteral
public class JsonFracLiteralImpl extends JsonLiteralImpl implements JsonFracLiteral
- 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 JsonFracLiteralImpl(String literal, int offset, int length, int dotPos)JsonFracLiteralImpl(BigDecimal bd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimalbdValue()BigDecimal value of this literalJsonLiteralImpl.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, isExpLiteral, isFracLiteral, isIntLiteral, isLiteral, isNullLiteral, isObject, isStringLiteral, parent, parentIndex, path, 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, isExpLiteral, isFracLiteral, isIntLiteral, isLiteral, isNullLiteral, isObject, isStringLiteral, parent, parentIndex, path, remove, replaceBy, toCompactString, toPrettyString
-
-
-
-
Constructor Detail
-
JsonFracLiteralImpl
public JsonFracLiteralImpl(BigDecimal bd)
-
JsonFracLiteralImpl
public JsonFracLiteralImpl(String literal, int offset, int length, int dotPos)
-
-
Method Detail
-
type
public JsonLiteralImpl.Type type()
- Specified by:
typein classJsonLiteralImpl
-
bdValue
public BigDecimal bdValue()
Description copied from interface:JsonFracLiteralBigDecimal value of this literal- Specified by:
bdValuein interfaceJsonFracLiteral- Returns:
- BigDecimal value
-
-