Modifier and type | Action and description |
---|---|
void | checkAbstract(XtendFunction)
Check for abstract methods. |
void | checkActionFires(SarlAction)
Check the types of the parameters of the "fires" statement. |
void | checkBehaviourUnitEventTypeConformance(SarlBehaviorUnit)
Check if the given behavior unit has an event specification that is conform to the event's declaration. |
void | checkCapacityTypeForUses(SarlCapacityUses)
Check the type of the capacity uses. |
void | checkCreateFunctionIsNotGeneric(XtendFunction)
Check if a creation function is not of defined with type parameters. |
void | checkCreateFunctionIsNotStatic(XtendFunction)
Check if there is a creation function is defined as static. |
void | checkCreateFunctionIsNotTypeVoid(XtendFunction)
Check if a creation function is not of type void . |
void | checkDefaultSuperConstructor(XtendClass)
Check if the super default constructor is correctly invoked. |
void | checkDefaultValueFinalFieldReferenceInConstructor(SarlFormalParameter)
Check if the default values have valid references to read-only fields from constructors. |
void | checkDefaultValuePureExpression(SarlFormalParameter)
Check if the default values have not a reference to a not-pure operation. |
void | checkDefaultValueRedefinition(SarlFormalParameter)
Check if the default value expression is redefined from an inherited definition. |
void | checkDefaultValueTypeCompatibleWithParameterType(SarlFormalParameter)
Check if the default values of the formal parameters have a compatible type with the formal parameter. |
void | checkEarlyExitEventInFires(SarlAction)
Emit a warning when the events after the "fires" keyword are not early-exit events. |
void | checkFieldsAreCalledSelf(XtendField)
Check if the field has a name that is not "self" . |
void | checkFinalFieldInitialization(SarlAgent)
Check if all the fields are initialized in a SARL agent. |
void | checkFinalFieldInitialization(SarlBehavior)
Check if all the fields are initialized in a SARL behavior. |
void | checkFinalFieldInitialization(SarlEvent)
Check if all the fields are initialized in a SARL event. |
void | checkFinalFieldInitialization(SarlSkill)
Check if all the fields are initialized in a SARL skill. |
void | checkFinalFieldInitialization(XtendClass)
Check if all the fields are initialized in a class. |
void | checkFinalFieldInitialization(XtendInterface)
Check if all the fields are initialized in an interface. |
void | checkImplicitReturn(XtendFunction)
Check if the function has an implicit return statement. |
void | checkJavaKeywordConflict(XtendConstructor)
Check if the type parameters of given constructor have names that are not conflicting a keyword of Java. |
void | checkJavaKeywordConflict(XtendField)
Check if the given field has a name that is not conflicting a keyword of Java. |
void | checkJavaKeywordConflict(XtendFunction)
Check if the given function and its type parameters have names that are not conflicting a keyword of Java. |
void | checkJavaMainFunction(SarlAction)
Check the definition of a Java main function. |
void | checkLocalUsageOfDeclaredFields(XtendField)
Check the usage of local fields. |
void | checkLocalUsageOfDeclaredXtendFunction(XtendFunction)
Check the local usage of the functions. |
void | checkMultipleCapacityUses(SarlCapacityUses)
Check for multiple capacity use declaration. |
void | checkNonInitializedFieldsHaveAType(XtendField)
Check if the field is initialized or has a declared type. |
void | checkNonRawTypeInferred(XtendField)
Check if the given field has an inferred type that is not raw. |
void | checkNonRawTypeInferred(XtendFunction)
Check if the given function has an inferred return type that is not raw. |
void | checkNoReturnsInCreateExtensions(XtendFunction)
Check if there is no return statement in a creation extension. |
void | checkParameterNames(XtendFunction)
Check if the parameters' names are valid. |
void | checkRequiredCapacityUse(SarlRequiredCapacity)
Emit a warning when the "requires" keyword is used. |
void | checkStaticConstructorPrototype(XtendConstructor)
Check for a valid prototype of a static constructor. |
void | checkSuperConstructor(SarlAgent)
Check if the super default constructor is correctly invoked. |
void | checkSuperConstructor(SarlBehavior)
Check if the super default constructor is correctly invoked. |
void | checkSuperConstructor(SarlEvent)
Check if the super default constructor is correctly invoked. |
void | checkSuperConstructor(SarlSkill)
Check if the super default constructor is correctly invoked. |
protected void | checkSuperConstructor(XtendTypeDeclaration,EStructuralFeature,Collection<E>)
Check the super constructors. |
void | checkTypeParameterForwardReferences(XtendFunction)
Check the type parameters for a function. |
void | checkTypeParametersAreUnsupported(XtendConstructor)
Check that the given constructor has no type parameter declared. |
void | checkUnusedCapacities(SarlCapacityUses)
Check for unused capacities. |
void | checkValidExtension(XtendField)
Check if the given field has a valid type for extension mechanism. |
void | checkValidExtension(XtendFormalParameter)
Check if the given formal parameter has a valid type for extension mechanism. |
void | checkValidExtension(XtendParameter)
Check if the given parameter has a valid type for extension mechanism. |
void | checkValidExtension(XtendVariableDeclaration)
Check if the given variable has a valid type for extension mechanism. |
protected void | checkValidExtensionType(JvmIdentifiableElement,EObject,EStructuralFeature) |
void | checkVarArgComesLast(XtendParameter)
Check if the variadic parameter is the last parameter of the enclosing function. |
void | checkVarArgIsNotExtension(XtendParameter)
Check if the parameter is not marked as extension and variadic at the same time. |
void | dispatchFuncWithTypeParams(XtendFunction)
Check if the given dispatch function has a valid set of formal parameters and type parameters and has a valid function name. |
protected boolean | isDefaultValuedParameterFunction(XtendFunction)
Replies if the given function has a default value for one of its parameters. |
new
def checkAbstract(XtendFunction)
def checkActionFires(SarlAction)
def checkBehaviourUnitEventTypeConformance(SarlBehaviorUnit)
def checkCapacityTypeForUses(SarlCapacityUses)
def checkCreateFunctionIsNotGeneric(XtendFunction)
def checkCreateFunctionIsNotStatic(XtendFunction)
def checkCreateFunctionIsNotTypeVoid(XtendFunction)
void
.
def checkDefaultSuperConstructor(XtendClass)
def checkDefaultValueFinalFieldReferenceInConstructor(SarlFormalParameter)
def checkDefaultValuePureExpression(SarlFormalParameter)
def checkDefaultValueRedefinition(SarlFormalParameter)
def checkDefaultValueTypeCompatibleWithParameterType(SarlFormalParameter)
def checkEarlyExitEventInFires(SarlAction)
def checkFieldsAreCalledSelf(XtendField)
"self"
.
def checkFinalFieldInitialization(SarlAgent)
def checkFinalFieldInitialization(SarlBehavior)
def checkFinalFieldInitialization(SarlEvent)
def checkFinalFieldInitialization(SarlSkill)
def checkFinalFieldInitialization(XtendClass)
def checkFinalFieldInitialization(XtendInterface)
def checkImplicitReturn(XtendFunction)
def checkJavaKeywordConflict(XtendConstructor)
def checkJavaKeywordConflict(XtendField)
def checkJavaKeywordConflict(XtendFunction)
def checkJavaMainFunction(SarlAction)
def checkLocalUsageOfDeclaredFields(XtendField)
def checkLocalUsageOfDeclaredXtendFunction(XtendFunction)
def checkMultipleCapacityUses(SarlCapacityUses)
def checkNonInitializedFieldsHaveAType(XtendField)
def checkNonRawTypeInferred(XtendField)
def checkNonRawTypeInferred(XtendFunction)
def checkNoReturnsInCreateExtensions(XtendFunction)
return
statement in a creation extension.
def checkParameterNames(XtendFunction)
def checkRequiredCapacityUse(SarlRequiredCapacity)
def checkStaticConstructorPrototype(XtendConstructor)
def checkSuperConstructor(SarlAgent)
def checkSuperConstructor(SarlBehavior)
def checkSuperConstructor(SarlEvent)
def checkSuperConstructor(SarlSkill)
protected def checkSuperConstructor(XtendTypeDeclaration,EStructuralFeature,Collection<E>)
def checkTypeParameterForwardReferences(XtendFunction)
def checkTypeParametersAreUnsupported(XtendConstructor)
def checkUnusedCapacities(SarlCapacityUses)
def checkValidExtension(XtendField)
def checkValidExtension(XtendFormalParameter)
def checkValidExtension(XtendParameter)
def checkValidExtension(XtendVariableDeclaration)
protected def checkValidExtensionType(JvmIdentifiableElement,EObject,EStructuralFeature)
def checkVarArgComesLast(XtendParameter)
def checkVarArgIsNotExtension(XtendParameter)
def dispatchFuncWithTypeParams(XtendFunction)
protected def isDefaultValuedParameterFunction(XtendFunction) : boolean