Package jsonvalues

Class JsOptics.JsArrayLenses

  • Enclosing class:
    JsOptics

    public static class JsOptics.JsArrayLenses
    extends Object
    represents all the lenses defined for a Json array
    • Constructor Summary

      Constructors 
      Constructor Description
      JsArrayLenses()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      jsonvalues.JsArrayLens<JsArray> array​(int index)
      lens that focus on the json array located at an index in an array
      jsonvalues.JsArrayLens<JsArray> array​(JsPath path)
      lens that focus on the json array located at a path in an array
      jsonvalues.JsBoolLens<JsArray> bool​(int index)
      lens that focus on the boolean located at an index in an array
      jsonvalues.JsBoolLens<JsArray> bool​(JsPath path)
      lens that focus on the boolean located at a path in an array
      jsonvalues.JsDecimalLens<JsArray> decimalNum​(int index)
      lens that focus on the decimal number located at an index in an array
      jsonvalues.JsDecimalLens<JsArray> decimalNum​(JsPath path)
      lens that focus on the decimal number located at a path in an array
      jsonvalues.JsDoubleLens<JsArray> doubleNum​(int index)
      lens that focus on the double number located at an index in an array
      jsonvalues.JsDoubleLens<JsArray> doubleNum​(JsPath path)
      lens that focus on the double number located at a path in an array
      jsonvalues.JsBigIntLens<JsArray> integralNum​(int index)
      lens that focus on the integral number located at an index in an array
      jsonvalues.JsBigIntLens<JsArray> integralNum​(JsPath path)
      lens that focus on the integral number located at a path in an array
      jsonvalues.JsIntLens<JsArray> intNum​(int index)
      lens that focus on the integer number located at an index in an array
      jsonvalues.JsIntLens<JsArray> intNum​(JsPath path)
      lens that focus on the integer number located at a path in an array
      jsonvalues.JsLongLens<JsArray> longNum​(int index)
      lens that focus on the long number located at an index in an array
      jsonvalues.JsLongLens<JsArray> longNum​(JsPath path)
      lens that focus on the long number located at a path in an array
      JsObjLens<JsArray> obj​(int index)
      lens that focus on the json object located at an index in an array
      JsObjLens<JsArray> obj​(JsPath path)
      lens that focus on the json object located at a path in an array
      jsonvalues.JsStrLens<JsArray> str​(int index)
      lens that focus on the string located at an index in an array
      jsonvalues.JsStrLens<JsArray> str​(JsPath path)
      lens that focus on the string located at a path in an array
      jsonvalues.JsValueLens<JsArray> value​(int index)
      lens that focus on the value located at an index in an array
      Lens<JsArray,​JsValue> value​(JsPath path)
      lens that focus on the value located at a path in an array
    • Constructor Detail

      • JsArrayLenses

        public JsArrayLenses()
    • Method Detail

      • value

        public Lens<JsArray,​JsValue> value​(JsPath path)
        lens that focus on the value located at a path in an array
        Parameters:
        path - the path where the value is located at
        Returns:
        a lens
      • value

        public jsonvalues.JsValueLens<JsArray> value​(int index)
        lens that focus on the value located at an index in an array
        Parameters:
        index - the index where the value is located at
        Returns:
        a lens
      • str

        public jsonvalues.JsStrLens<JsArray> str​(JsPath path)
        lens that focus on the string located at a path in an array
        Parameters:
        path - the path where the string is located at
        Returns:
        a lens
      • str

        public jsonvalues.JsStrLens<JsArray> str​(int index)
        lens that focus on the string located at an index in an array
        Parameters:
        index - the index where the string is located at
        Returns:
        a lens
      • bool

        public jsonvalues.JsBoolLens<JsArray> bool​(JsPath path)
        lens that focus on the boolean located at a path in an array
        Parameters:
        path - the path where the boolean is located at
        Returns:
        a lens
      • bool

        public jsonvalues.JsBoolLens<JsArray> bool​(int index)
        lens that focus on the boolean located at an index in an array
        Parameters:
        index - the index where the boolean is located at
        Returns:
        a lens
      • longNum

        public jsonvalues.JsLongLens<JsArray> longNum​(JsPath path)
        lens that focus on the long number located at a path in an array
        Parameters:
        path - the path where the long number is located at
        Returns:
        a lens
      • longNum

        public jsonvalues.JsLongLens<JsArray> longNum​(int index)
        lens that focus on the long number located at an index in an array
        Parameters:
        index - the index where the long number is located at
        Returns:
        a lens
      • intNum

        public jsonvalues.JsIntLens<JsArray> intNum​(JsPath path)
        lens that focus on the integer number located at a path in an array
        Parameters:
        path - the path where the integer number is located at
        Returns:
        a lens
      • intNum

        public jsonvalues.JsIntLens<JsArray> intNum​(int index)
        lens that focus on the integer number located at an index in an array
        Parameters:
        index - the index where the integer number is located at
        Returns:
        a lens
      • doubleNum

        public jsonvalues.JsDoubleLens<JsArray> doubleNum​(JsPath path)
        lens that focus on the double number located at a path in an array
        Parameters:
        path - the path where the double number is located at
        Returns:
        a lens
      • doubleNum

        public jsonvalues.JsDoubleLens<JsArray> doubleNum​(int index)
        lens that focus on the double number located at an index in an array
        Parameters:
        index - the index where the double number is located at
        Returns:
        a lens
      • decimalNum

        public jsonvalues.JsDecimalLens<JsArray> decimalNum​(JsPath path)
        lens that focus on the decimal number located at a path in an array
        Parameters:
        path - the path where the decimal number is located at
        Returns:
        a lens
      • decimalNum

        public jsonvalues.JsDecimalLens<JsArray> decimalNum​(int index)
        lens that focus on the decimal number located at an index in an array
        Parameters:
        index - the index where the decimal number is located at
        Returns:
        a lens
      • integralNum

        public jsonvalues.JsBigIntLens<JsArray> integralNum​(JsPath path)
        lens that focus on the integral number located at a path in an array
        Parameters:
        path - the path where the integral number is located at
        Returns:
        a lens
      • integralNum

        public jsonvalues.JsBigIntLens<JsArray> integralNum​(int index)
        lens that focus on the integral number located at an index in an array
        Parameters:
        index - the index where the integral number is located at
        Returns:
        a lens
      • obj

        public JsObjLens<JsArray> obj​(JsPath path)
        lens that focus on the json object located at a path in an array
        Parameters:
        path - the path where the json object is located at
        Returns:
        a lens
      • obj

        public JsObjLens<JsArray> obj​(int index)
        lens that focus on the json object located at an index in an array
        Parameters:
        index - the index where the json object is located at
        Returns:
        a lens
      • array

        public jsonvalues.JsArrayLens<JsArray> array​(JsPath path)
        lens that focus on the json array located at a path in an array
        Parameters:
        path - the path where the json array is located at
        Returns:
        a lens
      • array

        public jsonvalues.JsArrayLens<JsArray> array​(int index)
        lens that focus on the json array located at an index in an array
        Parameters:
        index - the index where the json array is located at
        Returns:
        a lens