Package org.qdl_lang.state
Class StemMultiIndex
- java.lang.Object
- 
- org.qdl_lang.state.StemMultiIndex
 
- 
 public class StemMultiIndex extends Object If we get a stem variable, this has the components to it
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedStemMultiIndex()StemMultiIndex(String variable)Creates a new instance from the variable.StemMultiIndex(StemMultiIndex w, int newNameIndex)Given a stem wrapper where a stem reference has been found at newNameIndex, make a new object suitable for handing to a stem variable for resolution.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getComponents()StringgetLastComponent()StringgetName()intgetRealLength()booleanisEmpty()So no indices.booleanisStem()voidsetRealLength(int realLength)StemMultiIndextruncate()Returns a new Stem that is adjusted to the realLength
 
- 
- 
- 
Constructor Detail- 
StemMultiIndexpublic StemMultiIndex(StemMultiIndex w, int newNameIndex) Given a stem wrapper where a stem reference has been found at newNameIndex, make a new object suitable for handing to a stem variable for resolution. The original index, w, should have itsrealLengthadjusted accordingly- Parameters:
- w-
- newNameIndex-
 
 - 
StemMultiIndexpublic StemMultiIndex(String variable) Creates a new instance from the variable. Note that the name is the entire stem name, so a.i.j... and this parses it into components. The very first component is always the name of the stem.- Parameters:
- variable-
 
 - 
StemMultiIndexprotected StemMultiIndex() 
 
- 
 - 
Method Detail- 
isEmptypublic boolean isEmpty() So no indices.- Returns:
 
 - 
getRealLengthpublic int getRealLength() 
 - 
setRealLengthpublic void setRealLength(int realLength) 
 - 
getLastComponentpublic String getLastComponent() 
 - 
getNamepublic String getName() 
 - 
isStempublic boolean isStem() 
 - 
truncatepublic StemMultiIndex truncate() Returns a new Stem that is adjusted to the realLength- Returns:
 
 
- 
 
-