org.eclipse.xtext.common.types.access.impl
Class PrimitiveMirror

java.lang.Object
  extended by org.eclipse.xtext.common.types.access.impl.AbstractClassMirror
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.resource.IFragmentProvider
IFragmentProvider.Fallback
 
Constructor Summary
PrimitiveMirror(ITypeFactory<java.lang.Class<?>> typeProvider)
           
 
Method Summary
 org.eclipse.emf.ecore.EObject getEObject(org.eclipse.emf.ecore.resource.Resource resource, java.lang.String fragment, IFragmentProvider.Fallback fallback)
          Locates an EObject in a resource by its fragment.
protected  java.lang.String getTypeName()
           
 void initialize(TypeResource typeResource)
           
 boolean isSealed()
           
 
Methods inherited from class org.eclipse.xtext.common.types.access.impl.AbstractClassMirror
findMember, getArrayEObject, getFragment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimitiveMirror

public PrimitiveMirror(ITypeFactory<java.lang.Class<?>> typeProvider)
Method Detail

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