public class Serializer extends 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) |
String |
serialize(org.eclipse.emf.ecore.EObject obj) |
protected void |
serialize(org.eclipse.emf.ecore.EObject obj,
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) |
String |
serialize(org.eclipse.emf.ecore.EObject obj,
SaveOptions options) |
void |
serialize(org.eclipse.emf.ecore.EObject obj,
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 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 IOException
IOExceptionpublic ITextRegionAccess serializeToRegions(org.eclipse.emf.ecore.EObject obj)
protected void serialize(org.eclipse.emf.ecore.EObject obj,
Appendable appendable,
SaveOptions options)
throws IOException
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 String serialize(org.eclipse.emf.ecore.EObject obj, SaveOptions options)
serialize in interface ISerializerpublic void serialize(org.eclipse.emf.ecore.EObject obj,
Writer writer,
SaveOptions options)
throws IOException
serialize in interface ISerializerIOExceptionpublic ReplaceRegion serializeReplacement(org.eclipse.emf.ecore.EObject obj, SaveOptions options)
serializeReplacement in interface ISerializerCopyright © 2015. All Rights Reserved.