org.eclipse.xtext.parsetree.reconstr.impl
Class EnumLiteralSerializer
java.lang.Object
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
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 |
EnumLiteralSerializer
public EnumLiteralSerializer()
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