Interface AstArray

All Superinterfaces:
AstNode, Iterable<Object>, ReadOnlyAstArray, ReadOnlyAstNode
All Known Subinterfaces:
NativeAstArray
All Known Implementing Classes:
ListAstArray, ListBasedAstArray

public interface AstArray extends ReadOnlyAstArray, AstNode
Author:
Bruno Salmon
  • Method Details

    • remove

      <V> V remove(int index)
      Remove a given index and associated value from the object.
    • push

      <T extends AstArray> T push(Object element)
      Pushes the given element onto the end of the array. Most consuming call.
    • push

      default <T extends AstArray> T push(ReadOnlyAstObject object)
      Set a given index to the given object.
    • push

      default <T extends AstArray> T push(ReadOnlyAstArray array)
      Set a given index to the given array.
    • pushScalar

      default <T extends AstArray> T pushScalar(Object scalar)
      Set a given index to the given element.
    • push

      default <T extends AstArray> T push(String value)
      Pushes the given boolean string onto the end of the array.
    • push

      default <T extends AstArray> T push(boolean value)
      Pushes the given boolean value onto the end of the array.
    • push

      default <T extends AstArray> T push(double value)
      Pushes the given double value onto the end of the array.
    • set

      <T extends AstArray> T set(int index, Object value)
      Set a given index to the given value. Most consuming call.
    • set

      default <T extends AstArray> T set(int index, ReadOnlyAstObject object)
      Set a given index to the given object.
    • set

      default <T extends AstArray> T set(int index, ReadOnlyAstArray array)
      Set a given index to the given array.
    • setScalar

      default <T extends AstArray> T setScalar(int index, Object scalar)
      Set a given index to the given scalar.
    • set

      default <T extends AstArray> T set(int index, String value)
      Set a given index to the given string.
    • set

      default <T extends AstArray> T set(int index, Boolean value)
      Set a given index to the given boolean.
    • set

      default <T extends AstArray> T set(int index, Double value)
      Set a given index to the given double.