Class JsonFracLiteralImpl

All Implemented Interfaces:
JsonMember, JsonValue, JsonFracLiteral, JsonLiteral

public class JsonFracLiteralImpl extends JsonLiteralImpl implements JsonFracLiteral
Author:
antons
  • Constructor Details

    • JsonFracLiteralImpl

      public JsonFracLiteralImpl(BigDecimal bd)
    • JsonFracLiteralImpl

      public JsonFracLiteralImpl(String literal, int offset, int length, int dotPos)
  • Method Details

    • type

      public JsonLiteralImpl.Type type()
      Specified by:
      type in class JsonLiteralImpl
    • bdValue

      public BigDecimal bdValue()
      Description copied from interface: JsonFracLiteral
      BigDecimal value of this literal
      Specified by:
      bdValue in interface JsonFracLiteral
      Returns:
      BigDecimal value
    • copy

      public JsonValue copy()
      Description copied from interface: JsonValue
      Makes deep copy of this value.
      Specified by:
      copy in interface JsonValue
      Returns:
      copy of this
    • asTemplateParam

      public Object asTemplateParam()
      Description copied from interface: JsonValue
      Converts 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:
      asTemplateParam in interface JsonValue
      Returns:
      template parameter form of this value