public class Serializer extends java.lang.Object implements ISerializer
Modifier and Type | Field and Description |
---|---|
protected IContextFinder |
contextFinder |
protected IFormatter |
formatter |
protected IGrammarAccess |
grammar |
protected com.google.inject.Provider<IHiddenTokenSequencer> |
hiddenTokenSequencerProvider |
protected com.google.inject.Provider<ISemanticSequencer> |
semanticSequencerProvider |
protected com.google.inject.Provider<ISyntacticSequencer> |
syntacticSequencerProvider |
protected IConcreteSyntaxValidator |
validator |
Constructor and Description |
---|
Serializer() |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.emf.ecore.EObject |
getContext(org.eclipse.emf.ecore.EObject semanticObject)
Deprecated.
|
protected ISerializationContext |
getIContext(org.eclipse.emf.ecore.EObject semanticObject) |
java.lang.String |
serialize(org.eclipse.emf.ecore.EObject obj) |
protected void |
serialize(org.eclipse.emf.ecore.EObject obj,
java.lang.Appendable appendable,
SaveOptions options) |
protected void |
serialize(org.eclipse.emf.ecore.EObject semanticObject,
org.eclipse.emf.ecore.EObject context,
ISequenceAcceptor tokens,
ISerializationDiagnostic.Acceptor errors)
|
protected void |
serialize(org.eclipse.emf.ecore.EObject obj,
ITokenStream tokenStream,
SaveOptions options) |
java.lang.String |
serialize(org.eclipse.emf.ecore.EObject obj,
SaveOptions options) |
void |
serialize(org.eclipse.emf.ecore.EObject obj,
java.io.Writer writer,
SaveOptions options) |
protected void |
serialize(ISerializationContext context,
org.eclipse.emf.ecore.EObject semanticObject,
ISequenceAcceptor tokens,
ISerializationDiagnostic.Acceptor errors) |
ReplaceRegion |
serializeReplacement(org.eclipse.emf.ecore.EObject obj,
SaveOptions options) |
ITextRegionAccess |
serializeToRegions(org.eclipse.emf.ecore.EObject obj) |
@Inject(optional=true) protected IFormatter formatter
@Inject protected com.google.inject.Provider<ISemanticSequencer> semanticSequencerProvider
@Inject protected com.google.inject.Provider<ISyntacticSequencer> syntacticSequencerProvider
@Inject protected com.google.inject.Provider<IHiddenTokenSequencer> hiddenTokenSequencerProvider
@Inject protected IGrammarAccess grammar
@Inject protected IContextFinder contextFinder
@Inject protected IConcreteSyntaxValidator validator
public java.lang.String serialize(org.eclipse.emf.ecore.EObject obj)
serialize
in interface ISerializer
@Deprecated protected void serialize(org.eclipse.emf.ecore.EObject semanticObject, org.eclipse.emf.ecore.EObject context, ISequenceAcceptor tokens, ISerializationDiagnostic.Acceptor errors)
protected void serialize(ISerializationContext context, org.eclipse.emf.ecore.EObject semanticObject, ISequenceAcceptor tokens, ISerializationDiagnostic.Acceptor errors)
protected void serialize(org.eclipse.emf.ecore.EObject obj, ITokenStream tokenStream, SaveOptions options) throws java.io.IOException
java.io.IOException
public ITextRegionAccess serializeToRegions(org.eclipse.emf.ecore.EObject obj)
protected void serialize(org.eclipse.emf.ecore.EObject obj, java.lang.Appendable appendable, SaveOptions options) throws java.io.IOException
java.io.IOException
@Deprecated protected org.eclipse.emf.ecore.EObject getContext(org.eclipse.emf.ecore.EObject semanticObject)
getIContext(EObject)
protected ISerializationContext getIContext(org.eclipse.emf.ecore.EObject semanticObject)
public java.lang.String serialize(org.eclipse.emf.ecore.EObject obj, SaveOptions options)
serialize
in interface ISerializer
public void serialize(org.eclipse.emf.ecore.EObject obj, java.io.Writer writer, SaveOptions options) throws java.io.IOException
serialize
in interface ISerializer
java.io.IOException
public ReplaceRegion serializeReplacement(org.eclipse.emf.ecore.EObject obj, SaveOptions options)
serializeReplacement
in interface ISerializer