Interface ITypeLiteralLinkingCandidate
-
- All Superinterfaces:
IApplicableCandidate,IFeatureLinkingCandidate,ILinkingCandidate
- All Known Implementing Classes:
ResolvedTypeLiteral,TypeLiteralLinkingCandidate
public interface ITypeLiteralLinkingCandidate extends IFeatureLinkingCandidate
A candidate that resolves a feature call to a type literal. A type literal is never static and never an extension.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.xtext.common.types.JvmTypegetType()Returns the type that shall be resolved as a literal.java.util.List<LightweightTypeReference>getTypeArguments()A linked type literal does never have type arguments.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.IFeatureLinkingCandidate
getFeatureCall
-
Methods inherited from interface org.eclipse.xtext.xbase.typesystem.computation.ILinkingCandidate
applyToComputationState, applyToModel, getExpression, getFeature, getPreferredCandidate
-
-
-
-
Method Detail
-
getType
org.eclipse.xtext.common.types.JvmType getType()
Returns the type that shall be resolved as a literal.- Returns:
- the type.
-
getTypeArguments
java.util.List<LightweightTypeReference> getTypeArguments()
A linked type literal does never have type arguments. Returns an empty list.- Specified by:
getTypeArgumentsin interfaceILinkingCandidate- Returns:
- an empty list.
-
isTypeLiteral
boolean isTypeLiteral()
Description copied from interface:IFeatureLinkingCandidateReturnstrueif the feature call is linked as a type literal.- Specified by:
isTypeLiteralin interfaceIFeatureLinkingCandidate- Returns:
- always
true.
-
isStatic
boolean isStatic()
Description copied from interface:IFeatureLinkingCandidateReturnstrueif the linked feature is static.- Specified by:
isStaticin interfaceIFeatureLinkingCandidate- Returns:
- always
false.
-
isExtension
boolean isExtension()
Description copied from interface:IFeatureLinkingCandidateReturnstrueif the linked feature is contributed by an extension.- Specified by:
isExtensionin interfaceIFeatureLinkingCandidate- Returns:
- always
false.
-
-