io.sarl.lang.validation.subvalidators
Class SARLFeatureModifierValidator
All Superinterfaces:
org.eclipse.emf.ecore.EValidator, org.eclipse.xtext.validation.ValidationMessageAcceptor
class SARLFeatureModifierValidator
extends AbstractSARLSubValidator
A specialization of JvmGenericTypeValidator to deal with specific features of SARL.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.14
Property Summary
Modifier and type Property and description
protected SARLModifierValidator agentModifierValidator
Replies the modifier validator for the agents.
protected SARLModifierValidator annotationTypeModifierValidator
Replies the modifier validator for annotations.
protected SARLModifierValidator behaviorModifierValidator
Replies the modifier validator for the behaviors.
protected SARLModifierValidator capacityModifierValidator
Replies the modifier validator for the capacities.
protected SARLModifierValidator classModifierValidator
Replies the modifier validator for classes.
protected SARLModifierValidator constructorModifierValidator
Replies the modifier validator for class constructors.
protected SARLModifierValidator constructorModifierValidatorForSpecialContainer
Replies the modifier validator for the constructors in special containers.
protected SARLModifierValidator enumModifierValidator
Replies the modifier validator for enumerations.
protected SARLModifierValidator eventModifierValidator
Replies the modifier validator for the events.
protected SARLModifierValidator fieldInAgentModifierValidator
Replies the modifier validator for fields in the agents.
protected SARLModifierValidator fieldInBehaviorModifierValidator
Replies the modifier validator for fields in the behaviors.
protected SARLModifierValidator fieldInEventModifierValidator
Replies the modifier validator for fields in the events.
protected SARLModifierValidator fieldInInterfaceModifierValidator
Replies the modifier validator for fields in interfaces.
protected SARLModifierValidator fieldInSkillModifierValidator
Replies the modifier validator for fields in the skills.
protected SARLModifierValidator fieldModifierValidator
Replies the modifier validator for fields in classes.
protected SARLModifierValidator interfaceModifierValidator
Replies the modifier validator for interfaces.
protected SARLModifierValidator methodInAgentModifierValidator
Replies the modifier validator for methods in the agents.
protected SARLModifierValidator methodInBehaviorModifierValidator
Replies the modifier validator for methods in the behaviors.
protected SARLModifierValidator methodInCapacityModifierValidator
Replies the modifier validator for methods in the capacities.
protected SARLModifierValidator methodInInterfaceModifierValidator
Replies the modifier validator for interface methods.
protected SARLModifierValidator methodInSkillModifierValidator
Replies the modifier validator for methods in the skills.
protected SARLModifierValidator methodModifierValidator
Replies the modifier validator for class methods.
protected SARLModifierValidator nestedAnnotationTypeInAgentModifierValidator
Replies the modifier validator for annotations that are defined in an agent type.
protected SARLModifierValidator nestedAnnotationTypeModifierValidator
Replies the modifier validator for nested annotations types.
protected SARLModifierValidator nestedClassInAgentModifierValidator
Replies the modifier validator for classes that are defined in an agent type.
protected SARLModifierValidator nestedClassModifierValidator
Replies the modifier validator for nested classes.
protected SARLModifierValidator nestedEnumerationInAgentModifierValidator
Replies the modifier validator for enumerations that are defined in an agent type.
protected SARLModifierValidator nestedEnumModifierValidator
Replies the modifier validator for nested enumerations.
protected SARLModifierValidator nestedInterfaceInAgentModifierValidator
Replies the modifier validator for interfaces that are defined in an agent type.
protected SARLModifierValidator nestedInterfaceModifierValidator
Replies the modifier validator for nested interfaces.
protected SARLModifierValidator skillModifierValidator
Replies the modifier validator for the skills.
protected SARLModifierValidator staticConstructorModifierValidator
Replies the modifier validator for the static constructors.
Nested Type Summary
Modifier and type Type and description
protected class SARLFeatureModifierValidator.SARLModifierValidator
The modifier validator for constructors.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
protected void checkModifierMatchesTypename(XtendClass)
void checkModifiers(SarlAgent)
Check the modifiers for the SARL agents.
void checkModifiers(SarlBehavior)
Check the modifiers for the SARL behaviors.
void checkModifiers(SarlCapacity)
Check the modifiers for the SARL capacities.
void checkModifiers(SarlEvent)
Check if the modifiers for the SARL events.
void checkModifiers(SarlSkill)
Check the modifiers for the SARL skills.
void checkModifiers(XtendAnnotationType)
void checkModifiers(XtendClass)
void checkModifiers(XtendConstructor)
Check the modifiers for the class constructors.
void checkModifiers(XtendEnum)
void checkModifiers(XtendField)
Check the modifiers for the fields and attributes.
void checkModifiers(XtendFunction)
Check the modifiers for the actions and methods.
void checkModifiers(XtendInterface)
protected SARLModifierValidator getAgentModifierValidator
Replies the modifier validator for the agents.
protected SARLModifierValidator getAnnotationTypeModifierValidator
Replies the modifier validator for annotations.
protected SARLModifierValidator getBehaviorModifierValidator
Replies the modifier validator for the behaviors.
protected SARLModifierValidator getCapacityModifierValidator
Replies the modifier validator for the capacities.
protected SARLModifierValidator getClassModifierValidator
Replies the modifier validator for classes.
protected SARLModifierValidator getConstructorModifierValidator
Replies the modifier validator for class constructors.
protected SARLModifierValidator getConstructorModifierValidatorForSpecialContainer
Replies the modifier validator for the constructors in special containers.
protected SARLModifierValidator getEnumModifierValidator
Replies the modifier validator for enumerations.
protected SARLModifierValidator getEventModifierValidator
Replies the modifier validator for the events.
protected SARLModifierValidator getFieldInAgentModifierValidator
Replies the modifier validator for fields in the agents.
protected SARLModifierValidator getFieldInBehaviorModifierValidator
Replies the modifier validator for fields in the behaviors.
protected SARLModifierValidator getFieldInEventModifierValidator
Replies the modifier validator for fields in the events.
protected SARLModifierValidator getFieldInInterfaceModifierValidator
Replies the modifier validator for fields in interfaces.
protected SARLModifierValidator getFieldInSkillModifierValidator
Replies the modifier validator for fields in the skills.
protected SARLModifierValidator getFieldModifierValidator
Replies the modifier validator for fields in classes.
protected SARLModifierValidator getInterfaceModifierValidator
Replies the modifier validator for interfaces.
protected SARLModifierValidator getMethodInAgentModifierValidator
Replies the modifier validator for methods in the agents.
protected SARLModifierValidator getMethodInBehaviorModifierValidator
Replies the modifier validator for methods in the behaviors.
protected SARLModifierValidator getMethodInCapacityModifierValidator
Replies the modifier validator for methods in the capacities.
protected SARLModifierValidator getMethodInInterfaceModifierValidator
Replies the modifier validator for interface methods.
protected SARLModifierValidator getMethodInSkillModifierValidator
Replies the modifier validator for methods in the skills.
protected SARLModifierValidator getMethodModifierValidator
Replies the modifier validator for class methods.
protected SARLModifierValidator getNestedAnnotationTypeInAgentModifierValidator
Replies the modifier validator for annotations that are defined in an agent type.
protected SARLModifierValidator getNestedAnnotationTypeModifierValidator
Replies the modifier validator for nested annotations types.
protected SARLModifierValidator getNestedClassInAgentModifierValidator
Replies the modifier validator for classes that are defined in an agent type.
protected SARLModifierValidator getNestedClassModifierValidator
Replies the modifier validator for nested classes.
protected SARLModifierValidator getNestedEnumerationInAgentModifierValidator
Replies the modifier validator for enumerations that are defined in an agent type.
protected SARLModifierValidator getNestedEnumModifierValidator
Replies the modifier validator for nested enumerations.
protected SARLModifierValidator getNestedInterfaceInAgentModifierValidator
Replies the modifier validator for interfaces that are defined in an agent type.
protected SARLModifierValidator getNestedInterfaceModifierValidator
Replies the modifier validator for nested interfaces.
protected SARLModifierValidator getSkillModifierValidator
Replies the modifier validator for the skills.
protected SARLModifierValidator getStaticConstructorModifierValidator
Replies the modifier validator for the static constructors.
Property Details
agentModifierValidator
protected val agentModifierValidator : SARLModifierValidator
Replies the modifier validator for the agents.

