Class AbstractResolvedFeature<T extends org.eclipse.xtext.common.types.JvmFeature>
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.override.AbstractResolvedFeature<T>
-
- All Implemented Interfaces:
IResolvedFeature
- Direct Known Subclasses:
AbstractResolvedExecutable,ResolvedField
public abstract class AbstractResolvedFeature<T extends org.eclipse.xtext.common.types.JvmFeature> extends java.lang.Object implements IResolvedFeature
-
-
Constructor Summary
Constructors Constructor Description AbstractResolvedFeature(T declaration, LightweightTypeReference contextType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<org.eclipse.xtext.common.types.JvmTypeParameter,LightweightMergedBoundTypeArgument>computeContextTypeParameterMapping()LightweightTypeReferencegetContextType()Returns the current context type.protected java.util.Map<org.eclipse.xtext.common.types.JvmTypeParameter,LightweightMergedBoundTypeArgument>getContextTypeParameterMapping()TgetDeclaration()Returns the declared feature that is resolved.LightweightTypeReferencegetResolvedDeclarator()Returns the resolved type of the declarator of thisdeclaration.protected LightweightTypeReferencegetResolvedReference(org.eclipse.xtext.common.types.JvmTypeReference unresolved)protected java.util.List<LightweightTypeReference>getResolvedReferences(java.util.List<org.eclipse.xtext.common.types.JvmTypeReference> unresolved)protected TypeParameterSubstitutor<?>getSubstitutor()protected booleanisRawTypeInheritance()protected booleanisResolvedTypeParameter(org.eclipse.xtext.common.types.JvmTypeParameter typeParameter)Allows to refuse a certain type parameter to be substituted.protected booleanisResolvedTypeParameter(LightweightTypeReference typeReference, org.eclipse.xtext.common.types.JvmTypeParameter typeParameter)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.xtext.xbase.typesystem.override.IResolvedFeature
getResolvedErasureSignature, getResolvedSignature, getSimpleSignature
-
-
-
-
Constructor Detail
-
AbstractResolvedFeature
public AbstractResolvedFeature(T declaration, LightweightTypeReference contextType)
-
-
Method Detail
-
getDeclaration
public T getDeclaration()
Description copied from interface:IResolvedFeatureReturns the declared feature that is resolved.- Specified by:
getDeclarationin interfaceIResolvedFeature- Returns:
- the declaration.
-
getContextType
public LightweightTypeReference getContextType()
Description copied from interface:IResolvedFeatureReturns the current context type.- Specified by:
getContextTypein interfaceIResolvedFeature- Returns:
- the context.
-
getResolvedDeclarator
public LightweightTypeReference getResolvedDeclarator()
Description copied from interface:IResolvedFeatureReturns the resolved type of the declarator of thisdeclaration.- Specified by:
getResolvedDeclaratorin interfaceIResolvedFeature
-
getContextTypeParameterMapping
protected java.util.Map<org.eclipse.xtext.common.types.JvmTypeParameter,LightweightMergedBoundTypeArgument> getContextTypeParameterMapping()
-
computeContextTypeParameterMapping
protected java.util.Map<org.eclipse.xtext.common.types.JvmTypeParameter,LightweightMergedBoundTypeArgument> computeContextTypeParameterMapping()
-
getResolvedReference
protected LightweightTypeReference getResolvedReference(org.eclipse.xtext.common.types.JvmTypeReference unresolved)
-
getResolvedReferences
protected java.util.List<LightweightTypeReference> getResolvedReferences(java.util.List<org.eclipse.xtext.common.types.JvmTypeReference> unresolved)
-
isResolvedTypeParameter
protected boolean isResolvedTypeParameter(org.eclipse.xtext.common.types.JvmTypeParameter typeParameter)
Allows to refuse a certain type parameter to be substituted.- Parameters:
typeParameter- the type parameter that should be substituted.- Returns:
falseif the parameter may be substituted.trueif it should be preserved.
-
isResolvedTypeParameter
protected boolean isResolvedTypeParameter(LightweightTypeReference typeReference, org.eclipse.xtext.common.types.JvmTypeParameter typeParameter)
-
getSubstitutor
protected TypeParameterSubstitutor<?> getSubstitutor()
-
isRawTypeInheritance
protected boolean isRawTypeInheritance()
-
-