Package org.apache.uima.jcas.cas
Class StringList
- java.lang.Object
-
- org.apache.uima.cas.impl.FeatureStructureImpl
-
- org.apache.uima.jcas.cas.TOP
-
- org.apache.uima.jcas.cas.StringList
-
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Iterable<java.lang.String>,FeatureStructure
- Direct Known Subclasses:
EmptyStringList,NonEmptyStringList
public class StringList extends TOP implements java.lang.Iterable<java.lang.String>
-
-
Field Summary
Fields Modifier and Type Field Description static inttypestatic inttypeIndexID
-
Constructor Summary
Constructors Modifier Constructor Description protectedStringList()StringList(int addr, TOP_Type type)StringList(JCas jcas)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetNthElement(int i)intgetTypeIndexID()used to obtain reference to the TOP_Type instancejava.util.Iterator<java.lang.String>iterator()NonEmptyStringListpush(java.lang.String s)pushes a String onto front of this list-
Methods inherited from class org.apache.uima.jcas.cas.TOP
addToIndexes, addToIndexes, equals, getAddress, getCAS, getCASImpl, getLowLevelCas, hashCode, removeFromIndexes, removeFromIndexes
-
Methods inherited from class org.apache.uima.cas.impl.FeatureStructureImpl
clone, getavoidcollisionTypeCode, getBooleanValue, getByteValue, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, prettyPrint, prettyPrint, prettyPrint, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toString, toString
-
-
-
-
Method Detail
-
getTypeIndexID
public int getTypeIndexID()
Description copied from class:TOPused to obtain reference to the TOP_Type instance- Overrides:
getTypeIndexIDin classTOP- Returns:
- the type array index
-
getNthElement
public java.lang.String getNthElement(int i)
-
iterator
public java.util.Iterator<java.lang.String> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<java.lang.String>
-
push
public NonEmptyStringList push(java.lang.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
-
-