org.eclipse.xtext.xbase.scoping.featurecalls
Class DefaultFeaturesForTypeProvider
java.lang.Object
org.eclipse.xtext.xbase.scoping.featurecalls.AbstractFeaturesForTypeProvider
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DefaultFeaturesForTypeProvider
public DefaultFeaturesForTypeProvider()
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()