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

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

public abstract class AbstractFeaturesForTypeProvider
extends java.lang.Object
implements IFeaturesForTypeProvider

Author:
Sven Efftinge - Initial contribution and API

Constructor Summary
AbstractFeaturesForTypeProvider()
           
 
Method Summary
protected  IRawTypeHelper getRawTypeHelper()
           
protected  TypeConformanceComputer getTypeConformanceComputer()
           
protected  TypeReferences getTypeReferences()
           
protected  boolean isSameTypeOrAssignableToUpperBound(JvmTypeReference first, JvmTypeReference second)
          Returns true if the the first reference points to the same rawtype as the second reference's erasure.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.xtext.xbase.scoping.featurecalls.IFeaturesForTypeProvider
getAllFeatures, getFeaturesByName, isExtensionProvider
 

Constructor Detail

AbstractFeaturesForTypeProvider

public AbstractFeaturesForTypeProvider()
Method Detail

isSameTypeOrAssignableToUpperBound

protected boolean isSameTypeOrAssignableToUpperBound(JvmTypeReference first,
                                                     JvmTypeReference second)
Returns true if the the first reference points to the same rawtype as the second reference's erasure. In other words, the method returns true for the following cases:
 isSameTypeOrAssignableToUpperBound(String, String)
 isSameTypeOrAssignableToUpperBound(String, T extends String)
 
and false for
 isSameTypeOrAssignableToUpperBound(CharSequence, String)
 isSameTypeOrAssignableToUpperBound(Object, String)
 


getTypeConformanceComputer

protected TypeConformanceComputer getTypeConformanceComputer()

getTypeReferences

protected TypeReferences getTypeReferences()

getRawTypeHelper

protected IRawTypeHelper getRawTypeHelper()

toString

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