Class SyntheticNameClashResolver


  • public class SyntheticNameClashResolver
    extends java.lang.Object
    Renames synthetic elements to avoid name clashes. Dispatch methods are handled by validation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean collides​(org.eclipse.xtext.common.types.JvmIdentifiableElement element, java.lang.String currentName, com.google.common.collect.Multimap<java.lang.String,​org.eclipse.xtext.common.types.JvmIdentifiableElement> scope)  
      protected boolean isAnonymousExtensionField​(org.eclipse.emf.ecore.EObject source)  
      protected boolean isCreateExtension​(org.eclipse.emf.ecore.EObject source)  
      protected boolean isRenameable​(org.eclipse.xtext.common.types.JvmIdentifiableElement element)  
      void resolveNameClashes​(org.eclipse.xtext.common.types.JvmGenericType type)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SyntheticNameClashResolver

        public SyntheticNameClashResolver()
    • Method Detail

      • resolveNameClashes

        public void resolveNameClashes​(org.eclipse.xtext.common.types.JvmGenericType type)
      • collides

        protected boolean collides​(org.eclipse.xtext.common.types.JvmIdentifiableElement element,
                                   java.lang.String currentName,
                                   com.google.common.collect.Multimap<java.lang.String,​org.eclipse.xtext.common.types.JvmIdentifiableElement> scope)
      • isRenameable

        protected boolean isRenameable​(org.eclipse.xtext.common.types.JvmIdentifiableElement element)
      • isAnonymousExtensionField

        protected boolean isAnonymousExtensionField​(org.eclipse.emf.ecore.EObject source)
      • isCreateExtension

        protected boolean isCreateExtension​(org.eclipse.emf.ecore.EObject source)