io.sarl.lang.validation.subvalidators
Class SARLNamingValidator
All Superinterfaces:
org.eclipse.emf.ecore.EValidator, org.eclipse.xtext.validation.ValidationMessageAcceptor
class SARLNamingValidator
extends AbstractSARLSubValidator
A specialized validator to deal with naming conventions.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.14
Property Summary
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
void checkActionName(SarlAction)
Check if the given action has a valid name.
void checkFieldName(SarlField)
Check if the given field has a valid name.
void checkFieldNameShadowing(SarlField)
Check if the given field has a name that is shadowing an inherited field.
void checkGenericTypeNameShadowing(JvmTypeParameter)
Check if the given generic type has a name that is shadowing an enclosing generic type.
void checkParameterName(SarlFormalParameter)
Check if the given parameter has a valid name.
void checkParameterName(XClosure)
Check if the closure parameters have a valid name.
void checkVariableName(XVariableDeclaration)
Check if the given local variable has a valid name.
Constructor Details
new
new
Action Details
checkActionName(SarlAction)
def checkActionName(SarlAction)
Check if the given action has a valid name.
Parameters:
action - the action to test.
See:
SARLFeatureNameValidator
checkFieldName(SarlField)
def checkFieldName(SarlField)
Check if the given field has a valid name.
Parameters:
field - the field to test.
See:
SARLFeatureNameValidator
checkFieldNameShadowing(SarlField)
def checkFieldNameShadowing(SarlField)
Check if the given field has a name that is shadowing an inherited field.
Parameters:
field - the field to test.
checkGenericTypeNameShadowing(JvmTypeParameter)
def checkGenericTypeNameShadowing(JvmTypeParameter)
Check if the given generic type has a name that is shadowing an enclosing generic type.
Parameters:
type - the generic type parameter to check.
Since:
0.12
checkParameterName(SarlFormalParameter)
def checkParameterName(SarlFormalParameter)
Check if the given parameter has a valid name.
Parameters:
parameter - the parameter to test.
See:
SARLFeatureNameValidator
checkParameterName(XClosure)
def checkParameterName(XClosure)
Check if the closure parameters have a valid name.
Parameters:
closure - the closure to test.
See:
SARLFeatureNameValidator
checkVariableName(XVariableDeclaration)
def checkVariableName(XVariableDeclaration)
Check if the given local variable has a valid name.
Parameters:
variable - the variable to test.
See:
SARLFeatureNameValidator