Class AmbiguousFeatureLinkingCandidate
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.internal.AbstractAmbiguousLinkingCandidate<FeatureLinkingCandidate>
-
- org.eclipse.xtext.xbase.typesystem.internal.AmbiguousFeatureLinkingCandidate
-
- All Implemented Interfaces:
IAmbiguousLinkingCandidate,IApplicableCandidate,IFeatureLinkingCandidate,ILinkingCandidate
public class AmbiguousFeatureLinkingCandidate extends AbstractAmbiguousLinkingCandidate<FeatureLinkingCandidate> implements IFeatureLinkingCandidate
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAmbiguousFeatureLinkingCandidate(FeatureLinkingCandidate first, AbstractPendingLinkingCandidate<?> second)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String[]getDiagnosticData()XAbstractFeatureCallgetFeatureCall()Returns the feature call that is linked.protected org.eclipse.emf.ecore.EStructuralFeaturegetFeatureToMark()protected java.lang.StringgetFeatureTypeName()protected java.lang.StringgetSyntaxDescriptions()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 class org.eclipse.xtext.xbase.typesystem.internal.AbstractAmbiguousLinkingCandidate
addCandidate, applyToComputationState, applyToModel, compareTo, getAlternatives, getDeclaratorSimpleName, getExpression, getFeature, getPreferredCandidate, getPrimaryCandidate, getTypeArguments, validate
-
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.computation.IApplicableCandidate
validate
-
Methods inherited from interface org.eclipse.xtext.xbase.typesystem.computation.ILinkingCandidate
applyToComputationState, applyToModel, getExpression, getFeature, getPreferredCandidate, getTypeArguments
-
-
-
-
Constructor Detail
-
AmbiguousFeatureLinkingCandidate
protected AmbiguousFeatureLinkingCandidate(FeatureLinkingCandidate first, AbstractPendingLinkingCandidate<?> second)
-
-
Method Detail
-
getSyntaxDescriptions
protected java.lang.String getSyntaxDescriptions()
- Specified by:
getSyntaxDescriptionsin classAbstractAmbiguousLinkingCandidate<FeatureLinkingCandidate>
-
getFeatureTypeName
protected java.lang.String getFeatureTypeName()
- Overrides:
getFeatureTypeNamein classAbstractAmbiguousLinkingCandidate<FeatureLinkingCandidate>
-
getFeatureCall
public XAbstractFeatureCall getFeatureCall()
Description copied from interface:IFeatureLinkingCandidateReturns the feature call that is linked.- Specified by:
getFeatureCallin interfaceIFeatureLinkingCandidate- Returns:
- the feature call.
-
isStatic
public boolean isStatic()
Description copied from interface:IFeatureLinkingCandidateReturnstrueif the linked feature is static.- Specified by:
isStaticin interfaceIFeatureLinkingCandidate- Returns:
- whether the feature is static.
-
isExtension
public boolean isExtension()
Description copied from interface:IFeatureLinkingCandidateReturnstrueif the linked feature is contributed by an extension.- Specified by:
isExtensionin interfaceIFeatureLinkingCandidate- Returns:
- whether the feature is extension.
-
isTypeLiteral
public boolean isTypeLiteral()
Description copied from interface:IFeatureLinkingCandidateReturnstrueif the feature call is linked as a type literal.- Specified by:
isTypeLiteralin interfaceIFeatureLinkingCandidate- Returns:
- whether the feature call is a type literal rather than a real feature call.
-
getFeatureToMark
protected org.eclipse.emf.ecore.EStructuralFeature getFeatureToMark()
- Specified by:
getFeatureToMarkin classAbstractAmbiguousLinkingCandidate<FeatureLinkingCandidate>
-
getDiagnosticData
protected java.lang.String[] getDiagnosticData()
- Specified by:
getDiagnosticDatain classAbstractAmbiguousLinkingCandidate<FeatureLinkingCandidate>
-
-