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)
           
protected  java.lang.String serialize(INode node)
           
 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

serialize

protected java.lang.String serialize(INode node)

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