Class NonEmptyFSList<T extends TOP>

All Implemented Interfaces:
Cloneable, Iterable<T>, FeatureStructure, FeatureStructureImpl, CommonList, NonEmptyList

public class NonEmptyFSList<T extends TOP> extends FSList<T> implements NonEmptyList
  • Field Details

  • Constructor Details

    • NonEmptyFSList

      public NonEmptyFSList()
    • NonEmptyFSList

      public NonEmptyFSList(JCas jcas)
    • NonEmptyFSList

      public NonEmptyFSList(TypeImpl t, CASImpl c)
      used by generator Make a new AnnotationBase
      Parameters:
      c - -
      t - -
    • NonEmptyFSList

      public NonEmptyFSList(JCas jcas, T head, FSList<?> tail)
      Generate a NonEmpty node with the specified head and tail
      Parameters:
      jcas - -
      head - -
      tail - -
    • NonEmptyFSList

      public NonEmptyFSList(JCas jcas, T head)
      Generate a NonEmpty node with the specified head with the empty node as the tail
      Parameters:
      jcas - -
      head - -
  • Method Details

    • getTypeIndexID

      public int getTypeIndexID()
      Overrides:
      getTypeIndexID in class TOP
      Returns:
      the type array index
    • getHead

      public T getHead()
    • setHead

      public void setHead(T vt)
    • getTail

      public FSList<T> getTail()
    • setTail

      public void setTail(FSList v)
    • setTail

      public void setTail(CommonList v)
      Description copied from interface: CommonList
      sets the tail of this node
      Specified by:
      setTail in interface CommonList
      Parameters:
      v - the tail
    • getNthElement

      public T getNthElement(int i)
      Overrides:
      getNthElement in class FSList<T extends TOP>
    • add

      public NonEmptyFSList<T> add(T item)
      inserts the new item as a new NonEmpty FSList node following this item
      Parameters:
      item - to be inserted
      Returns:
      the NonEmptyFSList node created
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T extends TOP>
      Overrides:
      iterator in class FSList<T extends TOP>