Interface IFeatureLinkingCandidate
-
- All Superinterfaces:
IApplicableCandidate
,ILinkingCandidate
- All Known Subinterfaces:
ITypeLiteralLinkingCandidate
- All Known Implementing Classes:
AbstractImplicitFeature
,AmbiguousFeatureLinkingCandidate
,AppliedFeatureLinkingCandidate
,FeatureLinkingCandidate
,FollowUpError
,ImplicitFirstArgument
,ImplicitReceiver
,NullFeatureLinkingCandidate
,ResolvedFeature
,ResolvedImplicitFirstArgument
,ResolvedImplicitReceiver
,ResolvedTypeLiteral
,SuspiciouslyOverloadedCandidate
,TypeLiteralLinkingCandidate
,UnresolvableFeatureCall
public interface IFeatureLinkingCandidate extends ILinkingCandidate
Exposes additional information about the linked feature if the to-be-linked instance is anXAbstractFeatureCall
. A feature call can be linked to astatic
feature
, it can be anextension
, or atype literal
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XAbstractFeatureCall
getFeatureCall()
Returns the feature call that is linked.boolean
isExtension()
Returnstrue
if the linked feature is contributed by an extension.boolean
isStatic()
Returnstrue
if the linked feature is static.boolean
isTypeLiteral()
Returnstrue
if the feature call is linked as a type literal.-
Methods inherited from interface org.eclipse.xtext.xbase.typesystem.computation.IApplicableCandidate
validate
-
Methods inherited from interface org.eclipse.xtext.xbase.typesystem.computation.ILinkingCandidate
applyToComputationState, applyToModel, getExpression, getFeature, getPreferredCandidate, getTypeArguments
-
-
-
-
Method Detail
-
getFeatureCall
XAbstractFeatureCall getFeatureCall()
Returns the feature call that is linked.- Returns:
- the feature call.
-
isStatic
boolean isStatic()
Returnstrue
if the linked feature is static.- Returns:
- whether the feature is static.
-
isExtension
boolean isExtension()
Returnstrue
if the linked feature is contributed by an extension.- Returns:
- whether the feature is extension.
-
isTypeLiteral
boolean isTypeLiteral()
Returnstrue
if the feature call is linked as a type literal.- Returns:
- whether the feature call is a type literal rather than a real feature call.
-
-