org.eclipse.xtext.common.types.access.impl
Class PrimitiveMirror
java.lang.Object
org.eclipse.xtext.common.types.access.impl.AbstractClassMirror
org.eclipse.xtext.common.types.access.impl.PrimitiveMirror
- All Implemented Interfaces:
- IMirror, IMirrorExtension, IClassMirror, IFragmentProvider
public class PrimitiveMirror
- extends AbstractClassMirror
- Author:
- Sebastian Zarnekow - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrimitiveMirror
public PrimitiveMirror(ITypeFactory<java.lang.Class<?>> typeProvider)
getEObject
public org.eclipse.emf.ecore.EObject getEObject(org.eclipse.emf.ecore.resource.Resource resource,
java.lang.String fragment,
IFragmentProvider.Fallback fallback)
- Description copied from interface:
IFragmentProvider
- Locates an EObject in a resource by its fragment.
- Specified by:
getEObject
in interface IFragmentProvider
- Overrides:
getEObject
in class AbstractClassMirror
- Parameters:
resource
- the resource serves as context instance.fragment
- the fragment of the object.fallback
- if the fragment was not created by this provider, delegate the
resolution to the default implementation of
Resource.getEObject(String)
.
- Returns:
- the resolved object or
null
if the fragment could not be resolved to an object.
getTypeName
protected java.lang.String getTypeName()
- Specified by:
getTypeName
in class AbstractClassMirror
initialize
public void initialize(TypeResource typeResource)
isSealed
public boolean isSealed()
- Since:
- 2.3