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

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

public class XConstructorProvider
extends AbstractFeaturesForTypeProvider

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
XConstructorProvider()
           
 
Method Summary
protected  void collectConstructors(JvmDeclaredType rawType, java.util.List<JvmFeature> result)
           
 java.lang.Iterable<JvmFeature> doGetFeatures(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

XConstructorProvider

public XConstructorProvider()
Method Detail

isExtensionProvider

public boolean isExtensionProvider()

getFeaturesByName

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

getAllFeatures

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

doGetFeatures

public java.lang.Iterable<JvmFeature> doGetFeatures(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.

collectConstructors

protected void collectConstructors(JvmDeclaredType rawType,
                                   java.util.List<JvmFeature> result)