org.eclipse.ocl.examples.xtext.base.pivot2cs
Class AliasAnalysis
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterImpl
org.eclipse.ocl.examples.xtext.base.pivot2cs.AliasAnalysis
- All Implemented Interfaces:
- org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal
public class AliasAnalysis
- extends org.eclipse.emf.common.notify.impl.AdapterImpl
An AliasAnalysis is dynamically created to support the serialization
of cross-references following a Pivot to CS conversion. It ensures the
resource-wide uniqueness of aliases for package names.
Uniqueness is achieved with respect to all names to avoid the complexity
of considering which name usages are not actually conflicting.
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
org.eclipse.emf.common.notify.Adapter.Internal |
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
target |
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
getTarget, notifyChanged, setTarget, unsetTarget |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
metaModelManager
@NonNull
protected final MetaModelManager metaModelManager
AliasAnalysis
public AliasAnalysis(@NonNull
org.eclipse.emf.ecore.resource.Resource resource,
@NonNull
MetaModelManager metaModelManager)
dispose
public static void dispose(@NonNull
org.eclipse.emf.ecore.resource.Resource resource)
getAdapter
@NonNull
public static AliasAnalysis getAdapter(@NonNull
org.eclipse.emf.ecore.resource.Resource resource)
getAdapter
@NonNull
public static AliasAnalysis getAdapter(@NonNull
org.eclipse.emf.ecore.resource.Resource resource,
@NonNull
MetaModelManager metaModelManager)
dispose
public void dispose()
getAlias
@Deprecated
@Nullable
public java.lang.String getAlias(@NonNull
org.eclipse.emf.ecore.EObject eObject)
- Deprecated.
- Return the alias for eObject, or null if there is none.
getAlias
@Nullable
public java.lang.String getAlias(@NonNull
org.eclipse.emf.ecore.EObject eObject,
@Nullable
java.lang.String hint)
- Return the alias for eObject, using a non-null hint as a stem for auto-generation, or null if there is none.
getAliases
@NonNull
public java.lang.Iterable<DomainPackage> getAliases()
- Return the alias for eObject.
getDefaultAlias
@NonNull
protected java.lang.String getDefaultAlias(@Nullable
java.lang.String name)
getPath
@NonNull
public java.util.List<PathElement> getPath(@NonNull
Element eObject)
isAdapterForType
public boolean isAdapterForType(java.lang.Object type)
- Specified by:
isAdapterForType
in interface org.eclipse.emf.common.notify.Adapter
- Overrides:
isAdapterForType
in class org.eclipse.emf.common.notify.impl.AdapterImpl