This property is an alias for the action: getAgentModifierValidator

Returns:
the validator.
annotationTypeModifierValidator
protected val annotationTypeModifierValidator : SARLModifierValidator
Replies the modifier validator for annotations.

This property is an alias for the action: getAnnotationTypeModifierValidator

Returns:
the validator.
behaviorModifierValidator
protected val behaviorModifierValidator : SARLModifierValidator
Replies the modifier validator for the behaviors.

This property is an alias for the action: getBehaviorModifierValidator

Returns:
the validator.
capacityModifierValidator
protected val capacityModifierValidator : SARLModifierValidator
Replies the modifier validator for the capacities.

This property is an alias for the action: getCapacityModifierValidator

Returns:
the validator.
classModifierValidator
protected val classModifierValidator : SARLModifierValidator
Replies the modifier validator for classes.

This property is an alias for the action: getClassModifierValidator

Returns:
the validator.
constructorModifierValidator
protected val constructorModifierValidator : SARLModifierValidator
Replies the modifier validator for class constructors.

This property is an alias for the action: getConstructorModifierValidator

Returns:
the validator.
constructorModifierValidatorForSpecialContainer
protected val constructorModifierValidatorForSpecialContainer : SARLModifierValidator
Replies the modifier validator for the constructors in special containers.

