Package org.qdl_lang.expressions.module
Class MTStack<V extends MTTable<? extends MTKey,? extends Module>>
- java.lang.Object
- 
- org.qdl_lang.state.XStack<V>
- 
- org.qdl_lang.expressions.module.MTStack<V>
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class MTStack<V extends MTTable<? extends MTKey,? extends Module>> extends XStack<V> implements Serializable Created by Jeff Gaynor 
 on 12/13/21 at 7:17 AM- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description MTStack()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearChangeList()voidfromXML(XMLEventReader xer, QDLInterpreter qi)List<MTKey>getChangeList()ModulegetModule(MTKey mtKey)XStackgetStateStack(State state)This gets the stack corresponding to this class from the state..StringgetXMLStackTag()StringgetXMLTableTag()XStacknewInstance()XTablenewTableInstance()XThingput(XThing value)voidsetChangeList(List<MTKey> changeList)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, get, getAll, getJSON, getLocal, getRoot, getStack, isEmpty, keySet, localGet, localHas, localPut, localRemove, main, nonlocalGet, peek, push, pushNewTable, put, remove, serializeContent, serializeToJSON, setStack, size, toJSON, toString, toString, toXML, toXMLNEW
 
- 
 
- 
- 
- 
Method Detail- 
newInstancepublic XStack newInstance() 
 - 
newTableInstancepublic XTable newTableInstance() 
 - 
getXMLStackTagpublic String getXMLStackTag() 
 - 
getXMLTableTagpublic String getXMLTableTag() 
 - 
fromXMLpublic void fromXML(XMLEventReader xer, QDLInterpreter qi) throws XMLStreamException 
 - 
clearChangeListpublic void clearChangeList() 
 - 
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
 
- 
 
-