org.eclipse.xtext.serializer.tokens
Class ValueSerializer
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
diagnostics
@Inject
protected ITokenDiagnosticProvider diagnostics
tokenUtil
@Inject
protected TokenUtil tokenUtil
ValueSerializer
public ValueSerializer()
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