Package org.eclipse.xtext.serializer
Interface ISerializer
-
- All Known Implementing Classes:
Serializer
,Serializer
public interface ISerializer
Using 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 toSerializer
in the runtime module of your language.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
serialize(org.eclipse.emf.ecore.EObject obj)
void
serialize(org.eclipse.emf.ecore.EObject obj, java.io.Writer writer, SaveOptions options)
java.lang.String
serialize(org.eclipse.emf.ecore.EObject obj, SaveOptions options)
org.eclipse.xtext.util.ReplaceRegion
serializeReplacement(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)
-
-