This property is an alias for the action: getConstructorModifierValidatorForSpecialContainer

Returns:
the validator.
enumModifierValidator
protected val enumModifierValidator : SARLModifierValidator
Replies the modifier validator for enumerations.

This property is an alias for the action: getEnumModifierValidator

Returns:
the validator.
eventModifierValidator
protected val eventModifierValidator : SARLModifierValidator
Replies the modifier validator for the events.

This property is an alias for the action: getEventModifierValidator

Returns:
the validator.
fieldInAgentModifierValidator
protected val fieldInAgentModifierValidator : SARLModifierValidator
Replies the modifier validator for fields in the agents.

This property is an alias for the action: getFieldInAgentModifierValidator

Returns:
the validator.
fieldInBehaviorModifierValidator
protected val fieldInBehaviorModifierValidator : SARLModifierValidator
Replies the modifier validator for fields in the behaviors.

This property is an alias for the action: getFieldInBehaviorModifierValidator

Returns:
the validator.
fieldInEventModifierValidator
protected val fieldInEventModifierValidator : SARLModifierValidator
Replies the modifier validator for fields in the events.

This property is an alias for the action: getFieldInEventModifierValidator

Returns:
the validator.
fieldInInterfaceModifierValidator
protected val fieldInInterfaceModifierValidator : SARLModifierValidator
Replies the modifier validator for fields in interfaces.

This property is an alias for the action: getFieldInInterfaceModifierValidator

Returns:
the validator.
fieldInSkillModifierValidator
protected val fieldInSkillModifierValidator : SARLModifierValidator
Replies the modifier validator for fields in the skills.

This property is an alias for the action: getFieldInSkillModifierValidator

Returns:
the validator.
fieldModifierValidator
protected val fieldModifierValidator : SARLModifierValidator
Replies the modifier validator for fields in classes.

