org.eclipse.xtext.serializer.tokens
Class ValueSerializer

java.lang.Object
  extended by org.eclipse.xtext.serializer.tokens.ValueSerializer
All Implemented Interfaces:
IValueSerializer

public class ValueSerializer
extends java.lang.Object
implements IValueSerializer

Author:
Moritz Eysholdt - Initial contribution and API

Field Summary
protected  ITokenDiagnosticProvider diagnostics
           
protected  TokenUtil tokenUtil
           
 
Constructor Summary
ValueSerializer()
           
 
Method Summary
 boolean isValid(org.eclipse.emf.ecore.EObject context, RuleCall ruleCall, java.lang.Object value, ISerializationDiagnostic.Acceptor errors)
           
 java.lang.String serializeAssignedValue(org.eclipse.emf.ecore.EObject context, RuleCall ruleCall, java.lang.Object value, INode node, ISerializationDiagnostic.Acceptor errors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

diagnostics

@Inject
protected ITokenDiagnosticProvider diagnostics

tokenUtil

@Inject
protected TokenUtil tokenUtil
Constructor Detail

ValueSerializer

public ValueSerializer()
Method Detail

isValid

public boolean isValid(org.eclipse.emf.ecore.EObject context,
                       RuleCall ruleCall,
                       java.lang.Object value,
                       ISerializationDiagnostic.Acceptor errors)
Specified by:
isValid in interface IValueSerializer

serializeAssignedValue

public java.lang.String serializeAssignedValue(org.eclipse.emf.ecore.EObject context,
                                               RuleCall ruleCall,
                                               java.lang.Object value,
                                               INode node,
                                               ISerializationDiagnostic.Acceptor errors)
Specified by:
serializeAssignedValue in interface IValueSerializer