Class ListOps


public class ListOps extends CollectionOps
Operations on List.
  • Constructor Details

    • ListOps

      public ListOps(BlockCreator bc, Expr obj)
      Construct a new instance.
      Parameters:
      bc - the block creator (must not be null)
      obj - the list instance (must not be null)
  • Method Details

    • get

      public Expr get(Expr index)
      Generate a call to List.get(int).
      Parameters:
      index - the index of the element to return (must not be null)
      Returns:
      the expression of the result (not null)
    • get

      public Expr get(int index)
      Generate a call to List.get(int).
      Parameters:
      index - the index of the element to return
      Returns:
      the expression of the result (not null)