This property is an alias for the action: getFieldModifierValidator

Returns:
the validator.
interfaceModifierValidator
protected val interfaceModifierValidator : SARLModifierValidator
Replies the modifier validator for interfaces.

This property is an alias for the action: getInterfaceModifierValidator

Returns:
the validator.
methodInAgentModifierValidator
protected val methodInAgentModifierValidator : SARLModifierValidator
Replies the modifier validator for methods in the agents.

This property is an alias for the action: getMethodInAgentModifierValidator

Returns:
the validator.
methodInBehaviorModifierValidator
protected val methodInBehaviorModifierValidator : SARLModifierValidator
Replies the modifier validator for methods in the behaviors.

This property is an alias for the action: getMethodInBehaviorModifierValidator

Returns:
the validator.
methodInCapacityModifierValidator
protected val methodInCapacityModifierValidator : SARLModifierValidator
Replies the modifier validator for methods in the capacities.

This property is an alias for the action: getMethodInCapacityModifierValidator

Returns:
the validator.
methodInInterfaceModifierValidator
protected val methodInInterfaceModifierValidator : SARLModifierValidator
Replies the modifier validator for interface methods.

This property is an alias for the action: getMethodInInterfaceModifierValidator

Returns:
the validator.
methodInSkillModifierValidator
protected val methodInSkillModifierValidator : SARLModifierValidator
Replies the modifier validator for methods in the skills.

This property is an alias for the action: getMethodInSkillModifierValidator

Returns:
the validator.
methodModifierValidator
protected val methodModifierValidator : SARLModifierValidator
Replies the modifier validator for class methods.

This property is an alias for the action: getMethodModifierValidator

Returns:
the validator.
nestedAnnotationTypeInAgentModifierValidator
protected val nestedAnnotationTypeInAgentModifierValidator : SARLModifierValidator
Replies the modifier validator for annotations that are defined in an agent type.

This property is an alias for the action: getNestedAnnotationTypeInAgentModifierValidator

Returns:
the validator.
nestedAnnotationTypeModifierValidator
protected val nestedAnnotationTypeModifierValidator : SARLModifierValidator
Replies the modifier validator for nested annotations types.

This property is an alias for the action: getNestedAnnotationTypeModifierValidator

Returns:
the validator.
nestedClassInAgentModifierValidator
protected val nestedClassInAgentModifierValidator : SARLModifierValidator
Replies the modifier validator for classes that are defined in an agent type.

This property is an alias for the action: getNestedClassInAgentModifierValidator

Returns:
the validator.
nestedClassModifierValidator
protected val nestedClassModifierValidator : SARLModifierValidator
Replies the modifier validator for nested classes.

This property is an alias for the action: getNestedClassModifierValidator

Returns:
the validator.
nestedEnumerationInAgentModifierValidator
protected val nestedEnumerationInAgentModifierValidator : SARLModifierValidator
Replies the modifier validator for enumerations that are defined in an agent type.

This property is an alias for the action: getNestedEnumerationInAgentModifierValidator

Returns:
the validator.
nestedEnumModifierValidator
protected val nestedEnumModifierValidator : SARLModifierValidator
Replies the modifier validator for nested enumerations.

This property is an alias for the action: getNestedEnumModifierValidator

Returns:
the validator.
nestedInterfaceInAgentModifierValidator
protected val nestedInterfaceInAgentModifierValidator : SARLModifierValidator
Replies the modifier validator for interfaces that are defined in an agent type.

This property is an alias for the action: getNestedInterfaceInAgentModifierValidator

Returns:
the validator.
nestedInterfaceModifierValidator
protected val nestedInterfaceModifierValidator : SARLModifierValidator
Replies the modifier validator for nested interfaces.

This property is an alias for the action: getNestedInterfaceModifierValidator

Returns:
the validator.
skillModifierValidator
protected val skillModifierValidator : SARLModifierValidator
Replies the modifier validator for the skills.

