org.eclipse.xtext.parsetree.reconstr
Class Serializer

java.lang.Object
  extended by org.eclipse.xtext.parsetree.reconstr.Serializer
All Implemented Interfaces:
ISerializer

public class Serializer
extends java.lang.Object
implements ISerializer

Author:
Moritz Eysholdt - Initial contribution and API, Jan Koehnlein

Constructor Summary
Serializer(IParseTreeConstructor ptc, IFormatter fmt, IConcreteSyntaxValidator val)
           
 
Method Summary
protected  IFormatter getFormatter()
           
protected  IParseTreeConstructor getParseTreeReconstructor()
           
protected  IConcreteSyntaxValidator getValidator()
           
 java.lang.String serialize(org.eclipse.emf.ecore.EObject obj)
           
 IParseTreeConstructor.TreeConstructionReport serialize(org.eclipse.emf.ecore.EObject obj, ITokenStream tokenStream, SaveOptions options)
           
 IParseTreeConstructor.TreeConstructionReport serialize(org.eclipse.emf.ecore.EObject obj, ITokenStream tokenStream, SerializerOptions options)
          Deprecated. 
 java.lang.String serialize(org.eclipse.emf.ecore.EObject obj, SaveOptions options)
           
 java.lang.String serialize(org.eclipse.emf.ecore.EObject obj, SerializerOptions options)
          Deprecated. 
 void serialize(org.eclipse.emf.ecore.EObject obj, java.io.Writer writer, SaveOptions options)
           
 IParseTreeConstructor.TreeConstructionReport serialize(org.eclipse.emf.ecore.EObject obj, java.io.Writer writer, SerializerOptions options)
          Deprecated. 
 ReplaceRegion serializeReplacement(org.eclipse.emf.ecore.EObject obj, SaveOptions options)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Serializer

@Inject
public Serializer(IParseTreeConstructor ptc,
                         IFormatter fmt,
                         IConcreteSyntaxValidator val)
Method Detail

serialize

public IParseTreeConstructor.TreeConstructionReport serialize(org.eclipse.emf.ecore.EObject obj,
                                                              ITokenStream tokenStream,
                                                              SaveOptions options)
                                                       throws java.io.IOException
Throws:
java.io.IOException

serialize

public void serialize(org.eclipse.emf.ecore.EObject obj,
                      java.io.Writer writer,
                      SaveOptions options)
               throws java.io.IOException
Specified by:
serialize in interface ISerializer
Throws:
java.io.IOException

serialize

public java.lang.String serialize(org.eclipse.emf.ecore.EObject obj)
Specified by:
serialize in interface ISerializer

serialize

public java.lang.String serialize(org.eclipse.emf.ecore.EObject obj,
                                  SaveOptions options)
Specified by:
serialize in interface ISerializer

serialize

@Deprecated
public IParseTreeConstructor.TreeConstructionReport serialize(org.eclipse.emf.ecore.EObject obj,
                                                                         ITokenStream tokenStream,
                                                                         SerializerOptions options)
                                                       throws java.io.IOException
Deprecated. 

Throws:
java.io.IOException

serialize

@Deprecated
public IParseTreeConstructor.TreeConstructionReport serialize(org.eclipse.emf.ecore.EObject obj,
                                                                         java.io.Writer writer,
                                                                         SerializerOptions options)
                                                       throws java.io.IOException
Deprecated. 

Throws:
java.io.IOException

serialize

@Deprecated
public java.lang.String serialize(org.eclipse.emf.ecore.EObject obj,
                                             SerializerOptions options)
Deprecated. 


serializeReplacement

public ReplaceRegion serializeReplacement(org.eclipse.emf.ecore.EObject obj,
                                          SaveOptions options)
Specified by:
serializeReplacement in interface ISerializer

getParseTreeReconstructor

protected IParseTreeConstructor getParseTreeReconstructor()

getFormatter

protected IFormatter getFormatter()

getValidator

protected IConcreteSyntaxValidator getValidator()