org.eclipse.xtext.xbase.scoping.featurecalls
Class AbstractStaticMethodsFeatureForTypeProvider

java.lang.Object
  extended by org.eclipse.xtext.xbase.scoping.featurecalls.AbstractFeaturesForTypeProvider
      extended by org.eclipse.xtext.xbase.scoping.featurecalls.AbstractStaticMethodsFeatureForTypeProvider
All Implemented Interfaces:
IFeaturesForTypeProvider
Direct Known Subclasses:
StaticallyImportedFeaturesProvider, StaticImplicitMethodsFeatureForTypeProvider

public abstract class AbstractStaticMethodsFeatureForTypeProvider
extends AbstractFeaturesForTypeProvider

Author:
Sven Efftinge - Initial contribution and API, Sebastian Zarnekow

Field Summary
protected  IResourceScopeCache cache
           
protected  org.eclipse.emf.ecore.resource.Resource context
           
 
Constructor Summary
AbstractStaticMethodsFeatureForTypeProvider()
           
 
Method Summary
protected  void collectFeatures(java.lang.String name, java.lang.Iterable<JvmTypeReference> hierarchy, java.util.Collection<JvmFeature> result)
           
 java.lang.Iterable<JvmFeature> getAllFeatures(JvmTypeReference declarator, java.lang.Iterable<JvmTypeReference> hierarchy)
           
protected  org.eclipse.emf.ecore.resource.Resource getContext()
           
protected  java.lang.String getContextURI()
           
 java.lang.Iterable<JvmFeature> getFeaturesByName(java.lang.String name, JvmTypeReference declarator, java.lang.Iterable<JvmTypeReference> hierarchy)
           
protected  java.util.Map<JvmTypeReference,java.util.Collection<JvmTypeReference>> getVisibleJvmTypesContainingStaticMethods(java.lang.Iterable<JvmTypeReference> hierarchy)
           
protected abstract  java.util.Map<JvmTypeReference,java.util.Collection<java.lang.String>> getVisibleTypesContainingStaticMethods(java.lang.Iterable<JvmTypeReference> hierarchy)
           
 boolean isExtensionProvider()
           
protected  boolean isMatchingExtension(JvmTypeReference expectedParameterTypeReference, JvmOperation operation)
           
 void setExtensionProvider(boolean isExtensionProvider)
           
 void setResourceContext(org.eclipse.emf.ecore.resource.Resource context)
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.xtext.xbase.scoping.featurecalls.AbstractFeaturesForTypeProvider
getRawTypeHelper, getTypeConformanceComputer, getTypeReferences, isSameTypeOrAssignableToUpperBound
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cache

@Inject
protected IResourceScopeCache cache

context

protected org.eclipse.emf.ecore.resource.Resource context
Constructor Detail

AbstractStaticMethodsFeatureForTypeProvider

public AbstractStaticMethodsFeatureForTypeProvider()
Method Detail

getFeaturesByName

public java.lang.Iterable<JvmFeature> getFeaturesByName(java.lang.String name,
                                                        JvmTypeReference declarator,
                                                        java.lang.Iterable<JvmTypeReference> hierarchy)

getAllFeatures

public final java.lang.Iterable<JvmFeature> getAllFeatures(JvmTypeReference declarator,
                                                           java.lang.Iterable<JvmTypeReference> hierarchy)

collectFeatures

protected void collectFeatures(java.lang.String name,
                               java.lang.Iterable<JvmTypeReference> hierarchy,
                               java.util.Collection<JvmFeature> result)

isMatchingExtension

protected boolean isMatchingExtension(JvmTypeReference expectedParameterTypeReference,
                                      JvmOperation operation)

getVisibleJvmTypesContainingStaticMethods

protected java.util.Map<JvmTypeReference,java.util.Collection<JvmTypeReference>> getVisibleJvmTypesContainingStaticMethods(java.lang.Iterable<JvmTypeReference> hierarchy)

getVisibleTypesContainingStaticMethods

protected abstract java.util.Map<JvmTypeReference,java.util.Collection<java.lang.String>> getVisibleTypesContainingStaticMethods(java.lang.Iterable<JvmTypeReference> hierarchy)

setResourceContext

public void setResourceContext(org.eclipse.emf.ecore.resource.Resource context)

getContext

protected org.eclipse.emf.ecore.resource.Resource getContext()

isExtensionProvider

public boolean isExtensionProvider()

setExtensionProvider

public void setExtensionProvider(boolean isExtensionProvider)

toString

public java.lang.String toString()
Specified by:
toString in interface IFeaturesForTypeProvider
Overrides:
toString in class AbstractFeaturesForTypeProvider

getContextURI

protected java.lang.String getContextURI()