Package org.qdl_lang.module
Class MITable<K extends XKey,V extends MIWrapper>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- org.qdl_lang.state.XTable<K,V>
-
- org.qdl_lang.expressions.module.MITable<K,V>
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<K,V>,Documentable
public class MITable<K extends XKey,V extends MIWrapper> extends XTable<K,V> implements Documentable
Table of modules keyed by alias.Created by Jeff Gaynor
on 12/1/21 at 1:03 PM- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
-
Fields inherited from class org.qdl_lang.state.XTable
FDOC_CONVERT
-
-
Constructor Summary
Constructors Constructor Description MITable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VdeserializeElement(XMLEventReader xer, SerializationState serializationState, QDLInterpreter qi)VdeserializeElement(XMLUtils.ModuleAttributes moduleAttributes, SerializationState serializationState)voiddeserializeFromJSON(net.sf.json.JSONObject json, QDLInterpreter qi, SerializationState serializationState)StringfromJSONEntry(String x, SerializationState serializationState)voidfromXML(XMLEventReader xer, QDLInterpreter qi)List<String>getDocumentation(String fName, int argCount)Get the complete documentation for a specific function.List<String>getDocumentation(FKey key)UUIDgetID()StringgetXMLElementTag()StringgetXMLTableTag()List<String>listAllDocs()Return the first lines of all the function documentation this module knows.List<String>listAllDocs(String functionName)Return the first line of all documentation for the given function name.TreeSet<String>listFunctions(String regex)List first lines of function documentation given a regular expression.Vput(XKey xKey, XThing xThing)net.sf.json.JSONObjectserializeToJSON(V wrapper, SerializationState serializationState)StringtoJSONEntry(V wrapper, SerializationState serializationState)voidtoXML(XMLStreamWriter xsw, SerializationState serializationState)-
Methods inherited from class org.qdl_lang.state.XTable
convertFDOC, fromXML, getModuleUtils, put, serializeToJSON, toString
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode
-
-
-
-
Method Detail
-
toXML
public void toXML(XMLStreamWriter xsw, SerializationState serializationState) throws XMLStreamException
-
getXMLTableTag
public String getXMLTableTag()
-
getXMLElementTag
public String getXMLElementTag()
-
deserializeElement
public V deserializeElement(XMLUtils.ModuleAttributes moduleAttributes, SerializationState serializationState)
-
deserializeElement
public V deserializeElement(XMLEventReader xer, SerializationState serializationState, QDLInterpreter qi) throws XMLStreamException
- Specified by:
deserializeElementin classXTable<K extends XKey,V extends MIWrapper>- Returns:
- Throws:
XMLStreamException
-
fromXML
public void fromXML(XMLEventReader xer, QDLInterpreter qi) throws XMLStreamException
-
listFunctions
public TreeSet<String> listFunctions(String regex)
Description copied from interface:DocumentableList first lines of function documentation given a regular expression. If the regular expression is null, then no filtering is done.- Specified by:
listFunctionsin interfaceDocumentable- Returns:
-
listAllDocs
public List<String> listAllDocs()
Description copied from interface:DocumentableReturn the first lines of all the function documentation this module knows.- Specified by:
listAllDocsin interfaceDocumentable- Returns:
-
listAllDocs
public List<String> listAllDocs(String functionName)
Description copied from interface:DocumentableReturn the first line of all documentation for the given function name.- Specified by:
listAllDocsin interfaceDocumentable- Returns:
-
getDocumentation
public List<String> getDocumentation(String fName, int argCount)
Description copied from interface:DocumentableGet the complete documentation for a specific function.- Specified by:
getDocumentationin interfaceDocumentable- Returns:
-
getDocumentation
public List<String> getDocumentation(FKey key)
- Specified by:
getDocumentationin interfaceDocumentable
-
toJSONEntry
public String toJSONEntry(V wrapper, SerializationState serializationState) throws Throwable
-
serializeToJSON
public net.sf.json.JSONObject serializeToJSON(V wrapper, SerializationState serializationState) throws Throwable
-
fromJSONEntry
public String fromJSONEntry(String x, SerializationState serializationState)
-
deserializeFromJSON
public void deserializeFromJSON(net.sf.json.JSONObject json, QDLInterpreter qi, SerializationState serializationState) throws Throwable
-
-