This property is an alias for the action: getSkillModifierValidator

Returns:
the validator.
staticConstructorModifierValidator
protected val staticConstructorModifierValidator : SARLModifierValidator
Replies the modifier validator for the static constructors.

This property is an alias for the action: getStaticConstructorModifierValidator

Returns:
the validator.
Constructor Details
new
new
Action Details
checkModifierMatchesTypename(XtendClass)
protected def checkModifierMatchesTypename(XtendClass)
checkModifiers(SarlAgent)
def checkModifiers(SarlAgent)
Check the modifiers for the SARL agents.
Parameters:
agent - the agent.
checkModifiers(SarlBehavior)
def checkModifiers(SarlBehavior)
Check the modifiers for the SARL behaviors.
Parameters:
behavior - the behavior.
checkModifiers(SarlCapacity)
def checkModifiers(SarlCapacity)
Check the modifiers for the SARL capacities.
Parameters:
capacity - the capacity.
checkModifiers(SarlEvent)
def checkModifiers(SarlEvent)
Check if the modifiers for the SARL events.
Parameters:
event - the event.
checkModifiers(SarlSkill)
def checkModifiers(SarlSkill)
Check the modifiers for the SARL skills.
Parameters:
skill - the skill.
checkModifiers(XtendAnnotationType)
def checkModifiers(XtendAnnotationType)
checkModifiers(XtendClass)
def checkModifiers(XtendClass)
checkModifiers(XtendConstructor)
def checkModifiers(XtendConstructor)
Check the modifiers for the class constructors.
Parameters:
constructor - the construct.
checkModifiers(XtendEnum)
def checkModifiers(XtendEnum)
checkModifiers(XtendField)
def checkModifiers(XtendField)
Check the modifiers for the fields and attributes.
Parameters:
field - the construct.
checkModifiers(XtendFunction)
def checkModifiers(XtendFunction)
Check the modifiers for the actions and methods.
Parameters:
function - the construct.
checkModifiers(XtendInterface)
def checkModifiers(XtendInterface)
getAgentModifierValidator
protected def getAgentModifierValidator : SARLModifierValidator
Replies the modifier validator for the agents.
Returns:
the validator.
getAnnotationTypeModifierValidator
protected def getAnnotationTypeModifierValidator : SARLModifierValidator
Replies the modifier validator for annotations.
Returns:
the validator.
getBehaviorModifierValidator
protected def getBehaviorModifierValidator : SARLModifierValidator
Replies the modifier validator for the behaviors.
Returns:
the validator.
getCapacityModifierValidator
protected def getCapacityModifierValidator : SARLModifierValidator
Replies the modifier validator for the capacities.
Returns:
the validator.
getClassModifierValidator
protected def getClassModifierValidator : SARLModifierValidator
Replies the modifier validator for classes.
Returns:
the validator.
getConstructorModifierValidator
protected def getConstructorModifierValidator : SARLModifierValidator
Replies the modifier validator for class constructors.
Returns:
the validator.
getConstructorModifierValidatorForSpecialContainer
protected def getConstructorModifierValidatorForSpecialContainer : SARLModifierValidator
Replies the modifier validator for the constructors in special containers.
Returns:
the validator.
getEnumModifierValidator
protected def getEnumModifierValidator : SARLModifierValidator
Replies the modifier validator for enumerations.
Returns:
the validator.
getEventModifierValidator
protected def getEventModifierValidator : SARLModifierValidator
Replies the modifier validator for the events.
Returns:
the validator.
getFieldInAgentModifierValidator
protected def getFieldInAgentModifierValidator : SARLModifierValidator
Replies the modifier validator for fields in the agents.
Returns:
the validator.
getFieldInBehaviorModifierValidator
protected def getFieldInBehaviorModifierValidator : SARLModifierValidator
Replies the modifier validator for fields in the behaviors.
Returns:
the validator.
getFieldInEventModifierValidator
protected def getFieldInEventModifierValidator : SARLModifierValidator
Replies the modifier validator for fields in the events.
Returns:
the validator.
getFieldInInterfaceModifierValidator
protected def getFieldInInterfaceModifierValidator : SARLModifierValidator
Replies the modifier validator for fields in interfaces.
Returns:
the validator.
getFieldInSkillModifierValidator
protected def getFieldInSkillModifierValidator : SARLModifierValidator
Replies the modifier validator for fields in the skills.
Returns:
the validator.
getFieldModifierValidator
protected def getFieldModifierValidator : SARLModifierValidator
Replies the modifier validator for fields in classes.
Returns:
the validator.
getInterfaceModifierValidator
protected def getInterfaceModifierValidator : SARLModifierValidator
Replies the modifier validator for interfaces.
Returns:
the validator.
getMethodInAgentModifierValidator
protected def getMethodInAgentModifierValidator : SARLModifierValidator
Replies the modifier validator for methods in the agents.
Returns:
the validator.
getMethodInBehaviorModifierValidator
protected def getMethodInBehaviorModifierValidator : SARLModifierValidator
Replies the modifier validator for methods in the behaviors.
Returns:
the validator.
getMethodInCapacityModifierValidator
protected def getMethodInCapacityModifierValidator : SARLModifierValidator
Replies the modifier validator for methods in the capacities.
Returns:
the validator.
getMethodInInterfaceModifierValidator
protected def getMethodInInterfaceModifierValidator : SARLModifierValidator
Replies the modifier validator for interface methods.
Returns:
the validator.
getMethodInSkillModifierValidator
protected def getMethodInSkillModifierValidator : SARLModifierValidator
Replies the modifier validator for methods in the skills.
Returns:
the validator.
getMethodModifierValidator
protected def getMethodModifierValidator : SARLModifierValidator
Replies the modifier validator for class methods.
Returns:
the validator.
getNestedAnnotationTypeInAgentModifierValidator
protected def getNestedAnnotationTypeInAgentModifierValidator : SARLModifierValidator
Replies the modifier validator for annotations that are defined in an agent type.
Returns:
the validator.
getNestedAnnotationTypeModifierValidator
protected def getNestedAnnotationTypeModifierValidator : SARLModifierValidator
Replies the modifier validator for nested annotations types.
Returns:
the validator.
getNestedClassInAgentModifierValidator
protected def getNestedClassInAgentModifierValidator : SARLModifierValidator
Replies the modifier validator for classes that are defined in an agent type.
Returns:
the validator.
getNestedClassModifierValidator
protected def getNestedClassModifierValidator : SARLModifierValidator
Replies the modifier validator for nested classes.
Returns:
the validator.
getNestedEnumerationInAgentModifierValidator
protected def getNestedEnumerationInAgentModifierValidator : SARLModifierValidator
Replies the modifier validator for enumerations that are defined in an agent type.
Returns:
the validator.
getNestedEnumModifierValidator
protected def getNestedEnumModifierValidator : SARLModifierValidator
Replies the modifier validator for nested enumerations.
Returns:
the validator.
getNestedInterfaceInAgentModifierValidator
protected def getNestedInterfaceInAgentModifierValidator : SARLModifierValidator
Replies the modifier validator for interfaces that are defined in an agent type.
Returns:
the validator.
getNestedInterfaceModifierValidator
protected def getNestedInterfaceModifierValidator : SARLModifierValidator
Replies the modifier validator for nested interfaces.
Returns:
the validator.
getSkillModifierValidator
protected def getSkillModifierValidator : SARLModifierValidator
Replies the modifier validator for the skills.
Returns:
the validator.
getStaticConstructorModifierValidator
protected def getStaticConstructorModifierValidator : SARLModifierValidator
Replies the modifier validator for the static constructors.
Returns:
the validator.