Class ExtensionScopeHelper
- java.lang.Object
-
- org.eclipse.xtext.xbase.scoping.batch.ExtensionScopeHelper
-
public class ExtensionScopeHelper extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classExtensionScopeHelper.IsResolvedKnownTypeParamHelperDetermines if a reference is fully resolved or uses only type parameters from the current context.
-
Constructor Summary
Constructors Constructor Description ExtensionScopeHelper(LightweightTypeReference argumentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisMatchingFirstParameter(org.eclipse.xtext.common.types.JvmOperation feature)protected booleanisMatchingFirstParameterDeepCheck(org.eclipse.xtext.common.types.JvmOperation feature)Check the type of the first parameter against the argument type rather than therawArgumentType.protected booleanisPossibleExtension(org.eclipse.xtext.common.types.JvmFeature feature)Features that are valid extensions are alloperationswith at least oneparameter.protected booleanisResolvedOrKnownTypeParam(LightweightTypeReference type)protected booleanisResolvedReceiverType()
-
-
-
Constructor Detail
-
ExtensionScopeHelper
public ExtensionScopeHelper(LightweightTypeReference argumentType)
-
-
Method Detail
-
isPossibleExtension
protected boolean isPossibleExtension(org.eclipse.xtext.common.types.JvmFeature feature)
Features that are valid extensions are alloperationswith at least oneparameter.
-
isResolvedReceiverType
protected boolean isResolvedReceiverType()
-
isMatchingFirstParameterDeepCheck
protected boolean isMatchingFirstParameterDeepCheck(org.eclipse.xtext.common.types.JvmOperation feature)
Check the type of the first parameter against the argument type rather than therawArgumentType. Should not be used during linking since we need proper error messages there for type mismatches.
-
isMatchingFirstParameter
protected boolean isMatchingFirstParameter(org.eclipse.xtext.common.types.JvmOperation feature)
-
isResolvedOrKnownTypeParam
protected boolean isResolvedOrKnownTypeParam(LightweightTypeReference type)
-
-