Class FSList

All Implemented Interfaces:
Cloneable, Iterable<TOP>, FeatureStructure
Direct Known Subclasses:
EmptyFSList, NonEmptyFSList

public class FSList extends TOP implements Iterable<TOP>
  • Field Details

    • typeIndexID

      public static final int typeIndexID
    • type

      public static final int type
  • Constructor Details

    • FSList

      protected FSList()
    • FSList

      public FSList(int addr, TOP_Type type)
    • FSList

      public FSList(JCas jcas)
  • Method Details

    • getTypeIndexID

      public int getTypeIndexID()
      Description copied from class: TOP
      used to obtain reference to the TOP_Type instance
      Overrides:
      getTypeIndexID in class TOP
      Returns:
      the type array index
    • getNthElement

      public TOP getNthElement(int i)
    • iterator

      public Iterator<TOP> iterator()
      Specified by:
      iterator in interface Iterable<TOP>
    • push

      public NonEmptyFSList push(TOP item)
      pushes item onto front of this list
      Parameters:
      item - the item to push onto the list
      Returns:
      the new list, with this item as the head value of the first element