org.eclipse.xtext.xtend2.scoping
Class ExtensionMethodsFeaturesProvider
java.lang.Object
org.eclipse.xtext.xbase.scoping.featurecalls.AbstractFeaturesForTypeProvider
org.eclipse.xtext.xtend2.scoping.ExtensionMethodsFeaturesProvider
- All Implemented Interfaces:
- IFeaturesForTypeProvider
public class ExtensionMethodsFeaturesProvider
- extends AbstractFeaturesForTypeProvider
- Author:
- Sven Efftinge - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ExtensionMethodsFeaturesProvider
public ExtensionMethodsFeaturesProvider()
setContext
public void setContext(JvmTypeReference type)
setExpectNoParameters
public void setExpectNoParameters(boolean noParameters)
getFeaturesByName
public java.lang.Iterable<JvmFeature> getFeaturesByName(java.lang.String name,
JvmTypeReference declarator,
java.lang.Iterable<JvmTypeReference> hierarchy)
collectExtensionMethods
protected void collectExtensionMethods(java.lang.Iterable<JvmTypeReference> hierarchy,
java.lang.Iterable<JvmFeature> candidates,
java.util.Collection<JvmFeature> result)
isFiltered
protected boolean isFiltered(JvmOperation candidate)
getAllFeatures
public java.lang.Iterable<JvmFeature> getAllFeatures(JvmTypeReference typeReference,
java.lang.Iterable<JvmTypeReference> hierarchy)
isExtensionProvider
public boolean isExtensionProvider()
toString
public java.lang.String toString()
- Specified by:
toString
in interface IFeaturesForTypeProvider
- Overrides:
toString
in class AbstractFeaturesForTypeProvider