org.eclipse.xtext.parsetree.reconstr.impl
Class EnumLiteralSerializer

java.lang.Object
  extended by org.eclipse.xtext.parsetree.reconstr.impl.EnumLiteralSerializer
All Implemented Interfaces:
ITokenSerializer, ITokenSerializer.IEnumLiteralSerializer

public class EnumLiteralSerializer
extends java.lang.Object
implements ITokenSerializer.IEnumLiteralSerializer

Author:
Moritz Eysholdt - Initial contribution and API

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.parsetree.reconstr.ITokenSerializer
ITokenSerializer.ICrossReferenceSerializer, ITokenSerializer.IEnumLiteralSerializer, ITokenSerializer.IErrorAcceptor, ITokenSerializer.IKeywordSerializer, ITokenSerializer.IValueSerializer
 
Field Summary
 
Fields inherited from interface org.eclipse.xtext.parsetree.reconstr.ITokenSerializer
KEEP_VALUE_FROM_NODE_MODEL
 
Constructor Summary
EnumLiteralSerializer()
           
 
Method Summary
 boolean equalsOrReplacesNode(org.eclipse.emf.ecore.EObject context, RuleCall ruleCall, java.lang.Object value, INode node)
           
protected  Keyword getLiteral(org.eclipse.emf.ecore.EObject context, RuleCall ruleCall, java.lang.Object value)
           
protected  Keyword getLiteral(INode node)
           
 boolean isValid(org.eclipse.emf.ecore.EObject context, RuleCall ruleCall, java.lang.Object value, ITokenSerializer.IErrorAcceptor errorAcceptor)
           
 java.lang.String serializeAssignedEnumLiteral(org.eclipse.emf.ecore.EObject context, RuleCall ruleCall, java.lang.Object value, INode node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumLiteralSerializer

public EnumLiteralSerializer()
Method Detail

equalsOrReplacesNode

public boolean equalsOrReplacesNode(org.eclipse.emf.ecore.EObject context,
                                    RuleCall ruleCall,
                                    java.lang.Object value,
                                    INode node)
Specified by:
equalsOrReplacesNode in interface ITokenSerializer.IEnumLiteralSerializer

getLiteral

protected Keyword getLiteral(INode node)

getLiteral

protected Keyword getLiteral(org.eclipse.emf.ecore.EObject context,
                             RuleCall ruleCall,
                             java.lang.Object value)

isValid

public boolean isValid(org.eclipse.emf.ecore.EObject context,
                       RuleCall ruleCall,
                       java.lang.Object value,
                       ITokenSerializer.IErrorAcceptor errorAcceptor)
Specified by:
isValid in interface ITokenSerializer.IEnumLiteralSerializer

serializeAssignedEnumLiteral

public java.lang.String serializeAssignedEnumLiteral(org.eclipse.emf.ecore.EObject context,
                                                     RuleCall ruleCall,
                                                     java.lang.Object value,
                                                     INode node)
Specified by:
serializeAssignedEnumLiteral in interface ITokenSerializer.IEnumLiteralSerializer