Class NonEmptyFSList<T extends TOP>

    • Field Detail

      • typeIndexID

        public static final int typeIndexID
      • type

        public static final int type
      • _FC_head

        private static final java.lang.invoke.CallSite _FC_head
      • _FH_head

        private static final java.lang.invoke.MethodHandle _FH_head
      • _FC_tail

        private static final java.lang.invoke.CallSite _FC_tail
      • _FH_tail

        private static final java.lang.invoke.MethodHandle _FH_tail
    • Constructor Detail

      • 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 Detail

      • 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
      • 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 java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T extends TOP>
        Overrides:
        iterator in class FSList<T extends TOP>