public class StackParser extends VectorParser
Stack
structures. This includes parsing nested
lists and any objects that they might store.ARRAYCLASS
Constructor and Description |
---|
StackParser()
Creates a new instance of StackParser
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
parse(org.licas_xml.abs.Element toParse)
Parse the information to return a list of the values.
|
org.licas_xml.abs.Element |
serialize(java.lang.Object toSerialize)
Serialize a ArrayList to generate an xml representation.
|
elementToVector, vectorToElement
createAddListObject, createAddMapObject, isList
public java.lang.Object parse(org.licas_xml.abs.Element toParse) throws java.lang.Exception
parse
in interface org.ai_heuristic.def.ParserDef
parse
in class VectorParser
toParse
- a description of the data.java.lang.Exception
- any error.public org.licas_xml.abs.Element serialize(java.lang.Object toSerialize) throws java.lang.Exception
serialize
in interface org.ai_heuristic.def.ParserDef
serialize
in class VectorParser
toSerialize
- the data list.java.lang.Exception
- any error.