Examples of TextOrMarkup


Examples of org.eclipse.xtext.xdoc.xdoc.TextOrMarkup

      final XdocFile file = this._parseHelperExtensions.parse(_builder);
      AbstractSection _mainSection = file.getMainSection();
      final EList<TextOrMarkup> textOrMarkup = _mainSection.getContents();
      int _size = textOrMarkup.size();
      Assert.assertEquals(1, _size);
      TextOrMarkup _head = IterableExtensions.<TextOrMarkup>head(textOrMarkup);
      EList<EObject> _contents = _head.getContents();
      EObject _head_1 = IterableExtensions.<EObject>head(_contents);
      final Table t = ((Table) _head_1);
      EList<TableRow> _rows = t.getRows();
      int _size_1 = _rows.size();
      Assert.assertEquals(1, _size_1);
      EList<TableRow> _rows_1 = t.getRows();
      TableRow _head_2 = IterableExtensions.<TableRow>head(_rows_1);
      final EList<TableData> data = _head_2.getData();
      int _size_2 = data.size();
      Assert.assertEquals(2, _size_2);
      TableData td = data.get(0);
      final EList<TextOrMarkup> contents = td.getContents();
      int _size_3 = contents.size();
      Assert.assertEquals(2, _size_3);
      TextOrMarkup _head_3 = IterableExtensions.<TextOrMarkup>head(contents);
      EList<EObject> _contents_1 = _head_3.getContents();
      EObject _head_4 = IterableExtensions.<EObject>head(_contents_1);
      TextPart text = ((TextPart) _head_4);
      String _text = text.getText();
      Assert.assertEquals(dataString, _text);
      Iterable<TextOrMarkup> _tail = IterableExtensions.<TextOrMarkup>tail(contents);
      TextOrMarkup _head_5 = IterableExtensions.<TextOrMarkup>head(_tail);
      EList<EObject> _contents_2 = _head_5.getContents();
      EObject _head_6 = IterableExtensions.<EObject>head(_contents_2);
      text = ((TextPart) _head_6);
      String _text_1 = text.getText();
      Assert.assertEquals(dataString2, _text_1);
      Iterable<TableData> _tail_1 = IterableExtensions.<TableData>tail(data);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.