Package org.qdl_lang.expressions.module
Class MIStack<V extends MITable<? extends XKey,? extends MIWrapper>>
- java.lang.Object
- 
- org.qdl_lang.state.XStack<V>
- 
- org.qdl_lang.expressions.module.MIStack<V>
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class MIStack<V extends MITable<? extends XKey,? extends MIWrapper>> extends XStack<V> implements Serializable Created by Jeff Gaynor 
 on 1/29/22 at 7:25 AM- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description MIStack()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfromXML(XMLEventReader xer, QDLInterpreter qi)XThingget(XKey key)List<XKey>getAliases(MTKey key)For a given module namespace, return all current aliases.List<String>getAliasesAsString(MTKey key)Same asgetAliases(MTKey)except that the result is not a set of keys but a simple list of the aliases as strings.ModulegetModule(XKey xKey)Convenience method that castsXStackgetStateStack(State state)This gets the stack corresponding to this class from the state..StringgetXMLStackTag()StringgetXMLTableTag()XStacknewInstance()XTablenewTableInstance()voidsetStateStack(State state, XStack xStack)This sets the stack corresponding to this class from the state with the given stack.- 
Methods inherited from class org.qdl_lang.state.XStackaddTables, allKeys, append, appendTables, clear, clone, containsKey, containsKey, deserializeFromJSON, deserializeFromJSONNEW, deserializeFromJSONOLD, fromJSON, fromXML, fromXMLNEW, getAll, getJSON, getLocal, getRoot, getStack, isEmpty, keySet, localGet, localHas, localPut, localRemove, main, nonlocalGet, peek, push, pushNewTable, put, put, remove, serializeContent, serializeToJSON, setStack, size, toJSON, toString, toString, toXML, toXMLNEW
 
- 
 
- 
- 
- 
Method Detail- 
newInstancepublic XStack newInstance() 
 - 
newTableInstancepublic XTable newTableInstance() 
 - 
fromXMLpublic void fromXML(XMLEventReader xer, QDLInterpreter qi) throws XMLStreamException 
 - 
getModulepublic Module getModule(XKey xKey) Convenience method that casts- Parameters:
- xKey-
- Returns:
 
 - 
getXMLStackTagpublic String getXMLStackTag() 
 - 
getXMLTableTagpublic String getXMLTableTag() 
 - 
getAliasespublic List<XKey> getAliases(MTKey key) For a given module namespace, return all current aliases. Note that this means current overrides, so if there are multiple instances in the stack, only the active one is returned.- Parameters:
- key-
- Returns:
 
 - 
getAliasesAsStringpublic List<String> getAliasesAsString(MTKey key) Same asgetAliases(MTKey)except that the result is not a set of keys but a simple list of the aliases as strings. Mostly this is used in the workspace to display lists of aliases.- Parameters:
- key-
- Returns:
 
 - 
setStateStackpublic void setStateStack(State state, XStack xStack) Description copied from class:XStackThis sets the stack corresponding to this class from the state with the given stack. If the stack is not of the correct type, a class cast exception will result.
 We could have tried this with some type of dynamic casting, but that is messy and fragile in Java
 
- 
 
-