org.eclipse.xtext.xbase.scoping.featurecalls
Class XFeatureCallSugarDescriptionProvider
java.lang.Object
org.eclipse.xtext.xbase.scoping.featurecalls.DefaultJvmFeatureDescriptionProvider
org.eclipse.xtext.xbase.scoping.featurecalls.XFeatureCallSugarDescriptionProvider
- All Implemented Interfaces:
- IFeaturesForTypeProvider, IJvmFeatureDescriptionProvider
public class XFeatureCallSugarDescriptionProvider
- extends DefaultJvmFeatureDescriptionProvider
Constructs sugared JvmFeatureDescription
s for - XFeatureCall
-
XMemberFeatureCall
- XBinaryOperation
This includes operator overloading for XBinaryOperation
, invocation of
unparameterized methods without parenthesis, and access to getters using the property name (i.e. getFoo -> foo)
- Author:
- Sven Efftinge - Initial contribution and API
Methods inherited from class org.eclipse.xtext.xbase.scoping.featurecalls.DefaultJvmFeatureDescriptionProvider |
createJvmFeatureDescription, createJvmFeatureDescription, createJvmFeatureDescription, doCollectDescriptions, getAllDescriptions, getAllFeatures, getDescriptionsByName, getFeaturesByName, getImplicitArgument, getImplicitReceiver, getNumberOfIrrelevantArguments, getPriority, getSignature, isExtensionProvider, isValidStaticState, isVisible, setContextType, setFeaturesForTypeProvider, setImplicitArgument, setImplicitReceiver, setPreferStatics, setPriority, setVisibilityService, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XFeatureCallSugarDescriptionProvider
public XFeatureCallSugarDescriptionProvider()
setOperatorMapping
public void setOperatorMapping(OperatorMapping operatorMapping)
doCollectDescriptions
protected void doCollectDescriptions(java.lang.String name,
IFeaturesForTypeProvider featureProvider,
JvmTypeReference typeReference,
ITypeArgumentContext context,
java.lang.Iterable<JvmTypeReference> hierarchy,
IAcceptor<JvmFeatureDescription> acceptor)
- Overrides:
doCollectDescriptions
in class DefaultJvmFeatureDescriptionProvider
addFeatureDescriptions
public void addFeatureDescriptions(JvmFeature feature,
ITypeArgumentContext context,
IAcceptor<JvmFeatureDescription> acceptor)
- Overrides:
addFeatureDescriptions
in class DefaultJvmFeatureDescriptionProvider
getSyntacticalNumberOfArguments
protected int getSyntacticalNumberOfArguments(JvmOperation op)
isGetterMethod
protected boolean isGetterMethod(JvmOperation op)
getPropertyNameForGetterMethod
protected java.lang.String getPropertyNameForGetterMethod(java.lang.String opName)