Class FollowUpError
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.internal.AbstractUnresolvableReference
-
- org.eclipse.xtext.xbase.typesystem.internal.FollowUpError
-
- All Implemented Interfaces:
IApplicableCandidate,IFeatureLinkingCandidate,ILinkingCandidate
public class FollowUpError extends AbstractUnresolvableReference implements IFeatureLinkingCandidate
-
-
Constructor Summary
Constructors Constructor Description FollowUpError(XAbstractFeatureCall featureCall, ExpressionTypeComputationState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyToModel(IResolvedTypes resolvedTypes)Injects the resolved feature into the model with the same semantics as the implicitresolveof EMF.protected java.util.List<XExpression>getArguments()XAbstractFeatureCallgetFeatureCall()Returns the feature call that is linked.org.eclipse.emf.ecore.EReferencegetReference()protected XExpressiongetSyntacticReceiver()java.util.List<LightweightTypeReference>getTypeArguments()The resolved 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 class org.eclipse.xtext.xbase.typesystem.internal.AbstractUnresolvableReference
applyToComputationState, applyType, computeArgumentTypes, getContext, getExpression, getFeature, getPreferredCandidate, getResolvedTypes, getState, 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, getExpression, getFeature, getPreferredCandidate
-
-
-
-
Constructor Detail
-
FollowUpError
public FollowUpError(XAbstractFeatureCall featureCall, ExpressionTypeComputationState state)
-
-
Method Detail
-
applyToModel
public void applyToModel(IResolvedTypes resolvedTypes)
Description copied from interface:ILinkingCandidateInjects the resolved feature into the model with the same semantics as the implicitresolveof EMF. This implies that the linked feature call may still point to a proxy afterwards.- Specified by:
applyToModelin interfaceIApplicableCandidate- Specified by:
applyToModelin interfaceILinkingCandidate
-
getFeatureCall
public XAbstractFeatureCall getFeatureCall()
Description copied from interface:IFeatureLinkingCandidateReturns the feature call that is linked.- Specified by:
getFeatureCallin interfaceIFeatureLinkingCandidate- Returns:
- the feature call.
-
getArguments
protected java.util.List<XExpression> getArguments()
- Specified by:
getArgumentsin classAbstractUnresolvableReference
-
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.
-
getReference
public org.eclipse.emf.ecore.EReference getReference()
-
getTypeArguments
public java.util.List<LightweightTypeReference> getTypeArguments()
Description copied from interface:ILinkingCandidateThe resolved type arguments.- Specified by:
getTypeArgumentsin interfaceILinkingCandidate
-
getSyntacticReceiver
protected XExpression getSyntacticReceiver()
-
-