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

java.lang.Object
  extended by org.eclipse.xtext.xbase.scoping.featurecalls.AbstractFeaturesForTypeProvider
      extended by org.eclipse.xtext.xbase.scoping.featurecalls.DefaultFeaturesForTypeProvider
All Implemented Interfaces:
IFeaturesForTypeProvider

public class DefaultFeaturesForTypeProvider
extends AbstractFeaturesForTypeProvider

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

Constructor Summary
DefaultFeaturesForTypeProvider()
           
 
Method Summary
protected  void collectFeatures(java.lang.String name, JvmType rawType, java.util.List<JvmFeature> result)
           
protected  java.lang.Iterable<JvmFeature> doGetFeaturesByName(java.lang.String name, JvmTypeReference declarator, java.lang.Iterable<JvmTypeReference> hierarchy)
           
 java.lang.Iterable<JvmFeature> getAllFeatures(JvmTypeReference declarator, java.lang.Iterable<JvmTypeReference> hierarchy)
           
 java.lang.Iterable<JvmFeature> getFeaturesByName(java.lang.String name, JvmTypeReference declarator, java.lang.Iterable<JvmTypeReference> hierarchy)
           
 boolean isExtensionProvider()
           
 
Methods inherited from class org.eclipse.xtext.xbase.scoping.featurecalls.AbstractFeaturesForTypeProvider
getRawTypeHelper, getTypeConformanceComputer, getTypeReferences, isSameTypeOrAssignableToUpperBound, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultFeaturesForTypeProvider

public DefaultFeaturesForTypeProvider()
Method Detail

getFeaturesByName

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

doGetFeaturesByName

protected java.lang.Iterable<JvmFeature> doGetFeaturesByName(java.lang.String name,
                                                             JvmTypeReference declarator,
                                                             java.lang.Iterable<JvmTypeReference> hierarchy)
Parameters:
name - the name of the requested feature. May be null.
declarator - the feature declarator. Never null.
hierarchy - the type hierarchy of declarator. May be explored by custom implementations for whatever purpose.
Returns:
the matching features. Never null.

collectFeatures

protected void collectFeatures(java.lang.String name,
                               JvmType rawType,
                               java.util.List<JvmFeature> result)

getAllFeatures

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

isExtensionProvider

public boolean isExtensionProvider()