public int getArityMismatch ( ) { JvmIdentifiableElement identifiable = getFeature ( ) ; if ( identifiable instanceof JvmExecutable ) { return getArityMismatch ( ( JvmExecutable ) identifiable , getArguments ( ) ) ; } else if ( getExpression ( ) instanceof XAssignment ) { return getArguments ( ) . size ( ) - 1 ; } else { return getArguments ( ) . size ( ) ; } }
Returns the mismatch of actually given arguments and declared parameters . Receivers and staticness of the feature is taken into account too . The mismatch may either be negative or positive .