@ Check public void checkStaticConstructorPrototype ( XtendConstructor constructor ) { if ( constructor . isStatic ( ) ) { if ( ! constructor . getAnnotations ( ) . isEmpty ( ) ) { error ( Messages . SARLValidator_23 , constructor , XtendPackage . eINSTANCE . getXtendAnnotationTarget_Annotations ( ) , ValidationMessageAcceptor . INSIGNIFICANT_INDEX , ANNOTATION_WRONG_TARGET ) ; } if ( ! constructor . getTypeParameters ( ) . isEmpty ( ) ) { error ( Messages . SARLValidator_24 , constructor , XtendPackage . eINSTANCE . getXtendExecutable_TypeParameters ( ) , ValidationMessageAcceptor . INSIGNIFICANT_INDEX , CONSTRUCTOR_TYPE_PARAMS_NOT_SUPPORTED ) ; } if ( ! constructor . getParameters ( ) . isEmpty ( ) ) { error ( Messages . SARLValidator_26 , constructor , XtendPackage . eINSTANCE . getXtendExecutable_Parameters ( ) , ValidationMessageAcceptor . INSIGNIFICANT_INDEX , UNEXPECTED_FORMAL_PARAMETER ) ; } if ( ! constructor . getExceptions ( ) . isEmpty ( ) ) { error ( Messages . SARLValidator_27 , constructor , XtendPackage . eINSTANCE . getXtendExecutable_Parameters ( ) , ValidationMessageAcceptor . INSIGNIFICANT_INDEX , UNEXPECTED_EXCEPTION_THROW ) ; } if ( constructor . getExpression ( ) == null ) { error ( Messages . SARLValidator_83 , constructor , XtendPackage . eINSTANCE . getXtendExecutable_Expression ( ) , ValidationMessageAcceptor . INSIGNIFICANT_INDEX , MISSING_BODY ) ; } } }
Check for a valid prototype of a static constructor .