org.eclipse.xtext.xbase.scoping.featurecalls
Class XAssignmentSugarDescriptionProvider

java.lang.Object
  extended by org.eclipse.xtext.xbase.scoping.featurecalls.DefaultJvmFeatureDescriptionProvider
      extended by org.eclipse.xtext.xbase.scoping.featurecalls.XAssignmentSugarDescriptionProvider
All Implemented Interfaces:
IFeaturesForTypeProvider, IJvmFeatureDescriptionProvider

public class XAssignmentSugarDescriptionProvider
extends DefaultJvmFeatureDescriptionProvider

creates assignment feature descriptions for setter methods.

Author:
Sven Efftinge - Initial contribution and API

Field Summary
 
Fields inherited from class org.eclipse.xtext.xbase.scoping.featurecalls.DefaultJvmFeatureDescriptionProvider
contextType, featuresForTypeProvider, implicitReceiver, signatureProvider, visibilityService
 
Constructor Summary
XAssignmentSugarDescriptionProvider()
           
 
Method Summary
 void addFeatureDescriptions(JvmFeature feature, TypeArgumentContext context, IAcceptor<JvmFeatureDescription> acceptor)
          called for each feature in the current context type's type hierarchy.
protected  java.lang.String getPropertyNameForSetter(java.lang.String simpleName)
           
protected  boolean isSetterMethod(JvmOperation jvmOperation)
           
 
Methods inherited from class org.eclipse.xtext.xbase.scoping.featurecalls.DefaultJvmFeatureDescriptionProvider
createJvmFeatureDescription, createJvmFeatureDescription, createJvmFeatureDescription, getFeaturesForType, getSignature, getText, isExtensionProvider, isValid, setContextType, setFeaturesForTypeProvider, setImplicitReceiver, setVisibilityService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XAssignmentSugarDescriptionProvider

public XAssignmentSugarDescriptionProvider()
Method Detail

addFeatureDescriptions

public void addFeatureDescriptions(JvmFeature feature,
                                   TypeArgumentContext context,
                                   IAcceptor<JvmFeatureDescription> acceptor)
Description copied from interface: IJvmFeatureDescriptionProvider
called for each feature in the current context type's type hierarchy.

Specified by:
addFeatureDescriptions in interface IJvmFeatureDescriptionProvider
Overrides:
addFeatureDescriptions in class DefaultJvmFeatureDescriptionProvider

getPropertyNameForSetter

protected java.lang.String getPropertyNameForSetter(java.lang.String simpleName)

isSetterMethod

protected boolean isSetterMethod(JvmOperation jvmOperation)