Class StringList

All Implemented Interfaces:
Cloneable, Iterable<String>, FeatureStructure
Direct Known Subclasses:
EmptyStringList, NonEmptyStringList

public class StringList extends TOP implements Iterable<String>
  • Field Details

    • typeIndexID

      public static final int typeIndexID
    • type

      public static final int type
  • Constructor Details

    • StringList

      protected StringList()
    • StringList

      public StringList(int addr, TOP_Type type)
    • StringList

      public StringList(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 String getNthElement(int i)
    • iterator

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

      public NonEmptyStringList push(String s)
      pushes a String onto front of this list
      Parameters:
      s - the String to push
      Returns:
      the new list, with this String as the first element's head value