Example #1
0
void FilterExpr::serializeXML(XMLSerializer &serializer) {
  XMLSerializer::attributes_t attrs;

  addCommonAttributes(attrs);
  serializer.startElement("filter", attrs);
  serializeChildren(serializer);
  serializer.endElement();
}
Example #2
0
void ForeachStmt::serializeXML(XMLSerializer &serializer) {
  XMLSerializer::attributes_t attrs;

  addCommonAttributes(attrs);
  serializer.startElement("foreach", attrs);
  serializeChildren(serializer);
  serializer.endElement();
}
Example #3
0
void ReturnStmt::serializeXML(XMLSerializer &serializer) {
  XMLSerializer::attributes_t attrs;

  addCommonAttributes(attrs);
  serializer.startElement("return", attrs);
  serializeChildren(serializer);
  serializer.endElement();
}
Example #4
0
void IntPredicate::serializeXML(XMLSerializer &serializer) {
  XMLSerializer::attributes_t attrs;

  addCommonAttributes(attrs);
  serializer.startElement("int-predicate", attrs);
  serializeChildren(serializer);
  serializer.endElement();
}
Example #5
0
void SequenceExpr::serializeXML(XMLSerializer &serializer) {
  XMLSerializer::attributes_t attrs;

  addCommonAttributes(attrs);
  serializer.startElement("sequence", attrs);
  serializeChildren(serializer);
  serializer.endElement();
}
Example #6
0
void BinaryExpr::serializeXML(XMLSerializer &serializer) {
  XMLSerializer::attributes_t attrs;

  attrs["op"] = getOp();
  addCommonAttributes(attrs);
  serializer.startElement("binexpr", attrs);
  serializeChildren(serializer);
  serializer.endElement();
}
Example #7
0
void TypeTest::serializeXML(XMLSerializer &serializer) {
  XMLSerializer::attributes_t attrs;

  attrs["type"] = Type::get(getTypeTest()).getName();

  addCommonAttributes(attrs);
  serializer.startElement("typetest", attrs);
  serializeChildren(serializer);
  serializer.endElement();
}
Example #8
0
void ImportDecl::serializeXML(XMLSerializer &serializer) {
  XMLSerializer::attributes_t attrs;

  attrs["name"] = name.getFullRealName();
  if (name.hasPseudonym()) attrs["as"] = name.getFullName();

  addCommonAttributes(attrs);
  serializer.startElement("import", attrs);
  serializeChildren(serializer);
  serializer.endElement();
}
Example #9
0
void Argument::serializeXML(XMLSerializer &serializer) {
  XMLSerializer::attributes_t attrs;

  attrs["name"] = arg.name.getName();
  attrs["type"] = Type::get(arg.type).getName();

  addCommonAttributes(attrs);
  serializer.startElement("arg", attrs);
  serializeChildren(serializer);
  serializer.endElement();
}