Class ListBasedAstArray

java.lang.Object
dev.webfx.platform.ast.spi.factory.impl.generic.ListBasedAstArray
All Implemented Interfaces:
AstArray, AstNode, ReadOnlyAstArray, ReadOnlyAstNode, Iterable<Object>
Direct Known Subclasses:
ListAstArray

public abstract class ListBasedAstArray extends Object implements AstArray
Author:
Bruno Salmon
  • Field Details

    • isShallowCopy

      protected boolean isShallowCopy
  • Constructor Details

    • ListBasedAstArray

      protected ListBasedAstArray()
    • ListBasedAstArray

      protected ListBasedAstArray(List<Object> list)
  • Method Details

    • getList

      public abstract List<Object> getList()
    • setList

      protected abstract void setList(List<Object> list)
    • deepCopyNativeArray

      protected void deepCopyNativeArray()
    • checkCopyBeforeUpdate

      protected void checkCopyBeforeUpdate()
    • size

      public int size()
      Description copied from interface: ReadOnlyAstArray
      Length of the array or number of keys of the object
      Specified by:
      size in interface ReadOnlyAstArray
      Specified by:
      size in interface ReadOnlyAstNode
    • remove

      public <T> T remove(int index)
      Description copied from interface: AstArray
      Remove a given index and associated value from the object.
      Specified by:
      remove in interface AstArray
    • clear

      public void clear()
      Description copied from interface: AstNode
      Removes all entries.
      Specified by:
      clear in interface AstNode
    • recreateEmptyNativeArray

      protected void recreateEmptyNativeArray()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object