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 astaticfeature, it can be anextension, or atype literal.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XAbstractFeatureCallgetFeatureCall()Returns the feature call that is linked.booleanisExtension()Returnstrueif the linked feature is contributed by an extension.booleanisStatic()Returnstrueif the linked feature is static.booleanisTypeLiteral()Returnstrueif 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()
Returnstrueif the linked feature is static.- Returns:
- whether the feature is static.
-
isExtension
boolean isExtension()
Returnstrueif the linked feature is contributed by an extension.- Returns:
- whether the feature is extension.
-
isTypeLiteral
boolean isTypeLiteral()
Returnstrueif the feature call is linked as a type literal.- Returns:
- whether the feature call is a type literal rather than a real feature call.
-
-