-
checkAbstract(XtendFunction)
-
def checkAbstract(XtendFunction)
Check for abstract methods.
Override the Xtend behavior for:
- not generating an error when a return type is missed. Indeed, the return type is "void" by default.
- generating a warning when "abstract" is missed.
-
checkActionFires(SarlAction)
-
def checkActionFires(SarlAction)
Check the types of the parameters of the "fires" statement.
-
Parameters:
-
action -
-
checkBehaviourUnitEventTypeConformance(SarlBehaviorUnit)
-
def checkBehaviourUnitEventTypeConformance(SarlBehaviorUnit)
-
checkCapacityTypeForUses(SarlCapacityUses)
-
def checkCapacityTypeForUses(SarlCapacityUses)
Check the type of the capacity uses.
-
Parameters:
-
uses -
-
checkCreateFunctionIsNotGeneric(XtendFunction)
-
def checkCreateFunctionIsNotGeneric(XtendFunction)
-
checkCreateFunctionIsNotStatic(XtendFunction)
-
def checkCreateFunctionIsNotStatic(XtendFunction)
-
checkCreateFunctionIsNotTypeVoid(XtendFunction)
-
def checkCreateFunctionIsNotTypeVoid(XtendFunction)
-
checkDefaultSuperConstructor(XtendClass)
-
def checkDefaultSuperConstructor(XtendClass)
Check if the super default constructor is correctly invoked.
-
Parameters:
-
xtendClass -
-
checkDefaultValueFinalFieldReferenceInConstructor(SarlFormalParameter)
-
def checkDefaultValueFinalFieldReferenceInConstructor(SarlFormalParameter)
Check if the default values have valid references to read-only fields from constructors.
-
Parameters:
-
param -
-
checkDefaultValuePureExpression(SarlFormalParameter)
-
def checkDefaultValuePureExpression(SarlFormalParameter)
Check if the default values have not a reference to a not-pure operation.
-
Parameters:
-
param -
-
checkDefaultValueRedefinition(SarlFormalParameter)
-
def checkDefaultValueRedefinition(SarlFormalParameter)
Check if the default value expression is redefined from an inherited definition.
-
Parameters:
-
param -
-
checkDefaultValueTypeCompatibleWithParameterType(SarlFormalParameter)
-
def checkDefaultValueTypeCompatibleWithParameterType(SarlFormalParameter)
Check if the default values of the formal parameters have a compatible type with the formal parameter.
-
Parameters:
-
param -
-
checkEarlyExitEventInFires(SarlAction)
-
def checkEarlyExitEventInFires(SarlAction)
Emit a warning when the events after the "fires" keyword are not early-exit events.
-
Parameters:
-
action -
-
checkFieldsAreCalledSelf(XtendField)
-
def checkFieldsAreCalledSelf(XtendField)
-
checkFinalFieldInitialization(SarlAgent)
-
def checkFinalFieldInitialization(SarlAgent)
Check if all the fields are initialized in a SARL agent.
-
Parameters:
-
agent -
-
checkFinalFieldInitialization(SarlBehavior)
-
def checkFinalFieldInitialization(SarlBehavior)
Check if all the fields are initialized in a SARL behavior.
-
Parameters:
-
behavior -
-
checkFinalFieldInitialization(SarlEvent)
-
def checkFinalFieldInitialization(SarlEvent)
Check if all the fields are initialized in a SARL event.
-
Parameters:
-
event -
-
checkFinalFieldInitialization(SarlSkill)
-
def checkFinalFieldInitialization(SarlSkill)
Check if all the fields are initialized in a SARL skill.
-
Parameters:
-
skill -
-
checkFinalFieldInitialization(XtendClass)
-
def checkFinalFieldInitialization(XtendClass)
Check if all the fields are initialized in a class.
-
Parameters:
-
clazz -
-
checkFinalFieldInitialization(XtendInterface)
-
def checkFinalFieldInitialization(XtendInterface)
Check if all the fields are initialized in an interface.
-
Parameters:
-
oopInterface -
-
checkImplicitReturn(XtendFunction)
-
def checkImplicitReturn(XtendFunction)
-
checkJavaKeywordConflict(XtendConstructor)
-
def checkJavaKeywordConflict(XtendConstructor)
-
checkJavaKeywordConflict(XtendField)
-
def checkJavaKeywordConflict(XtendField)
-
checkJavaKeywordConflict(XtendFunction)
-
def checkJavaKeywordConflict(XtendFunction)
-
checkLocalUsageOfDeclaredFields(XtendField)
-
def checkLocalUsageOfDeclaredFields(XtendField)
-
checkLocalUsageOfDeclaredXtendFunction(XtendFunction)
-
def checkLocalUsageOfDeclaredXtendFunction(XtendFunction)
Check the local usage of the functions.
-
Parameters:
-
function -
-
checkMultipleCapacityUses(SarlCapacityUses)
-
def checkMultipleCapacityUses(SarlCapacityUses)
Check for multiple capacity use declaration.
-
Parameters:
-
uses -
-
checkNonInitializedFieldsHaveAType(XtendField)
-
def checkNonInitializedFieldsHaveAType(XtendField)
-
checkNonRawTypeInferred(XtendField)
-
def checkNonRawTypeInferred(XtendField)
-
checkNonRawTypeInferred(XtendFunction)
-
def checkNonRawTypeInferred(XtendFunction)
-
checkNoReturnsInCreateExtensions(XtendFunction)
-
def checkNoReturnsInCreateExtensions(XtendFunction)
-
checkParameterNames(XtendFunction)
-
def checkParameterNames(XtendFunction)
-
checkRequiredCapacityUse(SarlRequiredCapacity)
-
def checkRequiredCapacityUse(SarlRequiredCapacity)
Emit a warning when the "requires" keyword is used.
-
Parameters:
-
statement -
-
checkStaticConstructorPrototype(XtendConstructor)
-
def checkStaticConstructorPrototype(XtendConstructor)
Check for a valid prototype of a static constructor.
-
Parameters:
-
constructor -
-
checkSuperConstructor(SarlAgent)
-
def checkSuperConstructor(SarlAgent)
Check if the super default constructor is correctly invoked.
-
Parameters:
-
agent -
-
checkSuperConstructor(SarlBehavior)
-
def checkSuperConstructor(SarlBehavior)
Check if the super default constructor is correctly invoked.
-
Parameters:
-
behavior -
-
checkSuperConstructor(SarlEvent)
-
def checkSuperConstructor(SarlEvent)
Check if the super default constructor is correctly invoked.
-
Parameters:
-
event -
-
checkSuperConstructor(SarlSkill)
-
def checkSuperConstructor(SarlSkill)
Check if the super default constructor is correctly invoked.
-
Parameters:
-
skill -
-
checkSuperConstructor(XtendTypeDeclaration,EStructuralFeature,Collection<E>)
-
protected def checkSuperConstructor(XtendTypeDeclaration,EStructuralFeature,Collection<E>)
Check the super constructors.
-
Parameters:
-
container -
feature -
defaultSignatures -
-
checkTypeParameterForwardReferences(XtendFunction)
-
def checkTypeParameterForwardReferences(XtendFunction)
Check the type parameters for a function.
-
Parameters:
-
xtendFunction -
-
checkTypeParametersAreUnsupported(XtendConstructor)
-
def checkTypeParametersAreUnsupported(XtendConstructor)
-
checkUnusedCapacities(SarlCapacityUses)
-
def checkUnusedCapacities(SarlCapacityUses)
Check for unused capacities.
-
Parameters:
-
uses -
-
checkValidExtension(XtendField)
-
def checkValidExtension(XtendField)
-
checkValidExtension(XtendFormalParameter)
-
def checkValidExtension(XtendFormalParameter)
-
checkValidExtension(XtendParameter)
-
def checkValidExtension(XtendParameter)
-
checkValidExtension(XtendVariableDeclaration)
-
def checkValidExtension(XtendVariableDeclaration)
-
checkValidExtensionType(JvmIdentifiableElement,EObject,EStructuralFeature)
-
protected def checkValidExtensionType(JvmIdentifiableElement,EObject,EStructuralFeature)
-
checkVarArgComesLast(XtendParameter)
-
def checkVarArgComesLast(XtendParameter)
-
checkVarArgIsNotExtension(XtendParameter)
-
def checkVarArgIsNotExtension(XtendParameter)
-
dispatchFuncWithTypeParams(XtendFunction)
-
def dispatchFuncWithTypeParams(XtendFunction)
-
isDefaultValuedParameterFunction(XtendFunction)
-
protected def isDefaultValuedParameterFunction(XtendFunction) : boolean
Replies if the given function has a default value for one of its parameters.
-
Parameters:
-
function -
-
Returns:
-