Package com.puppetlabs.xtext.serializer.acceptor

Examples of com.puppetlabs.xtext.serializer.acceptor.DomModelSequenceAdapter


    }
    // END FROM SUPER VERSION

    // Uses DomModelSequencer and new formatter interface
    ISerializationDiagnostic.Acceptor errors = ISerializationDiagnostic.EXCEPTION_THROWING_ACCEPTOR;
    DomModelSequenceAdapter acceptor = new DomModelSequenceAdapter(
      hiddenTokenHelper, commentConfiguration, lineSeparatorInformation, errors);
    EObject context = getContext(obj);
    serialize(obj, context, acceptor, errors);
    ReplaceRegion r = domFormatter.format(
      acceptor.getDomModel(), regionToFormat, formattingContextFactory.create(obj, formatting(options)), errors);
    writer.append(r.getText());
  }
View Full Code Here


   * @return
   */
  public IDomNode serializeToDom(EObject obj, boolean preserveWhitespace, ICommentReconcilement commentReconciliator) {
    // Uses DomModelSequencer and new formatter interface
    ISerializationDiagnostic.Acceptor errors = ISerializationDiagnostic.EXCEPTION_THROWING_ACCEPTOR;
    DomModelSequenceAdapter acceptor = new DomModelSequenceAdapter(
      hiddenTokenHelper, commentConfiguration, lineSeparatorInformation, errors);
    EObject context = getContext(obj);
    serialize(obj, context, acceptor, errors, commentReconciliator);
    return acceptor.getDomModel();
  }
View Full Code Here

TOP

Related Classes of com.puppetlabs.xtext.serializer.acceptor.DomModelSequenceAdapter

Copyright © 2018 www.massapicom. 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.