org.eclipse.xtext.serializer.analysis
Class Context2NameFunction
java.lang.Object
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
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 |
Context2NameFunction
public Context2NameFunction()
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)