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 |
Constructor Summary |
AliasAnalysis(org.eclipse.emf.ecore.resource.Resource resource)
|
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 |
AliasAnalysis
public AliasAnalysis(org.eclipse.emf.ecore.resource.Resource resource)
dispose
public static void dispose(org.eclipse.emf.ecore.resource.Resource resource)
getAdapter
public static AliasAnalysis getAdapter(org.eclipse.emf.ecore.resource.Resource resource)
dispose
public void dispose()
getAlias
public java.lang.String getAlias(org.eclipse.emf.ecore.EObject eObject)
- Return the alias for eObject.
getDefaultAlias
protected java.lang.String getDefaultAlias(java.lang.String name)
getPath
public java.util.List<PathElement> getPath(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