Package org.qdl_lang.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 Summary
Constructors Constructor Description MTStack()
-
Method Summary
All 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.XStack
addTables, 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
-
newInstance
public XStack newInstance()
-
newTableInstance
public XTable newTableInstance()
-
getXMLStackTag
public String getXMLStackTag()
-
getXMLTableTag
public String getXMLTableTag()
-
fromXML
public void fromXML(XMLEventReader xer, QDLInterpreter qi) throws XMLStreamException
-
clearChangeList
public void clearChangeList()
-
setStateStack
public 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
-
-