Package org.eclipse.xtext.serializer
Interface ISerializer
-
- All Known Implementing Classes:
Serializer,Serializer
public interface ISerializerUsing a grammar, the Serializer converts EMF models to text. This is inverse to the parser converting text into EMF models. For reasons of backwards compatibility, this interface is still bound toSerializer. It is recommended to bind it toSerializerin the runtime module of your language.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringserialize(org.eclipse.emf.ecore.EObject obj)voidserialize(org.eclipse.emf.ecore.EObject obj, java.io.Writer writer, SaveOptions options)java.lang.Stringserialize(org.eclipse.emf.ecore.EObject obj, SaveOptions options)org.eclipse.xtext.util.ReplaceRegionserializeReplacement(org.eclipse.emf.ecore.EObject obj, SaveOptions options)
-
-
-
Method Detail
-
serialize
java.lang.String serialize(org.eclipse.emf.ecore.EObject obj)
-
serialize
java.lang.String serialize(org.eclipse.emf.ecore.EObject obj, SaveOptions options)
-
serialize
void serialize(org.eclipse.emf.ecore.EObject obj, java.io.Writer writer, SaveOptions options) throws java.io.IOException- Throws:
java.io.IOException
-
serializeReplacement
org.eclipse.xtext.util.ReplaceRegion serializeReplacement(org.eclipse.emf.ecore.EObject obj, SaveOptions options)
-
-