org.eclipse.xtext.serializer.analysis
Class Context2NameFunction

java.lang.Object
  extended by org.eclipse.xtext.serializer.analysis.Context2NameFunction
All Implemented Interfaces:
com.google.common.base.Function<org.eclipse.emf.ecore.EObject,java.lang.String>

public class Context2NameFunction
extends java.lang.Object
implements com.google.common.base.Function<org.eclipse.emf.ecore.EObject,java.lang.String>

Author:
Moritz Eysholdt - Initial contribution and API

Constructor Summary
Context2NameFunction()
           
 
Method Summary
 java.lang.String apply(org.eclipse.emf.ecore.EObject from)
           
 java.lang.String getContextName(Action ctx)
           
 java.lang.String getContextName(org.eclipse.emf.ecore.EObject ctx)
           
 java.lang.String getContextName(ParserRule ctx)
           
 java.lang.String getUniqueActionName(Action action)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Constructor Detail

Context2NameFunction

public Context2NameFunction()
Method Detail

apply

public java.lang.String apply(org.eclipse.emf.ecore.EObject from)
Specified by:
apply in interface com.google.common.base.Function<org.eclipse.emf.ecore.EObject,java.lang.String>

getContextName

public java.lang.String getContextName(Action ctx)

getContextName

public java.lang.String getContextName(org.eclipse.emf.ecore.EObject ctx)

getContextName

public java.lang.String getContextName(ParserRule ctx)

getUniqueActionName

public java.lang.String getUniqueActionName(Action action)